summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm283x/core.c
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2018-11-27 13:45:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-11-29 08:49:58 +0100
commitb1d84f73103e7ea5fb01c7536f07b9a4e0071c8b (patch)
treecb7711ac3d9bdc183be4ebb1b55a1651bfb0b21a /arch/arm/mach-bcm283x/core.c
parent6bacf7bd8df889268b9641e27791399831f947d3 (diff)
downloadbarebox-b1d84f73103e7ea5fb01c7536f07b9a4e0071c8b.tar.gz
barebox-b1d84f73103e7ea5fb01c7536f07b9a4e0071c8b.tar.xz
multiple/raspberry-pi: fix clkdevs for raspberry pi
Commit 7e497d48acbd1184e3f6bd23bd16dfae84dd1129 introduced a name change which breaks support for the fixed clkdev for uart and sdhci for RPI. Use clkdev_add_physbase instead to be independant from the device tree names. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-bcm283x/core.c')
-rw-r--r--arch/arm/mach-bcm283x/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-bcm283x/core.c b/arch/arm/mach-bcm283x/core.c
index 26f0996b1c..f1dcda86f7 100644
--- a/arch/arm/mach-bcm283x/core.c
+++ b/arch/arm/mach-bcm283x/core.c
@@ -40,8 +40,8 @@ static int bcm2835_clk_init(void)
clk = clk_fixed("uart0-pl0110", 3 * 1000 * 1000);
clk_register_clkdev(clk, NULL, "uart0-pl0110");
- clk_register_clkdev(clk, NULL, "20201000.serial");
- clk_register_clkdev(clk, NULL, "3f201000.serial");
+ clkdev_add_physbase(clk, 0x20201000, NULL);
+ clkdev_add_physbase(clk, 0x3f201000, NULL);
clk = clk_fixed("bcm2835-cs", 1 * 1000 * 1000);
clk_register_clkdev(clk, NULL, "bcm2835-cs");