[coreboot-gerrit] New patch to review for coreboot: bb38049 google/rambi: Re-add option to hardcode location of spd.bin

Alexandru Gagniuc (mr.nuke.me@gmail.com) gerrit at coreboot.org
Thu Feb 13 21:44:06 CET 2014


Alexandru Gagniuc (mr.nuke.me at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5219

-gerrit

commit bb3804969974c2df0d7be71b831cd9b9606a9f8a
Author: Alexandru Gagniuc <mr.nuk.me at gmail.com>
Date:   Thu Feb 13 00:16:56 2014 +0100

    google/rambi: Re-add option to hardcode location of spd.bin
    
    This is a partial revert of:
     * 76e25b6 google boards: Do not hardcode location of spd.bin
    
    Hardcoding the location of spd.bin is apparently useful during
    manufacturing. Exactly how and why is irrelevant for coreboot master,
    but we try to be a good citizen and accomodate all reasonable use
    cases. As such, allow the location of spd.bin to be specified when
    running a CHROMEOS build.
    
    Change-Id: Ic1412245125dd4241728e10fb340d801d86c5dcf
    Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
---
 src/mainboard/google/rambi/Kconfig          | 7 +++++++
 src/mainboard/google/rambi/spd/Makefile.inc | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/src/mainboard/google/rambi/Kconfig b/src/mainboard/google/rambi/Kconfig
index 1748862..d316feb 100644
--- a/src/mainboard/google/rambi/Kconfig
+++ b/src/mainboard/google/rambi/Kconfig
@@ -31,4 +31,11 @@ config HAVE_ME_BIN
 	bool
 	default n
 
+# Positioning spd.bin at a fixed address is useful during manufacturing, but
+# offers no benefit otherwise, hence only present the option with ChromeOS
+config SPD_CBFS_ADDRESS
+	depends on CHROMEOS
+	hex "Location of SPD in CBFS"
+	default 0xfffec000
+
 endif # BOARD_INTEL_BAYLEYBAY
diff --git a/src/mainboard/google/rambi/spd/Makefile.inc b/src/mainboard/google/rambi/spd/Makefile.inc
index 36f4b66..0ec7b39 100644
--- a/src/mainboard/google/rambi/spd/Makefile.inc
+++ b/src/mainboard/google/rambi/spd/Makefile.inc
@@ -43,3 +43,7 @@ $(SPD_BIN): $(SPD_DEPS)
 cbfs-files-y += spd.bin
 spd.bin-file := $(SPD_BIN)
 spd.bin-type := 0xab
+# See comment in rambi/Kconfig for why this is done like this
+ifeq ($(CONFIG_CHROMEOS),y)
+spd.bin-position := $(CONFIG_SPD_CBFS_ADDRESS)
+endif



More information about the coreboot-gerrit mailing list