summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2020-11-28 22:39:28 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-12-07 11:27:11 +0100
commit0ea1c5463d47b6fa0bd7a59b278e38396285cf22 (patch)
treeb04190d01e63e1cbde8b05b8849f10b6affaae41
parentb0bed694c0cabc0f9b6b514d6eee46fc7c3a3133 (diff)
downloadbarebox-0ea1c5463d47b6fa0bd7a59b278e38396285cf22.tar.gz
barebox-0ea1c5463d47b6fa0bd7a59b278e38396285cf22.tar.xz
ARM: rpi: support raspberry pi 1 and zero mini-uart
We don't have a clock driver for the raspberry pi, so board code needs to list which used devices have clocks that are already known to be active on boot. The Mini UART is one such device. We already wave away the clock on the BCM2836, do the same for the BCM2835 as well. Cc: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/raspberry-pi/rpi-common.c1
-rw-r--r--arch/arm/mach-bcm283x/include/mach/platform.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c
index 292bcba608..46c8ad6f52 100644
--- a/arch/arm/boards/raspberry-pi/rpi-common.c
+++ b/arch/arm/boards/raspberry-pi/rpi-common.c
@@ -347,6 +347,7 @@ static int rpi_console_clock_init(void)
if (IS_ERR(clk))
return PTR_ERR(clk);
+ clkdev_add_physbase(clk, BCM2835_MINIUART_BASE, NULL);
clkdev_add_physbase(clk, BCM2836_MINIUART_BASE, NULL);
clk = clk_fixed("bcm2835-cs", 1 * 1000 * 1000);
diff --git a/arch/arm/mach-bcm283x/include/mach/platform.h b/arch/arm/mach-bcm283x/include/mach/platform.h
index d8561c1610..310f2463f2 100644
--- a/arch/arm/mach-bcm283x/include/mach/platform.h
+++ b/arch/arm/mach-bcm283x/include/mach/platform.h
@@ -32,6 +32,7 @@
#define BCM2835_PL011_BASE 0x20201000
#define BCM2836_PL011_BASE 0x3f201000
+#define BCM2835_MINIUART_BASE 0x20215040
#define BCM2836_MINIUART_BASE 0x3f215040
#endif