Skip to contentSkip to conversation

sunxi: Revert "sunxi: make SoC variant choice mandatory"

PATCH New Hans de Goede 2 participants 3 messages Jun 12, 2016 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunxi: Revert "sunxi: make SoC variant choice mandatory"

This reverts commit 1a5f0de08e86("sunxi: make SoC variant choice mandatory").

With the optional marking in the Kconfig "make savedefconfig" will drop CONFIG_MACH_SUN4I=y from all the A10 boards, making it hard to see at a glance which family of sunxi chips the defconfig is for.

This commit therefore restores the optional, and restores CONFIG_MACH_SUN4I=y to all defconfig's which had it dropped because of this.

---
 board/sunxi/Kconfig                  | 1 +
 configs/A10-OLinuXino-Lime_defconfig | 1 +
 configs/Chuwi_V7_CW0825_defconfig    | 1 +
 configs/Cubieboard_defconfig         | 1 +
 configs/Hyundai_A7HD_defconfig       | 1 +
 configs/Linksprite_pcDuino_defconfig | 1 +
 configs/Marsboard_A10_defconfig      | 1 +
 configs/Mele_A1000_defconfig         | 1 +
 configs/Mini-X_defconfig             | 1 +
 configs/ba10_tv_box_defconfig        | 1 +
 configs/dserve_dsrv9703c_defconfig   | 1 +
 configs/iNet_3F_defconfig            | 1 +
 configs/iNet_3W_defconfig            | 1 +
 configs/inet1_defconfig              | 1 +
 configs/inet97fv2_defconfig          | 1 +
 configs/inet9f_rev03_defconfig       | 1 +
 configs/jesurun_q5_defconfig         | 1 +
 configs/mk802_defconfig              | 1 +
 configs/mk802ii_defconfig            | 1 +
 configs/pov_protab2_ips9_defconfig   | 1 +
 configs/sunxi_Gemei_G9_defconfig     | 1 +
 21 files changed, 21 insertions(+)
board/sunxi/Kconfig +1 -0
index c1ae6f5..323e972 100644
@@ -18,6 +18,7 @@ config SUNXI_GEN_SUN6I
 
 choice
 	prompt "Sunxi SoC Variant"
+	optional
 
 config MACH_SUN4I
 	bool "sun4i (Allwinner A10)"
configs/A10-OLinuXino-Lime_defconfig +1 -0
index 378f7a1..8cb7ac7 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=480
 CONFIG_DRAM_EMR1=4
 CONFIG_SYS_CLK_FREQ=912000000
configs/Chuwi_V7_CW0825_defconfig +1 -0
index 4b9abea..3257aae 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=408
 CONFIG_DRAM_EMR1=4
 CONFIG_USB0_VBUS_PIN="PB9"
configs/Cubieboard_defconfig +1 -0
index 97bdcd6..c884115 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=480
 CONFIG_MMC0_CD_PIN="PH1"
 CONFIG_DEFAULT_DEVICE_TREE="sun4i-a10-cubieboard"
configs/Hyundai_A7HD_defconfig +1 -0
index 77e496c..fef3685 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_EMR1=4
 CONFIG_USB0_VBUS_PIN="PB09"
 CONFIG_USB0_VBUS_DET="PH5"
configs/Linksprite_pcDuino_defconfig +1 -0
index 94aab9d..9d8d325 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_USB1_VBUS_PIN=""
 CONFIG_USB2_VBUS_PIN=""
 CONFIG_DEFAULT_DEVICE_TREE="sun4i-a10-pcduino"
configs/Marsboard_A10_defconfig +1 -0
index d230a68..cef9794 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DEFAULT_DEVICE_TREE="sun4i-a10-marsboard"
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_SPL=y
configs/Mele_A1000_defconfig +1 -0
index 64f2c74..f076e30 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_VIDEO_VGA=y
 CONFIG_VIDEO_COMPOSITE=y
 CONFIG_DEFAULT_DEVICE_TREE="sun4i-a10-a1000"
configs/Mini-X_defconfig +1 -0
index f96757e..53f9bfe 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_USB0_VBUS_PIN="PB9"
 CONFIG_VIDEO_COMPOSITE=y
 CONFIG_DEFAULT_DEVICE_TREE="sun4i-a10-mini-xplus"
