summaryrefslogtreecommitdiffstats
path: root/src/mainboard
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2021-07-02 09:24:11 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-07-07 14:56:54 +0000
commitae6a3e83ca240a154d62d796bac9811f813b871e (patch)
treea333a9f18cac10ef7ddffb80a8d3111285692f7c /src/mainboard
parentf2c98136565c95e2f88a2549eedcd2d0c6e53112 (diff)
downloadcoreboot-ae6a3e83ca240a154d62d796bac9811f813b871e.tar.gz
coreboot-ae6a3e83ca240a154d62d796bac9811f813b871e.tar.bz2
coreboot-ae6a3e83ca240a154d62d796bac9811f813b871e.zip
mb/siemens/mc_ehl: Switch to 16 MB ROM and provide a flashmap
There is a 16 MB flash chip on mc_ehl. Set the ROM size accordingly and provide a flashmap for partitioning. Select the used flashmap on variant level to allow different layouts for different variants. Change-Id: I694729ad98f91e27308220903c49e7cb7fc436b4 Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56035 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/siemens/mc_ehl/Kconfig2
-rw-r--r--src/mainboard/siemens/mc_ehl/mc_ehl.fmd11
-rw-r--r--src/mainboard/siemens/mc_ehl/variants/mc_ehl1/Kconfig7
3 files changed, 19 insertions, 1 deletions
diff --git a/src/mainboard/siemens/mc_ehl/Kconfig b/src/mainboard/siemens/mc_ehl/Kconfig
index 63b153b23c59..035bc8584daf 100644
--- a/src/mainboard/siemens/mc_ehl/Kconfig
+++ b/src/mainboard/siemens/mc_ehl/Kconfig
@@ -1,7 +1,7 @@
config BOARD_SIEMENS_BASEBOARD_MC_EHL
def_bool n
select SOC_INTEL_ELKHARTLAKE
- select BOARD_ROMSIZE_KB_32768
+ select BOARD_ROMSIZE_KB_16384
select DRIVERS_I2C_GENERIC
select HAVE_SPD_IN_CBFS
select HAVE_ACPI_TABLES
diff --git a/src/mainboard/siemens/mc_ehl/mc_ehl.fmd b/src/mainboard/siemens/mc_ehl/mc_ehl.fmd
new file mode 100644
index 000000000000..78faf2b10760
--- /dev/null
+++ b/src/mainboard/siemens/mc_ehl/mc_ehl.fmd
@@ -0,0 +1,11 @@
+FLASH @0xff000000 CONFIG_ROM_SIZE {
+ SI_ALL 0x400000 {
+ SI_DESC 0x1000
+ SI_ME 0x3ff000
+ }
+ SI_BIOS 0xc00000 {
+ FMAP 0x200
+ RW_MRC_CACHE 0x10000
+ COREBOOT(CBFS)
+ }
+}
diff --git a/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/Kconfig b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/Kconfig
new file mode 100644
index 000000000000..b6e2b332ab3f
--- /dev/null
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/Kconfig
@@ -0,0 +1,7 @@
+if BOARD_SIEMENS_MC_EHL1
+
+config FMDFILE
+ string
+ default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/mc_ehl.fmd"
+
+endif # BOARD_SIEMENS_MC_EHL1