summaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2007-03-05 22:22:54 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2007-03-05 22:22:54 +0000
commitd4266c0bd35b0e28e747fe683051fbf8a57f565e (patch)
tree35b7dc25b8aa86813003ea1ba7d1d051210f31bf /Kconfig
parent689a938ca6eee463146496267aec10a53b1736af (diff)
downloadcoreboot-d4266c0bd35b0e28e747fe683051fbf8a57f565e.tar.gz
coreboot-d4266c0bd35b0e28e747fe683051fbf8a57f565e.tar.bz2
coreboot-d4266c0bd35b0e28e747fe683051fbf8a57f565e.zip
Do not hard-code the ROM chip size, but rather let the user choose
it via Kconfig (select box with some common values). The default is 256 KB. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@196 f3766cd6-281f-0410-b1cd-43a5c92072e9
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig41
1 files changed, 41 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 8c70e9ac6aa0..79c521292530 100644
--- a/Kconfig
+++ b/Kconfig
@@ -30,6 +30,47 @@ config LOCALVERSION
help
Append an extra string to the end of the LinuxBIOS version.
+choice
+ prompt "ROM chip size"
+ default LINUXBIOS_ROMSIZE_KB_256
+
+config LINUXBIOS_ROMSIZE_KB_128
+ bool "128 KB"
+ help
+ Choose this option if you have a 128 KB ROM chip.
+
+config LINUXBIOS_ROMSIZE_KB_256
+ bool "256 KB"
+ help
+ Choose this option if you have a 256 KB ROM chip.
+
+config LINUXBIOS_ROMSIZE_KB_512
+ bool "512 KB"
+ help
+ Choose this option if you have a 512 KB ROM chip.
+
+config LINUXBIOS_ROMSIZE_KB_1024
+ bool "1024 KB (1 MB)"
+ help
+ Choose this option if you have a 1 MB (1024 KB) ROM chip.
+
+config LINUXBIOS_ROMSIZE_KB_2048
+ bool "2048 KB (2 MB)"
+ help
+ Choose this option if you have a 2 MB (2048 KB) ROM chip.
+
+endchoice
+
+config LINUXBIOS_ROMSIZE_KB
+ int
+ default 128 if LINUXBIOS_ROMSIZE_KB_128
+ default 256 if LINUXBIOS_ROMSIZE_KB_256
+ default 512 if LINUXBIOS_ROMSIZE_KB_512
+ default 1024 if LINUXBIOS_ROMSIZE_KB_1024
+ default 2048 if LINUXBIOS_ROMSIZE_KB_2048
+ help
+ Map the config names to an integer.
+
endmenu
source mainboard/Kconfig