Skip to content

Commit

Permalink
kconfig: move CONFIG_OF_* to Kconfig
Browse files Browse the repository at this point in the history
This commit moves:
  CONFIG_OF_CONTROL
  CONFIG_OF_SEPARATE
  CONFIG_OF_EMBED
  CONFIG_OF_HOSTFILE

Because these options are currently not supported for SPL,
the "Device Tree Control" menu does not appear in the SPL
configuration.

Note:
zynq-common.h should be adjusted so as not to change the
default value of CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME.

Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Simon Glass <[email protected]>
Cc: Stephen Warren <[email protected]>
Cc: Minkyu Kang <[email protected]>
Acked-by: Michal Simek <[email protected]>
  • Loading branch information
masahir0y authored and trini committed Sep 25, 2014
1 parent 540d434 commit 783e6a7
Show file tree
Hide file tree
Showing 46 changed files with 78 additions and 61 deletions.
2 changes: 2 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ source "arch/Kconfig"

source "common/Kconfig"

source "dts/Kconfig"

source "net/Kconfig"

source "drivers/Kconfig"
Expand Down
4 changes: 4 additions & 0 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ config ARC

config ARM
bool "ARM architecture"
select SUPPORT_OF_CONTROL

config AVR32
bool "AVR32 architecture"
Expand All @@ -19,6 +20,7 @@ config M68K

config MICROBLAZE
bool "MicroBlaze architecture"
select SUPPORT_OF_CONTROL

config MIPS
bool "MIPS architecture"
Expand All @@ -37,6 +39,7 @@ config PPC

config SANDBOX
bool "Sandbox"
select SUPPORT_OF_CONTROL

config SH
bool "SuperH architecture"
Expand All @@ -46,6 +49,7 @@ config SPARC

config X86
bool "x86 architecture"
select SUPPORT_OF_CONTROL

endchoice

Expand Down
1 change: 1 addition & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ config ZYNQ
config TEGRA
bool "NVIDIA Tegra"
select SPL
select OF_CONTROL if !SPL_BUILD

config TARGET_VEXPRESS_AEMV8A
bool "Support vexpress_aemv8a"
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/cpu/armv7/exynos/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,23 @@ config TARGET_ODROID

config TARGET_ARNDALE
bool "Exynos5250 Arndale board"
select OF_CONTROL if !SPL_BUILD

config TARGET_SMDK5250
bool "SMDK5250 board"
select OF_CONTROL if !SPL_BUILD

config TARGET_SNOW
bool "Snow board"
select OF_CONTROL if !SPL_BUILD

config TARGET_SMDK5420
bool "SMDK5420 board"
select OF_CONTROL if !SPL_BUILD

config TARGET_PEACH_PIT
bool "Peach Pi board"
select OF_CONTROL if !SPL_BUILD

endchoice

