]> git.sur5r.net Git - u-boot/commitdiff
sunxi: kconfig: Add top-level ARCH_SUNXI
authorIan Campbell <ijc@hellion.org.uk>
Fri, 24 Oct 2014 20:20:44 +0000 (21:20 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 5 Nov 2014 12:09:57 +0000 (13:09 +0100)
And make TARGET_SUN[45678]I a choice variable under this.

configs updated with:
    sed -i -e 's/^\(\+S:\)\?CONFIG_TARGET_SUN.I=y/\1CONFIG_ARCH_SUNXI=y\n&/g' configs/*

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
28 files changed:
arch/arm/Kconfig
board/sunxi/Kconfig
configs/A10-OLinuXino-Lime_defconfig
configs/A10s-OLinuXino-M_defconfig
configs/A13-OLinuXinoM_defconfig
configs/A13-OLinuXino_defconfig
configs/A20-OLinuXino-Lime2_defconfig
configs/A20-OLinuXino-Lime_defconfig
configs/A20-OLinuXino_MICRO_defconfig
configs/Auxtek-T004_defconfig
configs/Bananapi_defconfig
configs/Colombus_defconfig
configs/Cubieboard2_FEL_defconfig
configs/Cubieboard2_defconfig
configs/Cubieboard_defconfig
configs/Cubietruck_FEL_defconfig
configs/Cubietruck_defconfig
configs/Ippo_q8h_v5_defconfig
configs/Linksprite_pcDuino3_defconfig
configs/Mele_A1000G_defconfig
configs/Mele_A1000_defconfig
configs/Mele_M3_defconfig
configs/Mini-X-1Gb_defconfig
configs/Mini-X_defconfig
configs/ba10_tv_box_defconfig
configs/i12-tvbox_defconfig
configs/qt840a_defconfig
configs/r7-tv-dongle_defconfig

index 43700c32eea9c7c4730105d384f799684b3289af..bd774d42a89fa7c05a14616a35b5adf2acdd49de 100644 (file)
@@ -663,30 +663,8 @@ config TARGET_SOCFPGA_CYCLONE5
        select CPU_V7
        select SUPPORT_SPL
 
-config TARGET_SUN4I
-       bool "Support sun4i"
-       select CPU_V7
-       select SUPPORT_SPL
-
-config TARGET_SUN5I
-       bool "Support sun5i"
-       select CPU_V7
-       select SUPPORT_SPL
-
-config TARGET_SUN6I
-       bool "Support sun6i"
-       select CPU_V7
-       select SUPPORT_SPL
-
-config TARGET_SUN7I
-       bool "Support sun7i"
-       select CPU_V7
-       select SUPPORT_SPL
-
-config TARGET_SUN8I
-       bool "Support sun8i"
-       select CPU_V7
-       select SUPPORT_SPL
+config ARCH_SUNXI
+       bool "Support sunxi (Allwinner) SoCs"
 
 config TARGET_SNOWBALL
        bool "Support snowball"
index 28df18784042e2b5f6e133b8502afa402dfa90dc..e700495554c469bc268e154c8c38044e3c9f0834 100644 (file)
@@ -1,4 +1,32 @@
-if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN6I || TARGET_SUN7I || TARGET_SUN8I
+if ARCH_SUNXI
+
+choice
+       prompt "Sunxi SoC Variant"
+
+config TARGET_SUN4I
+       bool "sun4i (Allwinner A10)"
+       select CPU_V7
+       select SUPPORT_SPL
+
+config TARGET_SUN5I
+       bool "sun5i (Allwinner A13)"
+       select CPU_V7
+       select SUPPORT_SPL
+
+config TARGET_SUN6I
+       bool "sun6i (Allwinner A31)"
+       select CPU_V7
+
+config TARGET_SUN7I
+       bool "sun7i (Allwinner A20)"
+       select CPU_V7
+       select SUPPORT_SPL
+
+config TARGET_SUN8I
+       bool "sun8i (Allwinner A23)"
+       select CPU_V7
+
+endchoice
 
 config SYS_CONFIG_NAME
        string
index f9922936ab17e724dab24db292d5b76b36fb9889..816ffb56b5faa13e7bca0f42665f6014cd292189 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="A10_OLINUXINO_L,AXP209_POWER,SUNXI_EMAC,AHCI,SATAPWR=SUNXI_GPC(3),USB_EHCI"
 CONFIG_FDTFILE="sun4i-a10-olinuxino-lime.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN4I=y
index 2aad834fa840c5b1390c3621442e9ab444240349..38461d133d97ed24ca7197783da38a3312098ddb 100644 (file)
@@ -5,4 +5,5 @@ CONFIG_MMC_SUNXI_SLOT_EXTRA=1
 +S:CONFIG_MMC0_CD_PIN="PG1"
 +S:CONFIG_MMC1_CD_PIN="PG13"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN5I=y
index 9ae7b128517b1cfc3339c189f8216a97b1b7b49c..7a0614d3415bbd6799b636a4ab8f65d023257dbd 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="A13_OLINUXINOM,CONS_INDEX=2,USB_EHCI,SUNXI_USB_VBUS0_GPIO=SUNXI_GPG(11)"
 CONFIG_FDTFILE="sun5i-a13-olinuxino-micro.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN5I=y
index 2c726f308a2b67d9ec2403acebcefec83426a89a..4822449a557459ff614148d4030b9a99475d3042 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="A13_OLINUXINO,CONS_INDEX=2,AXP209_POWER,USB_EHCI,SUNXI_USB_VBUS0_GPIO=SUNXI_GPG(11)"
 CONFIG_FDTFILE="sun5i-a13-olinuxino.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN5I=y
index 75ef87278026650dae58b97eedc16e153b1e2b28..7933704149c05612f447301f0a5e71f3bc93775e 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="A20_OLINUXINO_L2,AXP209_POWER,SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPC(3),USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-olinuxino-lime2.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index ca79fd58aa6f8ab3252cc8666ffdcccacbcd7079..eafd73347dea8bb71a86a60c8ac4b9ada81b0987 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="A20_OLINUXINO_L,AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPC(3),USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-olinuxino-lime.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index 0e0a7def2de600f0fc06aaf6898f3644fdd4243e..07edef5aa6cef5eaadd40b0a7f1c74eaa2a10f4f 100644 (file)
@@ -5,4 +5,5 @@ CONFIG_MMC_SUNXI_SLOT_EXTRA=3
 +S:CONFIG_MMC0_CD_PIN="PH1"
 +S:CONFIG_MMC3_CD_PIN="PH11"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index ed06f5700c36b3bb2cfe2794453bb93812e86554..a2577b8ab39c5713c103947139858c81dd090d96 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="AUXTEK_T004,AXP152_POWER,USB_EHCI,SUNXI_USB_VBUS0_GPIO=SUNXI_GPG(13)"
 CONFIG_FDTFILE="sun5i-a10s-auxtek-t004.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN5I=y
index d59cf72eaac604ef4e39fcdeb0100d85ddc4c73e..8f8853fa9db54361456103405a4a08a96d7c3033 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="BANANAPI,AXP209_POWER,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-bananapi.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index 16800de2bcd3154b320d6761478cf6101e552927..b9ee7c83b95f6558ba89b34d478e9d97434d3593 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_SYS_EXTRA_OPTIONS="COLOMBUS"
 CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
 CONFIG_TARGET_SUN6I=y
 CONFIG_FDTFILE="sun6i-a31-colombus.dtb"
index 353b04a3b1dd4f313274504f09a6aa04f90f6ca6..7ae7a2b55f63968a570011e81af707f569bd2ea5 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="CUBIEBOARD2,SPL_FEL,AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8),USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-cubieboard2.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index 11a0c5ff376f8747b9d89574f472c1e4ef50648c..9c5997dec6a6eb96c9e11b2165ecc3c283025535 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="CUBIEBOARD2,AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8),USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-cubieboard2.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index 8c1ff9584eadc5464056f7b534bbd0ff146c5cbc..eafa09d9952ba8a0f8f0a0893ecee0550ee1f888 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="CUBIEBOARD,AXP209_POWER,SUNXI_EMAC,AHCI,SATAPWR=SUNXI_GPB(8),USB_EHCI"
 CONFIG_FDTFILE="sun4i-a10-cubieboard.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN4I=y
index 23c5efb18abeed9dd2fbefca61d0103448c59c68..6218c58bc20461ecaa5a2f95a17fbeedb898f8a2 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="CUBIETRUCK,SPL_FEL,AXP209_POWER,SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPH(12),USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-cubietruck.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index 1389f2138bbd08a3cc817864d22b03f94ed08a2e..9a56f180f579576376118409f66dc42f16d27adc 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="CUBIETRUCK,AXP209_POWER,SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPH(12),USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-cubietruck.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index 781f13785b24cbbb653bf35faf60a58b16a2dbe3..d9ea01014ede6d70fdde439af99ad25bacec169d 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_SYS_EXTRA_OPTIONS="IPPO_Q8H_V5,CONS_INDEX=5"
 CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
 CONFIG_TARGET_SUN8I=y
 CONFIG_DEFAULT_DEVICE_TREE="sun8i-a23-ippo-q8h-v5.dtb"
index efc53017897970912ff7a282dbec9b4aa83d7242..046ab6f2157fc1ac208089697a2c2b2d7906460e 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="PCDUINO3,AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPH(2),USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-pcduino3.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index 06c4cacc53b0b5cbb14fe5f549dac25a134df5e2..c0608a540d0442cbd5dc390169873362500a0b36 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="MELE_A1000G,AXP209_POWER,SUNXI_EMAC,MACPWR=SUNXI_GPH(15),AHCI,USB_EHCI"
 CONFIG_FDTFILE="sun4i-a10-a1000.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN4I=y
index d386c79e04870c12947644d35c8d759738a0f28f..76239755767576caf028b99c334d546e7b2b4255 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="MELE_A1000,AXP209_POWER,SUNXI_EMAC,MACPWR=SUNXI_GPH(15),AHCI,USB_EHCI"
 CONFIG_FDTFILE="sun4i-a10-a1000.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN4I=y
index a043ad277d79efd5546e223b57664dc8413958bb..249344631a20ecba72abbbc353c9e441c5695ae5 100644 (file)
@@ -4,4 +4,5 @@ CONFIG_FDTFILE="sun7i-a20-m3.dtb"
 +S:CONFIG_MMC_SUNXI_SLOT_EXTRA=2
 +S:CONFIG_MMC0_CD_PIN="PH1"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index 5db4aa3a1478077d0ec52ad17d4535a9943ce8da..cd9ac590316cc4e4151fb6d625edc3fe483d8285 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="MINI_X_1GB,AXP209_POWER,USB_EHCI"
 CONFIG_FDTFILE="sun4i-a10-mini-xplus.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN4I=y
index 6718dcb68cf588ad27d11c84b5ef5b81f96cc8a5..adccb8ba9dd27f7d359dc4f4b43eb9791395921a 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="MINI_X,AXP209_POWER,USB_EHCI"
 CONFIG_FDTFILE="sun4i-a10-mini-xplus.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN4I=y
index 6f64875b4a2021bf3f6963b48cfb1dc37bbb1f7e..743a617be8afd419d67bc10dfa195fa83b5db733 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="BA10_TV_BOX,AXP209_POWER,SUNXI_EMAC,USB_EHCI,SUNXI_USB_VBUS1_GPIO=SUNXI_GPH(12)"
 CONFIG_FDTFILE="sun4i-a10-ba10-tvbox.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN4I=y
index 2ef0f9182871542210e8e832683e6a20d4ba9a5f..e8a9eaf3d89ba5a673178d8e649548519240b75d 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="I12_TVBOX,AXP209_POWER,SUNXI_GMAC,MACPWR=SUNXI_GPH(21),USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-i12-tvbox.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index a8d4bb8845f882810643adac4027f1700b0428a7..df96eecb983ab072a691df493a33be72286e2c09 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="QT840A,AXP209_POWER,SUNXI_GMAC,MACPWR=SUNXI_GPH(21),USB_EHCI"
 CONFIG_FDTFILE="sun7i-a20-i12-tvbox.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN7I=y
index 6aba94201e836619c7bfe04dcebe1d14e2cfc42c..6b8dd97e8748d4fe0c3e9c0594031dc35505aaaa 100644 (file)
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="R7DONGLE,AXP152_POWER,USB_EHCI,SUNXI_USB_VBUS0_GPIO=SUNXI_GPG(13)"
 CONFIG_FDTFILE="sun5i-a10s-r7-tv-dongle.dtb"
 +S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
 +S:CONFIG_TARGET_SUN5I=y