xref: /openbmc/u-boot/lib/efi/Kconfig (revision 867a6ac8)
1*867a6ac8SSimon Glassconfig EFI
2*867a6ac8SSimon Glass	bool "Support running U-Boot from EFI"
3*867a6ac8SSimon Glass	depends on X86
4*867a6ac8SSimon Glass	help
5*867a6ac8SSimon Glass	  U-Boot can be started from EFI on certain platforms. This allows
6*867a6ac8SSimon Glass	  EFI to perform most of the system init and then jump to U-Boot for
7*867a6ac8SSimon Glass	  final system boot. Another option is to run U-Boot as an EFI
8*867a6ac8SSimon Glass	  application, with U-Boot using EFI's drivers instead of its own.
9*867a6ac8SSimon Glass
10*867a6ac8SSimon Glasschoice
11*867a6ac8SSimon Glass	prompt "Select EFI mode to use"
12*867a6ac8SSimon Glass	depends on X86 && EFI
13*867a6ac8SSimon Glass
14*867a6ac8SSimon Glassconfig EFI_APP
15*867a6ac8SSimon Glass	bool "Support running as an EFI application"
16*867a6ac8SSimon Glass	help
17*867a6ac8SSimon Glass	  Build U-Boot as an application which can be started from EFI. This
18*867a6ac8SSimon Glass	  is useful for examining a platform in the early stages of porting
19*867a6ac8SSimon Glass	  U-Boot to it. It allows only very basic functionality, such as a
20*867a6ac8SSimon Glass	  command prompt and memory and I/O functions. Use 'reset' to return
21*867a6ac8SSimon Glass	  to EFI.
22*867a6ac8SSimon Glass
23*867a6ac8SSimon Glassconfig EFI_RAM_SIZE
24*867a6ac8SSimon Glass	hex "Amount of EFI RAM for U-Boot"
25*867a6ac8SSimon Glass	depends on EFI_APP
26*867a6ac8SSimon Glass	default 0x2000000
27*867a6ac8SSimon Glass	help
28*867a6ac8SSimon Glass	  Set the amount of EFI RAM which is claimed by U-Boot for its own
29*867a6ac8SSimon Glass	  use. U-Boot allocates this from EFI on start-up (along with a few
30*867a6ac8SSimon Glass	  other smaller amounts) and it can never be increased after that.
31*867a6ac8SSimon Glass	  It is used as the RAM size in with U-Boot.
32*867a6ac8SSimon Glass
33*867a6ac8SSimon Glassendchoice
34