configs/ba10_tv_box_defconfig +1 -0
index 6da4b69..1cfb380 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=384
 CONFIG_DRAM_EMR1=4
 CONFIG_USB0_VBUS_PIN="PB9"
configs/dserve_dsrv9703c_defconfig +1 -0
index ba50ce0..f8155b2 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_MMC0_CD_PIN="PH1"
 CONFIG_USB0_VBUS_PIN="PB9"
 CONFIG_USB0_VBUS_DET="PH5"
configs/iNet_3F_defconfig +1 -0
index ebf103a..7ec54a7 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=432
 CONFIG_DRAM_EMR1=4
 CONFIG_MMC0_CD_PIN="PH1"
configs/iNet_3W_defconfig +1 -0
index 2cadf17..5e68769 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=408
 CONFIG_DRAM_ZQ=127
 CONFIG_DRAM_EMR1=4
configs/inet1_defconfig +1 -0
index e84ed57..a8b32cb 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=432
 CONFIG_DRAM_EMR1=4
 CONFIG_USB0_VBUS_PIN="PB9"
configs/inet97fv2_defconfig +1 -0
index 2444a38..0b03e16 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=408
 CONFIG_DRAM_EMR1=4
 CONFIG_USB0_VBUS_PIN="PB9"
configs/inet9f_rev03_defconfig +1 -0
index a2489c4..153450f 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=408
 CONFIG_DRAM_EMR1=4
 CONFIG_USB0_VBUS_PIN="PB9"
configs/jesurun_q5_defconfig +1 -0
index a9b9084..9cb8b1d 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=312
 CONFIG_USB0_VBUS_PIN="PB9"
 CONFIG_VIDEO_COMPOSITE=y
configs/mk802_defconfig +1 -0
index 63b6a76..d38bc7f 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_USB2_VBUS_PIN="PH12"
 CONFIG_DEFAULT_DEVICE_TREE="sun4i-a10-mk802"
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
configs/mk802ii_defconfig +1 -0
index c366411..de1b73f 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DEFAULT_DEVICE_TREE="sun4i-a10-mk802ii"
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_SPL=y
configs/pov_protab2_ips9_defconfig +1 -0
index 23bd9a9..9aa5280 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=432
 CONFIG_USB0_VBUS_PIN="PB9"
 CONFIG_USB0_VBUS_DET="PH5"
configs/sunxi_Gemei_G9_defconfig +1 -0
index 5861cff..6d39dec 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN4I=y
 CONFIG_DRAM_CLK=432
 CONFIG_DRAM_EMR1=4
 CONFIG_VIDEO_LCD_MODE="x:1024,y:768,depth:18,pclk_khz:100000,le:799,ri:260,up:15,lo:16,hs:1,vs:1,sync:3,vmode:0"
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 sunxi: Revert "sunxi: make SoC variant choice mandatory"

Quoted 11 lines · Hans de Goede

This reverts commit 1a5f0de08e86("sunxi: make SoC variant choice mandatory").

With the optional marking in the Kconfig "make savedefconfig" will drop CONFIG_MACH_SUN4I=y from all the A10 boards, making it hard to see at a glance which family of sunxi chips the defconfig is for.

This commit therefore restores the optional, and restores CONFIG_MACH_SUN4I=y to all defconfig's which had it dropped because of this.

Is this because the first config in a choice is considered the default and hence is omitted by savedefconfig or is something else going on?

In any case:

Quoted 1 line
#2 lore raw

PATCH 1/1 sunxi: Revert "sunxi: make SoC variant choice mandatory"

Hi,

Quoted 9 lines · Ian Campbell
Quoted 8 lines · Hans de Goede

This reverts commit 1a5f0de08e86("sunxi: make SoC variant choice mandatory").

With the optional marking in the Kconfig "make savedefconfig" will drop CONFIG_MACH_SUN4I=y from all the A10 boards, making it hard to see at a glance which family of sunxi chips the defconfig is for.

Quoted 6 lines
Quoted 3 lines

This commit therefore restores the optional, and restores CONFIG_MACH_SUN4I=y to all defconfig's which had it dropped because of this.

Is this because the first config in a choice is considered the default and hence is omitted by savedefconfig

Yes, exactly.

Quoted 7 lines

or is something else going on?

In any case:

Quoted 1 line

Thanks for all the reviews!

Regards,

Hans

p.s.

I've just send out another patch for a new board