Expand Down
1 change: 1 addition & 0 deletions configs/am335x_boneblack_vboot_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SPL=y
CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,EMMC_BOOT,ENABLE_VBOOT"
+S:CONFIG_ARM=y
+S:CONFIG_TARGET_AM335X_EVM=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/coreboot-x86_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0x01110000"
CONFIG_X86=y
CONFIG_TARGET_COREBOOT=y
CONFIG_OF_CONTROL=y
2 changes: 2 additions & 0 deletions configs/microblaze-generic_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CONFIG_SPL=y
+S:CONFIG_MICROBLAZE=y
+S:CONFIG_TARGET_MICROBLAZE_GENERIC=y
CONFIG_OF_CONTROL=y
CONFIG_OF_EMBED=y
1 change: 1 addition & 0 deletions configs/odroid_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_ARM=y
CONFIG_ARCH_EXYNOS=y
CONFIG_TARGET_ODROID=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/origen_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SPL=y
+S:CONFIG_ARM=y
+S:CONFIG_ARCH_EXYNOS=y
+S:CONFIG_TARGET_ORIGEN=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/s5pc210_universal_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_ARM=y
CONFIG_ARCH_EXYNOS=y
CONFIG_TARGET_S5PC210_UNIVERSAL=y
CONFIG_OF_CONTROL=y
2 changes: 2 additions & 0 deletions configs/sandbox_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_OF_CONTROL=y
CONFIG_OF_HOSTFILE=y
1 change: 1 addition & 0 deletions configs/trats2_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_ARM=y
CONFIG_ARCH_EXYNOS=y
CONFIG_TARGET_TRATS2=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/trats_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_ARM=y
CONFIG_ARCH_EXYNOS=y
CONFIG_TARGET_TRATS=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/zynq_microzed_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SPL=y
+S:CONFIG_ARM=y
+S:CONFIG_ZYNQ=y
+S:CONFIG_TARGET_ZYNQ_MICROZED=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/zynq_zc70x_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SPL=y
+S:CONFIG_ARM=y
+S:CONFIG_ZYNQ=y
+S:CONFIG_TARGET_ZYNQ_ZC70X=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/zynq_zc770_xm010_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM010"
+S:CONFIG_ARM=y
+S:CONFIG_ZYNQ=y
+S:CONFIG_TARGET_ZYNQ_ZC770=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/zynq_zc770_xm012_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM012"
+S:CONFIG_ARM=y
+S:CONFIG_ZYNQ=y
+S:CONFIG_TARGET_ZYNQ_ZC770=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/zynq_zc770_xm013_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM013"
+S:CONFIG_ARM=y
+S:CONFIG_ZYNQ=y
+S:CONFIG_TARGET_ZYNQ_ZC770=y
CONFIG_OF_CONTROL=y
1 change: 1 addition & 0 deletions configs/zynq_zed_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SPL=y
+S:CONFIG_ARM=y
+S:CONFIG_ZYNQ=y
+S:CONFIG_TARGET_ZYNQ_ZED=y
CONFIG_OF_CONTROL=y
48 changes: 48 additions & 0 deletions dts/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#
# Device Tree Control
#
# TODO:
# This feature is not currently supported for SPL,
# but this restriction should be removed in the future.

config SUPPORT_OF_CONTROL
bool

menu "Device Tree Control"
depends on !SPL_BUILD
depends on SUPPORT_OF_CONTROL

config OF_CONTROL
bool "Run-time configuration via Device Tree"
help
This feature provides for run-time configuration of U-Boot
via a flattened device tree.

choice
prompt "Provider of DTB for DT control"
depends on OF_CONTROL

config OF_SEPARATE
bool "Separate DTB for DT control"
depends on !SANDBOX
help
If this option is enabled, the device tree will be built and
placed as a separate u-boot.dtb file alongside the U-Boot image.

config OF_EMBED
bool "Embedded DTB for DT control"
help
If this option is enabled, the device tree will be picked up and
built into the U-Boot image.

config OF_HOSTFILE
bool "Host filed DTB for DT control"
depends on SANDBOX
help
If this option is enabled, DTB will be read from a file on startup.
This is only useful for Sandbox. Use the -d flag to U-Boot to
specify the file to read.

endchoice

endmenu
2 changes: 0 additions & 2 deletions include/configs/am335x_evm.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# define CONFIG_TIMESTAMP
# define CONFIG_LZO
# ifdef CONFIG_ENABLE_VBOOT
# define CONFIG_OF_CONTROL
# define CONFIG_OF_SEPARATE
# define CONFIG_DEFAULT_DEVICE_TREE am335x-boneblack
# define CONFIG_FIT_SIGNATURE
# define CONFIG_RSA
Expand Down
2 changes: 0 additions & 2 deletions include/configs/arndale.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO

#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* Allow tracing to be enabled */
#define CONFIG_TRACE
Expand Down
2 changes: 0 additions & 2 deletions include/configs/beaver.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

/* Enable fdt support for Beaver. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra30-beaver
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra30 (Beaver) # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/cardhu.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

/* Enable fdt support for Cardhu. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra30-cardhu
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra30 (Cardhu) # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/colibri_t20_iris.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

/* Enable FDT support */
#define CONFIG_DEFAULT_DEVICE_TREE tegra20-colibri_t20_iris
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra20 (Colibri) # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/colibri_t30.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#include "tegra30-common.h"

#define CONFIG_DEFAULT_DEVICE_TREE tegra30-colibri
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

#define V_PROMPT "Colibri T30 # "
#define CONFIG_TEGRA_BOARD_STRING "Toradex Colibri T30"
Expand Down
2 changes: 0 additions & 2 deletions include/configs/coreboot.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

#define CONFIG_LMB
#define CONFIG_OF_LIBFDT
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE
#define CONFIG_DEFAULT_DEVICE_TREE link

#define CONFIG_BOOTSTAGE
Expand Down
2 changes: 0 additions & 2 deletions include/configs/dalmore.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

/* Enable fdt support for Dalmore. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra114-dalmore
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra114 (Dalmore) # "
Expand Down
4 changes: 0 additions & 4 deletions include/configs/exynos4-dt.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#define CONFIG_BOARD_COMMON
#define CONFIG_SYS_GENERIC_BOARD

/* Enable fdt support */
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

#define CONFIG_SYS_CACHELINE_SIZE 32

/* input clock of PLL: EXYNOS4 boards have 24MHz input clock */
Expand Down
4 changes: 0 additions & 4 deletions include/configs/exynos5-dt.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
#define CONFIG_ARCH_EARLY_INIT_R
#define CONFIG_EXYNOS_SPL

/* Enable fdt support for Exynos5250 */
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* Allow tracing to be enabled */
#define CONFIG_TRACE
#define CONFIG_CMD_TRACE
Expand Down
2 changes: 0 additions & 2 deletions include/configs/harmony.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/* Enable fdt support for Harmony. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra20-harmony
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra20 (Harmony) # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/jetson-tk1.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

/* Enable fdt support for Jetson TK1. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra124-jetson-tk1
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra124 (Jetson TK1) # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/medcom-wide.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

/* Enable fdt support for Medcom-Wide. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra20-medcom-wide
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra20 (Medcom-Wide) # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/microblaze-generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#define MICROBLAZE_V5 1

/* Open Firmware DTS */
#define CONFIG_OF_CONTROL 1
#define CONFIG_OF_EMBED 1
#define CONFIG_DEFAULT_DEVICE_TREE microblaze-generic

/* linear and spi flash memory */
Expand Down
2 changes: 0 additions & 2 deletions include/configs/paz00.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

/* Enable fdt support for Paz00. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra20-paz00
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra20 (Paz00) MOD # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/plutux.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

/* Enable fdt support for Plutux. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra20-plutux
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra20 (Plutux) # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/sandbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
/* Number of bits in a C 'long' on this architecture */
#define CONFIG_SANDBOX_BITS_PER_LONG 64

#define CONFIG_OF_CONTROL
#define CONFIG_OF_HOSTFILE
#define CONFIG_OF_LIBFDT
#define CONFIG_LMB
#define CONFIG_FIT
Expand Down
2 changes: 0 additions & 2 deletions include/configs/seaboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

/* Enable fdt support for Seaboard. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra20-seaboard
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra20 (SeaBoard) # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/tec-ng.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

/* Enable fdt support for tec-ng. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra30-tec-ng
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra30 (TEC-NG) # "
Expand Down
2 changes: 0 additions & 2 deletions include/configs/tec.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

/* Enable fdt support for TEC. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra20-tec
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra20 (TEC) # "
Expand Down
1 change: 0 additions & 1 deletion include/configs/tegra-common-post.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@

/* remove devicetree support */
#ifdef CONFIG_OF_CONTROL
#undef CONFIG_OF_CONTROL
#endif

/* remove I2C support */
Expand Down
2 changes: 0 additions & 2 deletions include/configs/trimslice.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/* Enable fdt support for TrimSlice. Flash the image in u-boot-dtb.bin */
#define CONFIG_DEFAULT_DEVICE_TREE tegra20-trimslice
#define CONFIG_OF_CONTROL
#define CONFIG_OF_SEPARATE

/* High-level configuration options */
#define V_PROMPT "Tegra20 (TrimSlice) # "
Expand Down
Loading

0 comments on commit 783e6a7

Please sign in to comment.