1menu "Sandbox architecture"
2	depends on SANDBOX
3
4config SYS_ARCH
5	default "sandbox"
6
7config SYS_BOARD
8	default "sandbox"
9
10config SYS_CPU
11	default "sandbox"
12
13config SANDBOX64
14	bool "Use 64-bit addresses"
15	select PHYS_64BIT
16	depends on HOST_64BIT
17
18config SANDBOX_RAM_SIZE_MB
19	int "RAM size in MiB"
20	default 256
21	range 64 4095 if !SANDBOX64
22	range 64 268435456 if SANDBOX64
23	help
24	  Memory size of the sandbox in MiB. The default value is 256 MiB.
25	  The minimum value is 64 MiB. The maximum value is 4095 MiB for the
26	  32bit sandbox.
27
28config SANDBOX_SPL
29	bool "Enable SPL for sandbox"
30	select SUPPORT_SPL
31
32config SANDBOX_TPL
33	bool "Enable TPL for sandbox"
34	select SUPPORT_TPL
35
36config SANDBOX_VPL
37	bool "Enable VPL for sandbox"
38	select SUPPORT_VPL
39
40config SYS_CONFIG_NAME
41	default "sandbox_spl" if SANDBOX_SPL
42	default "sandbox" if !SANDBOX_SPL
43
44config HOST_32BIT
45	def_bool ! $(cc-define,_LP64)
46
47config HOST_64BIT
48	def_bool $(cc-define,_LP64)
49	select 64BIT
50	select SPL_64BIT if SPL
51
52config HOST_HAS_SDL
53	def_bool $(success,sdl2-config --version)
54
55config SANDBOX_SDL
56	bool "Enable SDL2 support in sandbox"
57	default HOST_HAS_SDL
58
59config SANDBOX_CRASH_RESET
60	bool "Reset on crash"
61	help
62	  If an illegal instruction or an illegal memory access occurs, the
63	  sandbox exits with an error by default.
64
65	  If the u-boot binary is invoked with --signals (or -S), U-Boot will
66	  handle the signal writing a crash dump before exiting.
67
68	  If you additionally set the CONFIG_SANDBOX_CRASH_RESET flag, the
69	  sandbox is reset after writing the crash dump. This may be useful
70	  when running test suites like the UEFI self certification test which
71	  continue with the next test after a crash.
72
73config SANDBOX_BITS_PER_LONG
74	int
75	default 32 if HOST_32BIT
76	default 64 if HOST_64BIT
77
78config SYS_FDT_LOAD_ADDR
79	hex "Address at which to load devicetree"
80	default 0x1000
81	help
82	  With sandbox the devicetree is loaded into the emulated RAM. This sets
83	  the address that is used. There must be enough space at this address
84	  to load the full devicetree without it overwriting anything else.
85
86	  See `doc/arch/sandbox.rst` for more information.
87
88endmenu
89
90config FWU_NUM_BANKS
91	default 2
92
93config FWU_NUM_IMAGES_PER_BANK
94	default 2
95