summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm283x/core.c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-03-01 15:31:37 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-02 09:11:24 +0100
commite8fab18835a1ba23c5c71c35c76effcd9d4d7f56 (patch)
tree8f813eacccf1a328ecc1a2f05ae88b289ad695df /arch/arm/mach-bcm283x/core.c
parente0e2a4d8cc4732d7dc320cf07b9213ded6875b6d (diff)
downloadbarebox-e8fab18835a1ba23c5c71c35c76effcd9d4d7f56.tar.gz
barebox-e8fab18835a1ba23c5c71c35c76effcd9d4d7f56.tar.xz
ARM: rpi: switch to DT probe and multi-image build
This commit switches the RaspberryPi arch over to probe Barebox from the builtin DT and enables multi-image builds. Signed-off-by: Lucas Stach <l.stach@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.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/arm/mach-bcm283x/core.c b/arch/arm/mach-bcm283x/core.c
index 3319ad63c3..fddcb0d1a1 100644
--- a/arch/arm/mach-bcm283x/core.c
+++ b/arch/arm/mach-bcm283x/core.c
@@ -40,21 +40,15 @@ 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 = clk_fixed("bcm2835-cs", 1 * 1000 * 1000);
clk_register_clkdev(clk, NULL, "bcm2835-cs");
- add_generic_device("bcm2835-cs", DEVICE_ID_SINGLE, NULL, BCM2835_ST_BASE, 0x1C, IORESOURCE_MEM, NULL);
-
return 0;
}
postcore_initcall(bcm2835_clk_init);
-void bcm2835_register_uart(void)
-{
- amba_apb_device_add(NULL, "uart0-pl011", 0, BCM2835_UART0_BASE, 4096, NULL, 0);
-}
-
void bcm2835_add_device_sdram(u32 size)
{
if (!size)
@@ -62,10 +56,3 @@ void bcm2835_add_device_sdram(u32 size)
arm_add_mem_device("ram0", BCM2835_SDRAM_BASE, size);
}
-
-static int bcm2835_dev_init(void)
-{
- add_generic_device("bcm2835-gpio", 0, NULL, BCM2835_GPIO_BASE, 0xB0, IORESOURCE_MEM, NULL);
- return 0;
-}
-coredevice_initcall(bcm2835_dev_init);