ARM: bcm283x: use OF_CONTROL for bcm283x
authorFabian Vogt <fvogt@suse.com>
Mon, 26 Sep 2016 12:26:51 +0000 (14:26 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 29 Nov 2016 01:15:18 +0000 (20:15 -0500)
This patch removes use of U_BOOT_DEVICE in board/raspberrypi/rpi/rpi.c,
enables OF_CONTROL in the config and adjusts the rpi_*defconfig configs.

Signed-off-by: Fabian Vogt <fvogt@suse.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/Kconfig
board/raspberrypi/rpi/rpi.c
configs/rpi_2_defconfig
configs/rpi_3_32b_defconfig
configs/rpi_3_defconfig
configs/rpi_defconfig

index 220022bcd9bfa3f06b150a110884a07a71e4766f..fcbf1d81f400f9b54d4f07892b7d0c1fb2359035 100644 (file)
@@ -321,6 +321,7 @@ config ARCH_BCM283X
        select DM
        select DM_SERIAL
        select DM_GPIO
+       select OF_CONTROL
 
 config TARGET_VEXPRESS_CA15_TC2
        bool "Support vexpress_ca15_tc2"
index e82022ef12fdc19381453e335a0d7762eefc8447..04f27b4b8f420b32d9ef842dbd445dfa5cdcf04e 100644 (file)
@@ -17,7 +17,6 @@
 #include <asm/arch/mbox.h>
 #include <asm/arch/sdhci.h>
 #include <asm/global_data.h>
-#include <dm/platform_data/serial_pl01x.h>
 #include <dm/platform_data/serial_bcm283x_mu.h>
 #ifdef CONFIG_ARM64
 #include <asm/armv8/mmu.h>
@@ -28,42 +27,6 @@ DECLARE_GLOBAL_DATA_PTR;
 /* From lowlevel_init.S */
 extern unsigned long fw_dtb_pointer;
 
-static const struct bcm2835_gpio_platdata gpio_platdata = {
-       .base = BCM2835_GPIO_BASE,
-};
-
-U_BOOT_DEVICE(bcm2835_gpios) = {
-       .name = "gpio_bcm2835",
-       .platdata = &gpio_platdata,
-};
-
-#ifdef CONFIG_PL01X_SERIAL
-static const struct pl01x_serial_platdata serial_platdata = {
-#ifndef CONFIG_BCM2835
-       .base = 0x3f201000,
-#else
-       .base = 0x20201000,
-#endif
-       .type = TYPE_PL011,
-       .skip_init = true,
-};
-
-U_BOOT_DEVICE(bcm2835_serials) = {
-       .name = "serial_pl01x",
-       .platdata = &serial_platdata,
-};
-#else
-static struct bcm283x_mu_serial_platdata serial_platdata = {
-       .base = 0x3f215040,
-       .clock = 250000000,
-       .skip_init = true,
-};
-
-U_BOOT_DEVICE(bcm2837_serials) = {
-       .name = "serial_bcm283x_mu",
-       .platdata = &serial_platdata,
-};
-#endif
 
 struct msg_get_arm_mem {
        struct bcm2835_mbox_hdr hdr;
index bddee4300aec1b2661e4335e7a80e8cdfd0cdf39..d573efe80dacfa27cd47ba6a897960b8849be500 100644 (file)
@@ -1,6 +1,8 @@
 CONFIG_ARM=y
 CONFIG_ARCH_BCM283X=y
 CONFIG_TARGET_RPI_2=y
+CONFIG_DEFAULT_DEVICE_TREE="bcm2836-rpi-2-b"
+CONFIG_OF_EMBED=y
 CONFIG_OF_BOARD_SETUP=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
index 00b6ff4eb87a13db0142f34eb68e82db33269f8b..954d5ffc38aa3f8bf32a8e65dd21a8afc66297e8 100644 (file)
@@ -2,6 +2,8 @@ CONFIG_ARM=y
 CONFIG_ARCH_BCM283X=y
 CONFIG_TARGET_RPI_3_32B=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
+CONFIG_OF_EMBED=y
 CONFIG_OF_BOARD_SETUP=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
index 9b6a72f04d548d5a0ff51e9ff978998a8103cfc8..22199eb030e7a39c7522d52131a0ebe8e49b0d13 100644 (file)
@@ -2,6 +2,8 @@ CONFIG_ARM=y
 CONFIG_ARCH_BCM283X=y
 CONFIG_TARGET_RPI_3=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
+CONFIG_OF_EMBED=y
 CONFIG_OF_BOARD_SETUP=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
index 861a9796a7e47664a438f7165313257c578afc61..b55de4fefbefca2668c5d6445d7446818fedb101 100644 (file)
@@ -1,6 +1,8 @@
 CONFIG_ARM=y
 CONFIG_ARCH_BCM283X=y
 CONFIG_TARGET_RPI=y
+CONFIG_DEFAULT_DEVICE_TREE="bcm2835-rpi-b"
+CONFIG_OF_EMBED=y
 CONFIG_OF_BOARD_SETUP=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set