RISC-V: Add EFI runtime services
[sfrench/cifs-2.6.git] / arch / riscv / Kconfig
index 7b59055291466488f3e6bd613c0196e9b77d3b92..c8e57d77c144cb99fb86d6433c120d24c25a9ce8 100644 (file)
@@ -37,6 +37,7 @@ config RISCV
        select GENERIC_ARCH_TOPOLOGY if SMP
        select GENERIC_ATOMIC64 if !64BIT
        select GENERIC_CLOCKEVENTS
+       select GENERIC_EARLY_IOREMAP
        select GENERIC_GETTIMEOFDAY if HAVE_GENERIC_VDSO
        select GENERIC_IOREMAP
        select GENERIC_IRQ_MULTI_HANDLER
@@ -81,7 +82,7 @@ config RISCV
        select PCI_DOMAINS_GENERIC if PCI
        select PCI_MSI if PCI
        select RISCV_INTC
-       select RISCV_TIMER
+       select RISCV_TIMER if RISCV_SBI
        select SPARSEMEM_STATIC if 32BIT
        select SPARSE_IRQ
        select SYSCTL_EXCEPTION_TRACE
@@ -400,6 +401,28 @@ config CMDLINE_FORCE
 
 endchoice
 
+config EFI_STUB
+       bool
+
+config EFI
+       bool "UEFI runtime support"
+       depends on OF
+       select LIBFDT
+       select UCS2_STRING
+       select EFI_PARAMS_FROM_FDT
+       select EFI_STUB
+       select EFI_GENERIC_STUB
+       select EFI_RUNTIME_WRAPPERS
+       select RISCV_ISA_C
+       depends on MMU
+       default y
+       help
+         This option provides support for runtime services provided
+         by UEFI firmware (such as non-volatile variables, realtime
+         clock, and platform reset). A UEFI stub is also provided to
+         allow the kernel to be booted as an EFI application. This
+         is only useful on systems that have UEFI firmware.
+
 endmenu
 
 config BUILTIN_DTB
@@ -412,3 +435,5 @@ menu "Power management options"
 source "kernel/power/Kconfig"
 
 endmenu
+
+source "drivers/firmware/Kconfig"