sunxi: Move all boards to the driver-model
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Apr 2015 18:46:48 +0000 (20:46 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 May 2015 14:51:54 +0000 (16:51 +0200)
Now that we've everything prepared for it remove the DM settings from the
defconfig(s) and simply always set them for sunxi.

This makes all sunxi boards allways use the driver model for gpios and
ethernet, and allows us to move over more bits to the driver-model without
the need to introduce #ifdef-ery for boards which are not yet using DM.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
25 files changed:
arch/arm/Kconfig
board/sunxi/Kconfig
configs/A20-OLinuXino-Lime2_defconfig
configs/A20-OLinuXino-Lime_defconfig
configs/A20-OLinuXino_MICRO_defconfig
configs/Bananapi_defconfig
configs/Bananapro_defconfig
configs/CSQ_CS908_defconfig
configs/Colombus_defconfig
configs/Cubieboard2_defconfig
configs/Cubietruck_defconfig
configs/Hummingbird_A31_defconfig
configs/Linksprite_pcDuino3_Nano_defconfig
configs/Linksprite_pcDuino3_defconfig
configs/Mele_I7_defconfig
configs/Mele_M3_defconfig
configs/Mele_M5_defconfig
configs/Mele_M9_defconfig
configs/Orangepi_defconfig
configs/Orangepi_mini_defconfig
configs/UTOO_P66_defconfig
configs/Wits_Pro_A20_DKT_defconfig
configs/i12-tvbox_defconfig
configs/mixtile_loftq_defconfig
include/configs/sunxi-common.h

index 00be305c390c796063198c9fbc2fb0f7a72faaac..eeeaca4fb5f47f26ce1884b5c4b9f76b3e74c8f8 100644 (file)
@@ -632,6 +632,11 @@ config TARGET_SOCFPGA_CYCLONE5
 
 config ARCH_SUNXI
        bool "Support sunxi (Allwinner) SoCs"
+       select DM
+       select DM_GPIO
+       select OF_CONTROL
+       select OF_SEPARATE
+       select SPL_DISABLE_OF_CONTROL
 
 config TARGET_SNOWBALL
        bool "Support snowball"
index 6c41aead44cfd8c0d09e0b967aec0eb7482ca152..a60d0288fb67adfc0b88fed5f18496925f252685 100644 (file)
@@ -543,4 +543,16 @@ config GMAC_TX_DELAY
        ---help---
        Set the GMAC Transmit Clock Delay Chain value.
 
+config NET
+       default y
+
+config NETDEVICES
+       default y
+
+config DM_ETH
+       default y
+
+config DM_SERIAL
+       default y
+
 endif
index 7c1490e047c7218dd23435c4d3b882205c5af7e1..59e7473b741e97426d40c423dbbdb55671f944a1 100644 (file)
@@ -11,5 +11,3 @@ CONFIG_DRAM_CLK=480
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 879b939f1fc90a674ee77476f402129387bc7e5e..2ba70f78a4f288cea5a510b225a209ec2a8ea05d 100644 (file)
@@ -8,5 +8,3 @@ CONFIG_DRAM_CLK=480
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index a530d13ba8acd41196048e29aaa3c19f45be7b17..7d2e810e8ad282449cc662ddac8df803a790c6cb 100644 (file)
@@ -12,5 +12,3 @@ CONFIG_DRAM_CLK=384
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 0e1d7b5231dafa3581bbf89b5be3436813e4e201..8dcf4a71b5f25d67fecc371872444052354e7bf8 100644 (file)
@@ -9,5 +9,3 @@ CONFIG_DRAM_CLK=432
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index b68333f044036dd14e6f54664250d5a0fcaec337..d3e015c183140c5102e7e7aa9d0b3a0ba9ff3ec9 100644 (file)
@@ -11,5 +11,3 @@ CONFIG_DRAM_CLK=432
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 4d9e1e9b10f482c356285a97820d4af80a2f9184..817cd6d0296e18b594ecdb8fcd3d0b5874efd164 100644 (file)
@@ -14,5 +14,3 @@ CONFIG_AXP221_ALDO1_VOLT=3300
 CONFIG_USB1_VBUS_PIN=""
 CONFIG_USB2_VBUS_PIN=""
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 96b55baa5f30b62898354b7b51f11c1e49c529a9..c7efabc9b6f8537845e2af3b4f9b26a98760ce8d 100644 (file)
@@ -11,5 +11,3 @@ CONFIG_AXP221_ALDO1_VOLT=3300
 # No Vbus gpio for usb1
 CONFIG_USB1_VBUS_PIN=""
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index ca0be1f57901416029b73692e05074d7402bc0f1..092d6b0995f566298baab8e2eb7f04661321edc7 100644 (file)
@@ -9,5 +9,3 @@ CONFIG_DRAM_CLK=480
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index a05cf2bdb98bbbba751515a01565e2455c047e1c..50d6d66431c4b78a27ff34d20941dc240448dff4 100644 (file)
@@ -10,5 +10,3 @@ CONFIG_DRAM_CLK=432
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index a389b0a5b10a6a92e201dd8267c4d18941e2605b..9e049b2527a80f617379fcedeff4b627e3aed502 100644 (file)
@@ -15,5 +15,3 @@ CONFIG_USB1_VBUS_PIN="PH24"
 # No Vbus gpio for usb2
 CONFIG_USB2_VBUS_PIN=""
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 51f811a800b882f734bba657b931b953d87caaea..60d23571120ea814eada0f1048cc87857251fa4e 100644 (file)
@@ -10,5 +10,3 @@ CONFIG_DRAM_CLK=408
 CONFIG_DRAM_ZQ=122
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index d51d34d421030f968c7fb0a1f0257f11b752b916..83e539d38f4af7395cbcd7b098110351e99a6238 100644 (file)
@@ -7,13 +7,4 @@ CONFIG_MACH_SUN7I=y
 CONFIG_DRAM_CLK=480
 CONFIG_DRAM_ZQ=122
 CONFIG_DRAM_EMR1=4
-CONFIG_DM=y
-CONFIG_DM_GPIO=y
-CONFIG_DM_SERIAL=y
-CONFIG_OF_CONTROL=y
-CONFIG_SPL_DISABLE_OF_CONTROL=y
-CONFIG_OF_SEPARATE=y
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
-CONFIG_DM_ETH=y
index 9f144611891c1239b62bb3df4209c40202f615fb..adcf3b2572af7fe959f8beddedf4b51ea3dff4dc 100644 (file)
@@ -25,5 +25,3 @@ CONFIG_USB1_VBUS_PIN="PC27"
 # No Vbus gpio for usb2
 CONFIG_USB2_VBUS_PIN=""
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 10bf8804e2f7d06a908e3c580c7473e6f4428521..e2f8d65dd7cdcd81806f821d07286bb7f28e6efa 100644 (file)
@@ -11,5 +11,3 @@ CONFIG_DRAM_CLK=384
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 7e371405365ba3a57b79ab3d7e26ae669dc801d6..78fba71d9a6401d771a03bed68e51f1775303703 100644 (file)
@@ -12,5 +12,3 @@ CONFIG_DRAM_CLK=432
 CONFIG_DRAM_ZQ=122
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index da592fa759d22cf64ab4a22816c48881bf159fd2..ea35024c1bcc0c74375500a4d86fcfbf052fb243 100644 (file)
@@ -19,5 +19,3 @@ CONFIG_USB1_VBUS_PIN="PC27"
 # No Vbus gpio for usb2
 CONFIG_USB2_VBUS_PIN=""
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 110ec0cdc245ab51af1dce23836d7bc65e31145f..cd25521f9ab0e91c8226cfb97232dabb2ba5d79c 100644 (file)
@@ -19,5 +19,3 @@ CONFIG_DRAM_CLK=432
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 119b803e085b5c50c8f7274426fc41eb332240fb..0bef159acfaa2cb96e3f597ac05f0cb6bc798a65 100644 (file)
@@ -22,5 +22,3 @@ CONFIG_DRAM_CLK=432
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 0815fd15e092c790cfe6fc912479f7473f15442a..ee44b51bf7c1d20b73a5207b4f5c394ec360c67c 100644 (file)
@@ -20,3 +20,4 @@ CONFIG_MACH_SUN5I=y
 CONFIG_DRAM_CLK=432
 CONFIG_DRAM_ZQ=123
 CONFIG_DRAM_EMR1=0
+CONFIG_DM_SERIAL=n
index 4bb4452b43d1af5b410de52e4695c61a8479f9e9..19b8f399c0dbe3e924a4112066813ce62ad5800e 100644 (file)
@@ -14,5 +14,3 @@ CONFIG_DRAM_CLK=384
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 6027b87e99d3810910fd3b602a3d4871f21ca873..e579fdeb753ceb5299f1d1e77d034ae3d2d66797 100644 (file)
@@ -8,5 +8,3 @@ CONFIG_DRAM_CLK=384
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index 65058227ba0c4a47e21251c169161e4b265fa9a7..416262792e30a4d08b2dcdd9bb91ddbad3688213 100644 (file)
@@ -21,5 +21,3 @@ CONFIG_USB1_VBUS_PIN="PH24"
 # No Vbus gpio for usb2
 CONFIG_USB2_VBUS_PIN=""
 CONFIG_ETH_DESIGNWARE=y
-CONFIG_NETDEVICES=y
-CONFIG_NET=y
index cb713230ae3609decd5631611de89e850dd7fa4b..c8ebb54f374dddec486e7238ca83b71f06218e01 100644 (file)
@@ -41,7 +41,7 @@
 
 #define CONFIG_SYS_TEXT_BASE           0x4a000000
 
-#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_DM)
+#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_DM_SERIAL)
 # define CONFIG_DW_SERIAL
 #endif