From: Al Stone al.stone@linaro.org
Introduce the kernel config options to enable the Grand Unified Firmware Interface (GUFI). Give the user the option of using only ACPI, only DT, or searching both with either ACPI or DT being searched first.
Signed-off-by: Al Stone al.stone@linaro.org --- arch/arm64/Kconfig | 6 ------ drivers/Kconfig | 2 ++ drivers/gufi/Kconfig | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 drivers/gufi/Kconfig
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 3bbda50..9c34098 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -331,12 +331,6 @@ endmenu
source "drivers/firmware/Kconfig"
-menu "Power management and ACPI options" - -source "drivers/acpi/Kconfig" - -endmenu - source "fs/Kconfig"
source "arch/arm64/kvm/Kconfig" diff --git a/drivers/Kconfig b/drivers/Kconfig index 73a4f88..d2e7f3c 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -10,6 +10,8 @@ source "drivers/mtd/Kconfig"
source "drivers/of/Kconfig"
+source "drivers/gufi/Kconfig" + source "drivers/parport/Kconfig"
source "drivers/pnp/Kconfig" diff --git a/drivers/gufi/Kconfig b/drivers/gufi/Kconfig new file mode 100644 index 0000000..d6a1197 --- /dev/null +++ b/drivers/gufi/Kconfig @@ -0,0 +1,54 @@ +config GUFI + def_bool y + +menu "Grand Unified Firmware Interface support" + depends on GUFI + +choice + prompt "Fetching configuration info" + default GUFI_ACPI_FIRST + +config GUFI_ACPI_ONLY + bool "ONLY search ACPI tables" + depends on ACPI + help + This option forces GUFI to search for device configuration + information in the ACPI tables and methods only, ignoring + any Device Tree content. + +config GUFI_DT_ONLY + bool "ONLY search Device Tree" + depends on OF + help + This option forces GUFI to search for device configuration + information in the Device Tree only, ignoring any ACPI content. + +config GUFI_ACPI_FIRST + bool "Always search ACPI tables first" + depends on ACPI + help + This option forces GUFI to search for device configuration + information in the ACPI tables and methods first and should + that fail, look in a Device Tree, if it is enabled. + +config GUFI_DT_FIRST + bool "Always search Device Tree first" + depends on OF + help + This option forces GUFI to search for device configuration + information in the Device Tree and should that fail, look in + the ACPI tables and methods, if it is enabled. + +endchoice + +config GUFI_TEST_DRIVER + bool "Enable a null driver that can be used to test GUFI" + depends on GUFI && (ACPI || OF) + help + This option adds a small device driver that can be used to + test out features of GUFI. It's not really needed unless + you're either developing some part of GUFI or you wish to + verify that the right configuration information is being + retrieved from firmware tables. + +endmenu # GUFI