Add 64KB romchip chip size

This is handy for bifferboard to provide same size as original bootloader.

Change-Id: I179917d8c6354fa55cebdd70918a96cd299c4f3c
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Reviewed-on: http://review.coreboot.org/809
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Rudolf Marek 2012-03-25 19:19:03 +02:00 committed by Stefan Reinauer
parent 6b89b4c75f
commit ae012486e8
1 changed files with 10 additions and 0 deletions

View File

@ -188,6 +188,8 @@ source "src/mainboard/via/Kconfig"
source "src/mainboard/winent/Kconfig" source "src/mainboard/winent/Kconfig"
source "src/mainboard/wyse/Kconfig" source "src/mainboard/wyse/Kconfig"
config BOARD_ROMSIZE_KB_64
bool
config BOARD_ROMSIZE_KB_128 config BOARD_ROMSIZE_KB_128
bool bool
config BOARD_ROMSIZE_KB_256 config BOARD_ROMSIZE_KB_256
@ -208,6 +210,7 @@ config BOARD_ROMSIZE_KB_16384
# TODO: No help text possible for choice fields? # TODO: No help text possible for choice fields?
choice choice
prompt "ROM chip size" 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_128 if BOARD_ROMSIZE_KB_128
default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256 default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512 default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
@ -222,6 +225,11 @@ choice
The build system will take care of creating a coreboot.rom file The build system will take care of creating a coreboot.rom file
of the matching size. of the matching size.
config COREBOOT_ROMSIZE_KB_64
bool "64 KB"
help
Choose this option if you have a 64 KB ROM chip.
config COREBOOT_ROMSIZE_KB_128 config COREBOOT_ROMSIZE_KB_128
bool "128 KB" bool "128 KB"
help help
@ -267,6 +275,7 @@ endchoice
# Map the config names to an integer (KB). # Map the config names to an integer (KB).
config COREBOOT_ROMSIZE_KB config COREBOOT_ROMSIZE_KB
int int
default 64 if COREBOOT_ROMSIZE_KB_64
default 128 if COREBOOT_ROMSIZE_KB_128 default 128 if COREBOOT_ROMSIZE_KB_128
default 256 if COREBOOT_ROMSIZE_KB_256 default 256 if COREBOOT_ROMSIZE_KB_256
default 512 if COREBOOT_ROMSIZE_KB_512 default 512 if COREBOOT_ROMSIZE_KB_512
@ -279,6 +288,7 @@ config COREBOOT_ROMSIZE_KB
# Map the config names to a hex value (bytes). # Map the config names to a hex value (bytes).
config ROM_SIZE config ROM_SIZE
hex hex
default 0x10000 if COREBOOT_ROMSIZE_KB_64
default 0x20000 if COREBOOT_ROMSIZE_KB_128 default 0x20000 if COREBOOT_ROMSIZE_KB_128
default 0x40000 if COREBOOT_ROMSIZE_KB_256 default 0x40000 if COREBOOT_ROMSIZE_KB_256
default 0x80000 if COREBOOT_ROMSIZE_KB_512 default 0x80000 if COREBOOT_ROMSIZE_KB_512