[U-Boot] [PATCH 1/1] rpi: set serial port clock to 48 MHz

Mirza Krak mirza.krak at gmail.com
Mon Nov 28 07:05:26 CET 2016


From: Mirza Krak <mirza.krak at gmail.com>

Recently the default UART clock rate has been changed to 48 MHz on all
pi`s in the firmware files, which broke UART support in u-boot.

Align configuration to boot firmware.

Signed-off-by: Mirza Krak <mirza.krak at gmail.com>
---

It was changed here https://github.com/raspberrypi/firmware/commit/d0bc6ce8e2ae7850959fed4edb0695f3cddfb96a.

See also https://github.com/raspberrypi/linux/issues/1732.


 board/raspberrypi/rpi/rpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 1d3a4e0..a8996d7 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,
+	.clock = 48000000,
 };

 U_BOOT_DEVICE(bcm2835_serials) = {
--
2.1.4



More information about the U-Boot mailing list