Angel Pons has uploaded this change for review.

View Change

mb/Kconfig: Align ROM size options

Change-Id: I0160e72a8961f1aa34982f6348825708e7be9c40
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
---
M src/mainboard/Kconfig
1 file changed, 32 insertions(+), 32 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/39180/1
diff --git a/src/mainboard/Kconfig b/src/mainboard/Kconfig
index df80e64..336474f 100644
--- a/src/mainboard/Kconfig
+++ b/src/mainboard/Kconfig
@@ -44,16 +44,16 @@
# 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 @@
# 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,18 +164,18 @@
# 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 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

To view, visit change 39180. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0160e72a8961f1aa34982f6348825708e7be9c40
Gerrit-Change-Number: 39180
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: newchange