From 6bfabce33b698571be73a47f62fe733f18e69f66 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 25 Dec 2014 15:07:22 -0800 Subject: cbfs: look for CBFS header in a predefined place This patch introduces a new option (CONFIG_MULTIPLE_CBFS_INSTANCES) to allow multiple CBFS instances in the bootrom. When the new option is enabled, the code running on the target controls which CBFS instance is used. Since all other then header CBFS structures use relative addressing, the only value which needs explicit setting is the offset of the CBFS header in the bootrom. This patch adds a facility to set the CBFS header offset. The offset value of zero means default. i.e. the CBFS initialization code still discovers the offset through the value saved at the top of the ROM. BRANCH=storm BUG=chrome-os-partner:34161, chromium:445938 TEST=with the rest patches in, storm target successfully boots from RW section A. Change-Id: Id8333c9373e61597f0c653c727dcee4ef6a58cd2 Signed-off-by: Patrick Georgi Original-Commit-Id: e57a3a15bba7cdcca4a5d684ed78f8ac6dbbc95e Original-Change-Id: I4c026389ec4fbaa19bd11b2160202282d2f9283c Original-Signed-off-by: Vadim Bendebury Original-Reviewed-on: https://chromium-review.googlesource.com/237569 Original-Reviewed-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/9747 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Edward O'Callaghan --- src/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Kconfig') diff --git a/src/Kconfig b/src/Kconfig index 6cf31343cc..6f7f459fc1 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -55,6 +55,16 @@ config COMMON_CBFS_SPI_WRAPPER help Use common wrapper to interface CBFS to SPI bootrom. +config MULTIPLE_CBFS_INSTANCES + bool "Multiple CBFS instances in the bootrom" + default n + depends on !ARCH_X86 + help + Account for the firmware image containing more than one CBFS + instance. Locations of instances are known at build time and are + communicated between coreboot stages to make sure the next stage is + loaded from the appropriate instance. + choice prompt "Compiler to use" default COMPILER_GCC -- cgit v1.2.3