summaryrefslogtreecommitdiff
path: root/src/mainboard/Kconfig
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-03-01 13:28:36 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-03 10:13:31 +0000
commit3e576739c9d998a679b95c878838f58a491f5fb0 (patch)
treead467e1ac6b933e178af7d535de90cfc1646e9f8 /src/mainboard/Kconfig
parentdc1596c8c8246b22dfb77a7214745782bab02d9e (diff)
downloadcoreboot-3e576739c9d998a679b95c878838f58a491f5fb0.tar.xz
mb/Kconfig: Align ROM size options
Change-Id: I0160e72a8961f1aa34982f6348825708e7be9c40 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39180 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/mainboard/Kconfig')
-rw-r--r--src/mainboard/Kconfig70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/mainboard/Kconfig b/src/mainboard/Kconfig
index df80e646bb..95459ffd8e 100644
--- a/src/mainboard/Kconfig
+++ b/src/mainboard/Kconfig
@@ -44,16 +44,16 @@ config BOARD_ROMSIZE_KB_65536
# TODO: No help text possible for choice fields?
choice
prompt "ROM chip size"
- default COREBOOT_ROMSIZE_KB_64 if BOARD_ROMSIZE_KB_64
- default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
- default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
- default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
- default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
- default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
- default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
- default COREBOOT_ROMSIZE_KB_5120 if BOARD_ROMSIZE_KB_5120
- default COREBOOT_ROMSIZE_KB_6144 if BOARD_ROMSIZE_KB_6144
- default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
+ default COREBOOT_ROMSIZE_KB_64 if BOARD_ROMSIZE_KB_64
+ default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
+ default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
+ default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
+ default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
+ default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
+ default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
+ default COREBOOT_ROMSIZE_KB_5120 if BOARD_ROMSIZE_KB_5120
+ default COREBOOT_ROMSIZE_KB_6144 if BOARD_ROMSIZE_KB_6144
+ default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
default COREBOOT_ROMSIZE_KB_10240 if BOARD_ROMSIZE_KB_10240
default COREBOOT_ROMSIZE_KB_12288 if BOARD_ROMSIZE_KB_12288
default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
@@ -145,16 +145,16 @@ endchoice
# Map the config names to an integer (KB).
config COREBOOT_ROMSIZE_KB
int
- default 64 if COREBOOT_ROMSIZE_KB_64
- default 128 if COREBOOT_ROMSIZE_KB_128
- default 256 if COREBOOT_ROMSIZE_KB_256
- default 512 if COREBOOT_ROMSIZE_KB_512
- default 1024 if COREBOOT_ROMSIZE_KB_1024
- default 2048 if COREBOOT_ROMSIZE_KB_2048
- default 4096 if COREBOOT_ROMSIZE_KB_4096
- default 5120 if COREBOOT_ROMSIZE_KB_5120
- default 6144 if COREBOOT_ROMSIZE_KB_6144
- default 8192 if COREBOOT_ROMSIZE_KB_8192
+ default 64 if COREBOOT_ROMSIZE_KB_64
+ default 128 if COREBOOT_ROMSIZE_KB_128
+ default 256 if COREBOOT_ROMSIZE_KB_256
+ default 512 if COREBOOT_ROMSIZE_KB_512
+ default 1024 if COREBOOT_ROMSIZE_KB_1024
+ default 2048 if COREBOOT_ROMSIZE_KB_2048
+ default 4096 if COREBOOT_ROMSIZE_KB_4096
+ default 5120 if COREBOOT_ROMSIZE_KB_5120
+ default 6144 if COREBOOT_ROMSIZE_KB_6144
+ default 8192 if COREBOOT_ROMSIZE_KB_8192
default 10240 if COREBOOT_ROMSIZE_KB_10240
default 12288 if COREBOOT_ROMSIZE_KB_12288
default 16384 if COREBOOT_ROMSIZE_KB_16384
@@ -164,21 +164,21 @@ config COREBOOT_ROMSIZE_KB
# Map the config names to a hex value (bytes).
config ROM_SIZE
hex
- default 0x10000 if COREBOOT_ROMSIZE_KB_64
- default 0x20000 if COREBOOT_ROMSIZE_KB_128
- default 0x40000 if COREBOOT_ROMSIZE_KB_256
- default 0x80000 if COREBOOT_ROMSIZE_KB_512
- default 0x100000 if COREBOOT_ROMSIZE_KB_1024
- default 0x200000 if COREBOOT_ROMSIZE_KB_2048
- default 0x400000 if COREBOOT_ROMSIZE_KB_4096
- default 0x500000 if COREBOOT_ROMSIZE_KB_5120
- default 0x600000 if COREBOOT_ROMSIZE_KB_6144
- default 0x800000 if COREBOOT_ROMSIZE_KB_8192
- default 0xa00000 if COREBOOT_ROMSIZE_KB_10240
- default 0xc00000 if COREBOOT_ROMSIZE_KB_12288
- default 0x1000000 if COREBOOT_ROMSIZE_KB_16384
- default 0x2000000 if COREBOOT_ROMSIZE_KB_32768
- default 0x4000000 if COREBOOT_ROMSIZE_KB_65536
+ default 0x00010000 if COREBOOT_ROMSIZE_KB_64
+ default 0x00020000 if COREBOOT_ROMSIZE_KB_128
+ default 0x00040000 if COREBOOT_ROMSIZE_KB_256
+ default 0x00080000 if COREBOOT_ROMSIZE_KB_512
+ default 0x00100000 if COREBOOT_ROMSIZE_KB_1024
+ default 0x00200000 if COREBOOT_ROMSIZE_KB_2048
+ default 0x00400000 if COREBOOT_ROMSIZE_KB_4096
+ default 0x00500000 if COREBOOT_ROMSIZE_KB_5120
+ default 0x00600000 if COREBOOT_ROMSIZE_KB_6144
+ default 0x00800000 if COREBOOT_ROMSIZE_KB_8192
+ default 0x00a00000 if COREBOOT_ROMSIZE_KB_10240
+ default 0x00c00000 if COREBOOT_ROMSIZE_KB_12288
+ default 0x01000000 if COREBOOT_ROMSIZE_KB_16384
+ default 0x02000000 if COREBOOT_ROMSIZE_KB_32768
+ default 0x04000000 if COREBOOT_ROMSIZE_KB_65536
config ENABLE_POWER_BUTTON
bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL