diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 45b52acaf6e..7a5bfee9635 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -14,6 +14,8 @@ source "arch/Kconfig" source "kernel/Kconfig" +source "dts/Kconfig" + source "drivers/Kconfig" source "net/Kconfig" diff --git a/dts/Kconfig b/dts/Kconfig new file mode 100644 index 00000000000..ef06cd5a300 --- /dev/null +++ b/dts/Kconfig @@ -0,0 +1,21 @@ +config HAS_DTS + bool "Uses Device Tree" + help + This option specifies that the target platform supports device tree + configuration. + +config HAS_DTS_ADC + bool "ADC uses Device Tree" + depends on HAS_DTS + help + This option specifies that the target platform supports device tree + configuration for ADC. + +config HAS_DTS_I2C + bool "I2C uses Device Tree" + default n + depends on HAS_DTS + help + This option specifies that the target platform supports device tree + configuration for I2c. + diff --git a/kernel/Kconfig b/kernel/Kconfig index 56a0c180b87..1362786a573 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -9,27 +9,6 @@ menu "General Kernel Options" -config HAS_DTS - bool "Uses Device Tree" - help - This option specifies that the target platform supports device tree - configuration. - -config HAS_DTS_ADC - bool "ADC uses Device Tree" - depends on HAS_DTS - help - This option specifies that the target platform supports device tree - configuration for ADC. - -config HAS_DTS_I2C - bool "I2C uses Device Tree" - default n - depends on HAS_DTS - help - This option specifies that the target platform supports device tree - configuration for I2c. - config MULTITHREADING bool prompt "Multi-threading"