amd/stoneyridge: Add SlpTyp SMI handler
[coreboot.git] / src / mainboard / Kconfig
blob04dca4adf5c90852c1f68171fa8db599801e39df
1 comment "Important: Run 'make distclean' before switching boards"
3 choice
4         prompt "Mainboard vendor"
5         default VENDOR_EMULATION
7 source "src/mainboard/*/Kconfig.name"
9 endchoice
11 source "src/mainboard/*/Kconfig"
13 comment "WARNING: This mainboard uses LATE_CBMEM_INIT, which is deprecated"
14         depends on LATE_CBMEM_INIT
16 config BOARD_ROMSIZE_KB_64
17         bool
18 config BOARD_ROMSIZE_KB_128
19         bool
20 config BOARD_ROMSIZE_KB_256
21         bool
22 config BOARD_ROMSIZE_KB_512
23         bool
24 config BOARD_ROMSIZE_KB_1024
25         bool
26 config BOARD_ROMSIZE_KB_2048
27         bool
28 config BOARD_ROMSIZE_KB_4096
29         bool
30 config BOARD_ROMSIZE_KB_8192
31         bool
32 config BOARD_ROMSIZE_KB_10240
33         bool
34 config BOARD_ROMSIZE_KB_12288
35         bool
36 config BOARD_ROMSIZE_KB_16384
37         bool
38 config BOARD_ROMSIZE_KB_32768
39         bool
40 config BOARD_ROMSIZE_KB_65536
41         bool
43 # TODO: No help text possible for choice fields?
44 choice
45         prompt "ROM chip size"
46         default COREBOOT_ROMSIZE_KB_64 if BOARD_ROMSIZE_KB_64
47         default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
48         default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
49         default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
50         default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
51         default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
52         default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
53         default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
54         default COREBOOT_ROMSIZE_KB_10240 if BOARD_ROMSIZE_KB_10240
55         default COREBOOT_ROMSIZE_KB_12288 if BOARD_ROMSIZE_KB_12288
56         default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
57         default COREBOOT_ROMSIZE_KB_32768 if BOARD_ROMSIZE_KB_32768
58         default COREBOOT_ROMSIZE_KB_65536 if BOARD_ROMSIZE_KB_65536
59         help
60           Select the size of the ROM chip you intend to flash coreboot on.
62           The build system will take care of creating a coreboot.rom file
63           of the matching size.
65 config COREBOOT_ROMSIZE_KB_64
66         bool "64 KB"
67         help
68           Choose this option if you have a 64 KB ROM chip.
70 config COREBOOT_ROMSIZE_KB_128
71         bool "128 KB"
72         help
73           Choose this option if you have a 128 KB ROM chip.
75 config COREBOOT_ROMSIZE_KB_256
76         bool "256 KB"
77         help
78           Choose this option if you have a 256 KB ROM chip.
80 config COREBOOT_ROMSIZE_KB_512
81         bool "512 KB"
82         help
83           Choose this option if you have a 512 KB ROM chip.
85 config COREBOOT_ROMSIZE_KB_1024
86         bool "1024 KB (1 MB)"
87         help
88           Choose this option if you have a 1024 KB (1 MB) ROM chip.
90 config COREBOOT_ROMSIZE_KB_2048
91         bool "2048 KB (2 MB)"
92         help
93           Choose this option if you have a 2048 KB (2 MB) ROM chip.
95 config COREBOOT_ROMSIZE_KB_4096
96         bool "4096 KB (4 MB)"
97         help
98           Choose this option if you have a 4096 KB (4 MB) ROM chip.
100 config COREBOOT_ROMSIZE_KB_8192
101         bool "8192 KB (8 MB)"
102         help
103           Choose this option if you have a 8192 KB (8 MB) ROM chip.
105 config COREBOOT_ROMSIZE_KB_10240
106         bool "10240 KB (10 MB)"
107         help
108           Choose this option if you have a 10240 KB (10 MB) ROM chip.
110 config COREBOOT_ROMSIZE_KB_12288
111         bool "12288 KB (12 MB)"
112         help
113           Choose this option if you have a 12288 KB (12 MB) ROM chip.
115 config COREBOOT_ROMSIZE_KB_16384
116         bool "16384 KB (16 MB)"
117         help
118           Choose this option if you have a 16384 KB (16 MB) ROM chip.
120 config COREBOOT_ROMSIZE_KB_32768
121         bool "32768 KB (32 MB)"
122         help
123           Choose this option if you have a 32768 KB (32 MB) ROM chip.
125 config COREBOOT_ROMSIZE_KB_65536
126         bool "65536 KB (64 MB)"
127         help
128           Choose this option if you have a 65536 KB (64 MB) ROM chip.
130 endchoice
132 # Map the config names to an integer (KB).
133 config COREBOOT_ROMSIZE_KB
134         int
135         default 64 if COREBOOT_ROMSIZE_KB_64
136         default 128 if COREBOOT_ROMSIZE_KB_128
137         default 256 if COREBOOT_ROMSIZE_KB_256
138         default 512 if COREBOOT_ROMSIZE_KB_512
139         default 1024 if COREBOOT_ROMSIZE_KB_1024
140         default 2048 if COREBOOT_ROMSIZE_KB_2048
141         default 4096 if COREBOOT_ROMSIZE_KB_4096
142         default 8192 if COREBOOT_ROMSIZE_KB_8192
143         default 10240 if COREBOOT_ROMSIZE_KB_10240
144         default 12288 if COREBOOT_ROMSIZE_KB_12288
145         default 16384 if COREBOOT_ROMSIZE_KB_16384
146         default 32768 if COREBOOT_ROMSIZE_KB_32768
147         default 65536 if COREBOOT_ROMSIZE_KB_65536
149 # Map the config names to a hex value (bytes).
150 config ROM_SIZE
151         hex
152         default 0x10000 if COREBOOT_ROMSIZE_KB_64
153         default 0x20000 if COREBOOT_ROMSIZE_KB_128
154         default 0x40000 if COREBOOT_ROMSIZE_KB_256
155         default 0x80000 if COREBOOT_ROMSIZE_KB_512
156         default 0x100000 if COREBOOT_ROMSIZE_KB_1024
157         default 0x200000 if COREBOOT_ROMSIZE_KB_2048
158         default 0x400000 if COREBOOT_ROMSIZE_KB_4096
159         default 0x800000 if COREBOOT_ROMSIZE_KB_8192
160         default 0xa00000 if COREBOOT_ROMSIZE_KB_10240
161         default 0xc00000 if COREBOOT_ROMSIZE_KB_12288
162         default 0x1000000 if COREBOOT_ROMSIZE_KB_16384
163         default 0x2000000 if COREBOOT_ROMSIZE_KB_32768
164         default 0x4000000 if COREBOOT_ROMSIZE_KB_65536
166 config ENABLE_POWER_BUTTON
167         bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL
168         default y if POWER_BUTTON_DEFAULT_ENABLE
169         default n if POWER_BUTTON_DEFAULT_DISABLE
170         help
171           The selected mainboard can optionally have the power button tied
172           to ground with a jumper so that the button appears to be
173           constantly depressed. If this option is enabled and the jumper is
174           installed then the board will turn on, but turn off again after a
175           short timeout, usually 4 seconds.
177           Select Y here if you have removed the jumper and want to use an
178           actual power button. Select N if you have the jumper installed.
180 config ENABLE_POWER_BUTTON
181         def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
182         def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE