]> git.sur5r.net Git - u-boot/commitdiff
sunxi: Kconfig: Make SPL_FEL a toplevel Kconfig option
authorIan Campbell <ijc@hellion.org.uk>
Fri, 24 Oct 2014 20:20:46 +0000 (21:20 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 5 Nov 2014 12:09:57 +0000 (13:09 +0100)
It's unfortunate that this needs to be present in both .config and spl/.config
since it makes it slightly hard to enable FEL mode for a regular defconfig. It
can be done with:
    echo CONFIG_SPL_FEL=y >> .config
    echo CONFIG_SPL_FEL=y >> spl/.config

Ideally only one of those would be needed.

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>
board/sunxi/Kconfig
configs/Cubieboard2_FEL_defconfig
configs/Cubietruck_FEL_defconfig

index faa38ba27bba2137579f79745618da260930bedd..18f731ab9fd00ef6a95622d291553153874acd51 100644 (file)
@@ -42,6 +42,11 @@ config SYS_BOARD
 config SYS_SOC
        default "sunxi"
 
+config SPL_FEL
+       bool "SPL/FEL mode support"
+       depends on SPL
+       default n
+
 config FDTFILE
        string "Default fdtfile env setting for this board"
 
index 1e79720ac0cff18f8b1a3013fa03b2d6ef852396..1b73fb5974ef8e4b9f4f48f67a2d8b004b9930e8 100644 (file)
@@ -1,5 +1,6 @@
 CONFIG_SPL=y
-CONFIG_SYS_EXTRA_OPTIONS="CUBIEBOARD2,SPL_FEL,AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8),USB_EHCI"
++S:CONFIG_SPL_FEL=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
index 963ed5a01775932e876761b8ccd2cccd50600493..7e78aec11f029bc97a9172a21a5abe43bdc20e5a 100644 (file)
@@ -1,5 +1,6 @@
 CONFIG_SPL=y
-CONFIG_SYS_EXTRA_OPTIONS="CUBIETRUCK,SPL_FEL,AXP209_POWER,SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPH(12),USB_EHCI"
++S:CONFIG_SPL_FEL=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