arm: bcm283x: serial: Move ofdata reading to probe() method
authorSimon Glass <sjg@chromium.org>
Mon, 23 Mar 2020 03:15:53 +0000 (21:15 -0600)
committerMatthias Brugger <mbrugger@suse.com>
Tue, 12 May 2020 08:59:12 +0000 (10:59 +0200)
commit0ed0db985abaa95a326ebfd268785e0b310d9d5d
tree3da5e926b926d2f5db107a73ee696c7ae817b28b
parent6cbb41432d3af94861568c3cfb057c3d9cbd994b
arm: bcm283x: serial: Move ofdata reading to probe() method

We cannot rely on a parent bus that needs to be probed, until we know that
it is probed. That means that code in the ofdata_to_platdata() method
cannot rely on the parent bus being probed.

Move the ofdata code in the two serial drivers into a probe() method.

This fixes serial output on rpi_3b_32b with the following config.txt
options:

   enable_uart=1
   gpu_freq=250

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
drivers/serial/serial_bcm283x_mu.c
drivers/serial/serial_bcm283x_pl011.c