[coreboot] [patch] support for 4MB ROM images
Cristi Magherusan
Cristi.Magherusan at net.utcluj.ro
Fri Aug 14 02:33:23 CEST 2009
This patch enables Kbuild to create 4MB ROM images, instead of maximum 2MB as before.
It's also available in my git repo, in here:
http://github.com/cristim/coreboot-v2/commit/2aa6a3012de28b5db4c35d9fe128f681c3a986e9.patch
From 2aa6a3012de28b5db4c35d9fe128f681c3a986e9 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Cristi=20M=C4=83gheru=C8=99an?= <cristi.magherusan at net.utcluj.ro>
Date: Fri, 14 Aug 2009 02:48:21 +0300
Subject: [PATCH] added support for generating 4MB ROM images
---
src/arch/i386/Kconfig | 3 +++
src/mainboard/Kconfig | 6 ++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/arch/i386/Kconfig b/src/arch/i386/Kconfig
index ce36f55..54e4560 100644
--- a/src/arch/i386/Kconfig
+++ b/src/arch/i386/Kconfig
@@ -13,6 +13,7 @@ config ARCH
config ROMBASE
hex
+ default 0xffc00000 if COREBOOT_ROMSIZE_KB_4096
default 0xffe00000 if COREBOOT_ROMSIZE_KB_2048
default 0xfff00000 if COREBOOT_ROMSIZE_KB_1024
default 0xfff80000 if COREBOOT_ROMSIZE_KB_512
@@ -25,6 +26,7 @@ config PAYLOAD_SIZE
config ROM_PAYLOAD_START
hex
+ default 0xffc00000 if COREBOOT_ROMSIZE_KB_4096
default 0xffe00000 if COREBOOT_ROMSIZE_KB_2048
default 0xfff00000 if COREBOOT_ROMSIZE_KB_1024
default 0xfff80000 if COREBOOT_ROMSIZE_KB_512
@@ -33,6 +35,7 @@ config ROM_PAYLOAD_START
config ROM_IMAGE_SIZE
hex
+ default 0x400000 if COREBOOT_ROMSIZE_KB_4096
default 0x200000 if COREBOOT_ROMSIZE_KB_2048
default 0x100000 if COREBOOT_ROMSIZE_KB_1024
default 0x80000 if COREBOOT_ROMSIZE_KB_512
diff --git a/src/mainboard/Kconfig b/src/mainboard/Kconfig
index 14b1d5d..d005230 100644
--- a/src/mainboard/Kconfig
+++ b/src/mainboard/Kconfig
@@ -327,6 +327,11 @@ config COREBOOT_ROMSIZE_KB_2048
help
Choose this option if you have a 2048 KB (2 MB) ROM chip.
+config COREBOOT_ROMSIZE_KB_4096
+ bool "4096 KB (4 MB)"
+ help
+ Choose this option if you have a 4096 KB (4 MB) ROM chip.
+
endchoice
config COREBOOT_ROMSIZE_KB
@@ -336,6 +341,7 @@ config COREBOOT_ROMSIZE_KB
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
help
Map the config names to an integer.
--
1.5.5.1
--
Signed-off by: Cristi Magherusan <cristi.magherusan at net.utcluj.ro>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090814/a3aec970/attachment.sig>
More information about the coreboot
mailing list