diff options
author | Subrata Banik <subratabanik@google.com> | 2023-09-14 13:36:05 +0000 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2023-09-16 10:01:40 +0000 |
commit | 70ca3c2bafd26ab76f3d0e906477c5ed3fb2cfa0 (patch) | |
tree | 8b0cccc0d6f70072cdb1bb484b69a8f203b888b5 /src/mainboard/google/rex/chromeos.fmd | |
parent | 6c8f6e6c03a7e1a276b416a3e8452ad622231e40 (diff) |
mb/google/rex: Optimize FMD usage for rex variants
This patch eliminates the need to maintain separate FMD files for rex
variants and rex variants with ISH. It does this by using the
BOARD_GOOGLE_MODEL_REX_EC_ISH config to differentiate between ME-RW
layout sizes.
TEST=Able to build and boot google/rex and google/rex_ec_ish.
Change-Id: Ibb6ee9aad9fb68198c6c1a1d5978f77d53a2e3ac
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77895
Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/rex/chromeos.fmd')
-rw-r--r-- | src/mainboard/google/rex/chromeos.fmd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/rex/chromeos.fmd b/src/mainboard/google/rex/chromeos.fmd index b2c0e84b6b..113bc7213e 100644 --- a/src/mainboard/google/rex/chromeos.fmd +++ b/src/mainboard/google/rex/chromeos.fmd @@ -8,7 +8,11 @@ FLASH 32M { VBLOCK_A 8K FW_MAIN_A(CBFS) RW_FWID_A 64 +#if CONFIG_BOARD_GOOGLE_MODEL_REX_EC_ISH + ME_RW_A(CBFS) 4500K +#else ME_RW_A(CBFS) 4400K +#endif } # This section starts at the 16M boundary in SPI flash. # MTL does not support a region crossing this boundary, @@ -18,7 +22,11 @@ FLASH 32M { VBLOCK_B 8K FW_MAIN_B(CBFS) RW_FWID_B 64 +#if CONFIG_BOARD_GOOGLE_MODEL_REX_EC_ISH + ME_RW_B(CBFS) 4500K +#else ME_RW_B(CBFS) 4400K +#endif } RW_MISC 1M { UNIFIED_MRC_CACHE(PRESERVE) 128K { |