summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2019-05-03 21:49:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-06 09:04:56 +0200
commitcb8934b3718fcca2042779ca4126c1e16bb75640 (patch)
treed5a761b505aec810383f3d2d2107c6d04ece85a6
parentd6d3d0aecece84afe9ebd3c787d22a9ed8965af6 (diff)
downloadbarebox-cb8934b3718fcca2042779ca4126c1e16bb75640.tar.gz
ARM: rpi: add clock for sdhost
The sdhost is driven by the core clock. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/raspberry-pi/rpi-common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c
index bc877f8..dd6bbd5 100644
--- a/arch/arm/boards/raspberry-pi/rpi-common.c
+++ b/arch/arm/boards/raspberry-pi/rpi-common.c
@@ -319,6 +319,14 @@ static int rpi_clock_init(void)
clkdev_add_physbase(clk, 0x20300000, NULL);
clkdev_add_physbase(clk, 0x3f300000, NULL);
+ clk = rpi_register_firmware_clock(BCM2835_MBOX_CLOCK_ID_CORE,
+ "bcm2835_sdhost");
+ if (IS_ERR(clk))
+ return PTR_ERR(clk);
+
+ clkdev_add_physbase(clk, 0x20202000, NULL);
+ clkdev_add_physbase(clk, 0x3f202000, NULL);
+
return 0;
}
postconsole_initcall(rpi_clock_init);