mb/google/soraka: Fine-tune USB 2.0 port4
[coreboot.git] / src / mainboard / Kconfig
blob47338ace83a71f7c99a7df1ff24aad0ce27b1d3c
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_12288
33         bool
34 config BOARD_ROMSIZE_KB_16384
35         bool
36 config BOARD_ROMSIZE_KB_32768
37         bool
38 config BOARD_ROMSIZE_KB_65536
39         bool
41 # TODO: No help text possible for choice fields?
42 choice
43         prompt "ROM chip size"
44         default COREBOOT_ROMSIZE_KB_64 if BOARD_ROMSIZE_KB_64
45         default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
46         default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
47         default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
48         default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
49         default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
50         default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
51         default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
52         default COREBOOT_ROMSIZE_KB_12288 if BOARD_ROMSIZE_KB_12288
53         default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
54         default COREBOOT_ROMSIZE_KB_32768 if BOARD_ROMSIZE_KB_32768
55         default COREBOOT_ROMSIZE_KB_65536 if BOARD_ROMSIZE_KB_65536
56         help
57           Select the size of the ROM chip you intend to flash coreboot on.
59           The build system will take care of creating a coreboot.rom file
60           of the matching size.
62 config COREBOOT_ROMSIZE_KB_64
63         bool "64 KB"
64         help
65           Choose this option if you have a 64 KB ROM chip.
67 config COREBOOT_ROMSIZE_KB_128
68         bool "128 KB"
69         help
70           Choose this option if you have a 128 KB ROM chip.
72 config COREBOOT_ROMSIZE_KB_256
73         bool "256 KB"
74         help
75           Choose this option if you have a 256 KB ROM chip.
77 config COREBOOT_ROMSIZE_KB_512
78         bool "512 KB"
79         help
80           Choose this option if you have a 512 KB ROM chip.
82 config COREBOOT_ROMSIZE_KB_1024
83         bool "1024 KB (1 MB)"
84         help
85           Choose this option if you have a 1024 KB (1 MB) ROM chip.
87 config COREBOOT_ROMSIZE_KB_2048
88         bool "2048 KB (2 MB)"
89         help
90           Choose this option if you have a 2048 KB (2 MB) ROM chip.
92 config COREBOOT_ROMSIZE_KB_4096
93         bool "4096 KB (4 MB)"
94         help
95           Choose this option if you have a 4096 KB (4 MB) ROM chip.
97 config COREBOOT_ROMSIZE_KB_8192
98         bool "8192 KB (8 MB)"
99         help
100           Choose this option if you have a 8192 KB (8 MB) ROM chip.
102 config COREBOOT_ROMSIZE_KB_12288
103         bool "12288 KB (12 MB)"
104         help
105           Choose this option if you have a 12288 KB (12 MB) ROM chip.
107 config COREBOOT_ROMSIZE_KB_16384
108         bool "16384 KB (16 MB)"
109         help
110           Choose this option if you have a 16384 KB (16 MB) ROM chip.
112 config COREBOOT_ROMSIZE_KB_32768
113         bool "32768 KB (32 MB)"
114         help
115           Choose this option if you have a 32768 KB (32 MB) ROM chip.
117 config COREBOOT_ROMSIZE_KB_65536
118         bool "65536 KB (64 MB)"
119         help
120           Choose this option if you have a 65536 KB (64 MB) ROM chip.
122 endchoice
124 # Map the config names to an integer (KB).
125 config COREBOOT_ROMSIZE_KB
126         int
127         default 64 if COREBOOT_ROMSIZE_KB_64
128         default 128 if COREBOOT_ROMSIZE_KB_128
129         default 256 if COREBOOT_ROMSIZE_KB_256
130         default 512 if COREBOOT_ROMSIZE_KB_512
131         default 1024 if COREBOOT_ROMSIZE_KB_1024
132         default 2048 if COREBOOT_ROMSIZE_KB_2048
133         default 4096 if COREBOOT_ROMSIZE_KB_4096
134         default 8192 if COREBOOT_ROMSIZE_KB_8192
135         default 12288 if COREBOOT_ROMSIZE_KB_12288
136         default 16384 if COREBOOT_ROMSIZE_KB_16384
137         default 32768 if COREBOOT_ROMSIZE_KB_32768
138         default 65536 if COREBOOT_ROMSIZE_KB_65536
140 # Map the config names to a hex value (bytes).
141 config ROM_SIZE
142         hex
143         default 0x10000 if COREBOOT_ROMSIZE_KB_64
144         default 0x20000 if COREBOOT_ROMSIZE_KB_128
145         default 0x40000 if COREBOOT_ROMSIZE_KB_256
146         default 0x80000 if COREBOOT_ROMSIZE_KB_512
147         default 0x100000 if COREBOOT_ROMSIZE_KB_1024
148         default 0x200000 if COREBOOT_ROMSIZE_KB_2048
149         default 0x400000 if COREBOOT_ROMSIZE_KB_4096
150         default 0x800000 if COREBOOT_ROMSIZE_KB_8192
151         default 0xc00000 if COREBOOT_ROMSIZE_KB_12288
152         default 0x1000000 if COREBOOT_ROMSIZE_KB_16384
153         default 0x2000000 if COREBOOT_ROMSIZE_KB_32768
154         default 0x4000000 if COREBOOT_ROMSIZE_KB_65536
156 config ENABLE_POWER_BUTTON
157         bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL
158         default y if POWER_BUTTON_DEFAULT_ENABLE
159         default n if POWER_BUTTON_DEFAULT_DISABLE
160         help
161           The selected mainboard can optionally have the power button tied
162           to ground with a jumper so that the button appears to be
163           constantly depressed. If this option is enabled and the jumper is
164           installed then the board will turn on, but turn off again after a
165           short timeout, usually 4 seconds.
167           Select Y here if you have removed the jumper and want to use an
168           actual power button. Select N if you have the jumper installed.
170 config ENABLE_POWER_BUTTON
171         def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
172         def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE