mb/google/dedede: Add support for 16 MiB flash map descriptor

Upcoming variant boards will use 16 MiB SPI ROM. So add support for 16
MiB flash map descriptor.

BUG=b:155107866,b:152981693
TEST=Build different variant boards. Ensure that waddledoo which is using
32 MiB SPI ROM boots.

Cq-Depend: chrome-internal:3107306
Change-Id: I8a6868da3280a662ff3a30623804ff135e6cbfbc
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42322
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Karthikeyan Ramasubramanian 2020-06-11 23:31:56 -06:00 committed by Patrick Georgi
parent 57ead89356
commit dd48b176f3
4 changed files with 50 additions and 2 deletions

View File

@ -1,5 +1,6 @@
config BOARD_GOOGLE_BASEBOARD_DEDEDE
def_bool n
select BOARD_ROMSIZE_KB_16384 if !BOARD_ROMSIZE_KB_32768
select DRIVERS_I2C_GENERIC
select DRIVERS_I2C_HID
select DRIVERS_SPI_ACPI
@ -47,6 +48,11 @@ config DIMM_SPD_SIZE
config DRIVER_TPM_SPI_BUS
default 0x1
config FMDFILE
string
default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/chromeos-dedede-16MiB.fmd" if BOARD_ROMSIZE_KB_16384
default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/chromeos-dedede-32MiB.fmd" if BOARD_ROMSIZE_KB_32768
config MAINBOARD_DIR
string
default "google/dedede"

View File

@ -2,7 +2,6 @@ config BOARD_GOOGLE_BOTEN
bool "Boten"
select BOARD_GOOGLE_BASEBOARD_DEDEDE
select BASEBOARD_DEDEDE_LAPTOP
select BOARD_ROMSIZE_KB_32768
config BOARD_GOOGLE_DEDEDE
bool "Dedede"
@ -35,4 +34,3 @@ config BOARD_GOOGLE_WHEELIE
bool "Wheelie"
select BOARD_GOOGLE_BASEBOARD_DEDEDE
select BASEBOARD_DEDEDE_LAPTOP
select BOARD_ROMSIZE_KB_32768

View File

@ -0,0 +1,44 @@
FLASH@0xff000000 0x1000000 {
SI_ALL@0x0 0x381000 {
SI_DESC@0x0 0x1000
SI_ME@0x1000 0x380000
}
SI_BIOS@0x381000 0xc7f000 {
RW_LEGACY(CBFS)@0x0 0x1000
RW_SECTION_A@0x1000 0x420000 {
VBLOCK_A@0x0 0x10000
FW_MAIN_A(CBFS)@0x10000 0x40ffc0
RW_FWID_A@0x41ffc0 0x40
}
RW_SECTION_B@0x421000 0x420000 {
VBLOCK_B@0x0 0x10000
FW_MAIN_B(CBFS)@0x10000 0x40ffc0
RW_FWID_B@0x41ffc0 0x40
}
RW_MISC@0x841000 0x3e000 {
UNIFIED_MRC_CACHE(PRESERVE)@0x0 0x30000 {
RECOVERY_MRC_CACHE@0x0 0x10000
RW_MRC_CACHE@0x10000 0x20000
}
RW_ELOG(PRESERVE)@0x30000 0x3000
RW_SHARED@0x33000 0x4000 {
SHARED_DATA@0x0 0x2000
VBLOCK_DEV@0x2000 0x2000
}
RW_VPD(PRESERVE)@0x37000 0x2000
RW_NVRAM(PRESERVE)@0x39000 0x5000
}
# Make WP_RO region align with SPI vendor
# memory protected range specification.
WP_RO@0x87f000 0x400000 {
RO_VPD(PRESERVE)@0x0 0x4000
RO_SECTION@0x4000 0x3fc000 {
FMAP@0x0 0x800
RO_FRID@0x800 0x40
RO_FRID_PAD@0x840 0x7c0
GBB@0x1000 0x3000
COREBOOT(CBFS)@0x4000 0x3f8000
}
}
}
}