summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-03-13 18:16:54 -0700
committerTom Rini <trini@konsulko.com>2016-03-22 12:16:12 -0400
commitcd0fa5bff8052b19bde6967c2734f323c9848568 (patch)
tree0f2cdabdb2f04b4e28de7b0d5c5c391887a9442d /board
parent9a6598daaf0d0681bd423196364b2e4e3959ebbc (diff)
serial: pl01x: Add support for devices with the rate pre-configured.
For Raspberry Pi, we had the input clock rate to the pl011 fixed in the rpi.c file, but it may be changed by firmware due to user changes to config.txt. Since the firmware always sets up the uart (default 115200 output unless the user changes it), we can just skip our own uart init to simplify the boot process and more reliably get serial output. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Tom Rini <trini@konsulko.com> Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'board')
-rw-r--r--board/raspberrypi/rpi/rpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 1d3a4e09cfa..da4b6ff234d 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -37,7 +37,7 @@ static const struct pl01x_serial_platdata serial_platdata = {
.base = 0x20201000,
#endif
.type = TYPE_PL011,
- .clock = 3000000,
+ .skip_init = true,
};
U_BOOT_DEVICE(bcm2835_serials) = {