src/mainboard/Kconfig: Add support for 10240 KiB ROM chips

The Dell Optiplex 790 desktop board has a logical 10MiB flash, so it
needs to select BOARD_ROMSIZE_KB_10240. Provide it, so it can be used.

Change-Id: I6365b0cda67fa1213c20337890157e5d658094d1
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/21863
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Jonathan Neuschäfer 2017-10-03 20:59:10 +02:00 committed by Martin Roth
parent 7f72c64195
commit d61c670705
1 changed files with 10 additions and 0 deletions

View File

@ -29,6 +29,8 @@ config BOARD_ROMSIZE_KB_4096
bool
config BOARD_ROMSIZE_KB_8192
bool
config BOARD_ROMSIZE_KB_10240
bool
config BOARD_ROMSIZE_KB_12288
bool
config BOARD_ROMSIZE_KB_16384
@ -49,6 +51,7 @@ choice
default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
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
default COREBOOT_ROMSIZE_KB_32768 if BOARD_ROMSIZE_KB_32768
@ -99,6 +102,11 @@ config COREBOOT_ROMSIZE_KB_8192
help
Choose this option if you have a 8192 KB (8 MB) ROM chip.
config COREBOOT_ROMSIZE_KB_10240
bool "10240 KB (10 MB)"
help
Choose this option if you have a 10240 KB (10 MB) ROM chip.
config COREBOOT_ROMSIZE_KB_12288
bool "12288 KB (12 MB)"
help
@ -132,6 +140,7 @@ config COREBOOT_ROMSIZE_KB
default 2048 if COREBOOT_ROMSIZE_KB_2048
default 4096 if COREBOOT_ROMSIZE_KB_4096
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
default 32768 if COREBOOT_ROMSIZE_KB_32768
@ -148,6 +157,7 @@ config ROM_SIZE
default 0x200000 if COREBOOT_ROMSIZE_KB_2048
default 0x400000 if COREBOOT_ROMSIZE_KB_4096
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