[coreboot-gerrit] Change in coreboot[master]: mainboard/opencellular/rotundu: Add FMAP support

Philipp Deppenwiese (Code Review) gerrit at coreboot.org
Mon Jul 30 12:26:08 CEST 2018


Philipp Deppenwiese has submitted this change and it was merged. ( https://review.coreboot.org/25084 )

Change subject: mainboard/opencellular/rotundu: Add FMAP support
......................................................................

mainboard/opencellular/rotundu: Add FMAP support

* Add 8M and 16M fmap configurations.
* Fix kconfig selects.
* Add vboot options and fixes

Change-Id: I49d97a9d324207e45520d43b814b03a20005122a
Signed-off-by: zaolin <zaolin at das-labor.org>
Reviewed-on: https://review.coreboot.org/25084
Reviewed-by: Patrick Rudolph <siro at das-labor.org>
Reviewed-by: Arthur Heymans <arthur at aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply at coreboot.org>
---
M src/mainboard/opencellular/rotundu/Kconfig
A src/mainboard/opencellular/rotundu/vboot-16M.fmd
A src/mainboard/opencellular/rotundu/vboot-8M.fmd
3 files changed, 84 insertions(+), 4 deletions(-)

Approvals:
  build bot (Jenkins): Verified
  Patrick Rudolph: Looks good to me, approved
  Arthur Heymans: Looks good to me, approved



diff --git a/src/mainboard/opencellular/rotundu/Kconfig b/src/mainboard/opencellular/rotundu/Kconfig
index a062a7a..edacf0d 100644
--- a/src/mainboard/opencellular/rotundu/Kconfig
+++ b/src/mainboard/opencellular/rotundu/Kconfig
@@ -18,7 +18,7 @@
 config BOARD_OPENCELLULAR_BASEBOARD_ROTUNDU
 	def_bool n
 	select SOC_INTEL_FSP_BAYTRAIL
-	select BOARD_ROMSIZE_KB_16384
+	select BOARD_ROMSIZE_KB_8192
 	select HAVE_ACPI_TABLES
 	select HAVE_OPTION_TABLE
 	select ENABLE_BUILTIN_COM1
@@ -32,6 +32,21 @@
 
 if BOARD_OPENCELLULAR_BASEBOARD_ROTUNDU
 
+config VBOOT
+	select MRC_CACHE_FMAP
+	select VBOOT_VBNV_CMOS
+	select VBOOT_NO_BOARD_SUPPORT
+	select GBB_FLAG_DISABLE_LID_SHUTDOWN
+	select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC
+	select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC
+	select GBB_FLAG_DISABLE_FWMP
+
+config GBB_HWID
+	string
+	depends on VBOOT
+	default "ROTUNDU" if BOARD_OPENCELLULAR_ROTUNDU
+	default "SUPABRCKV1" if BOARD_OPENCELLULAR_SUPABRCKV1
+
 config VARIANT_DIR
 	string
 	default "rotundu" if BOARD_OPENCELLULAR_ROTUNDU
@@ -67,11 +82,16 @@
 	hex
 	default 0xfffb0000
 
-# FIXME: Slow boot performance when increasing CBFS_SIZE beyond 8MB?
+config FMDFILE
+	string
+	depends on VBOOT
+	default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/vboot-8M.fmd" if BOARD_ROMSIZE_KB_8192
+	default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/vboot-16M.fmd" if BOARD_ROMSIZE_KB_16384
+
 config CBFS_SIZE
 	hex
-	default 0x00200000 if BOARD_ROMSIZE_KB_8192
-	default 0x00800000
+	default 0x00140000 if BOARD_ROMSIZE_KB_8192
+	default 0x003effc0 if BOARD_ROMSIZE_KB_16384
 
 config VIRTUAL_ROM_SIZE
 	hex
diff --git a/src/mainboard/opencellular/rotundu/vboot-16M.fmd b/src/mainboard/opencellular/rotundu/vboot-16M.fmd
new file mode 100644
index 0000000..ec078e5
--- /dev/null
+++ b/src/mainboard/opencellular/rotundu/vboot-16M.fmd
@@ -0,0 +1,30 @@
+FLASH 16M {
+	SI_ALL at 0x0 0x300000 {
+		SI_DESC at 0x0 0x1000
+		SI_ME at 0x1000 0x2ff000
+	}
+	SI_BIOS at 0x300000 0xd00000 {
+		RW_SECTION_B at 0x0 0x400000 {
+			VBLOCK_B at 0x0 0x10000
+			FW_MAIN_B(CBFS)@0x10000 0x3effc0
+			RW_FWID_B at 0x3fffc0 0x40
+		}
+		RW_SECTION_A at 0x400000 0x400000 {
+			VBLOCK_A at 0x0 0x10000
+			FW_MAIN_A(CBFS)@0x10000 0x3effc0
+			RW_FWID_A at 0x3fffc0 0x40
+		}
+		RW_MRC_CACHE at 0x800000 0x10000
+		RW_VPD at 0x810000 0x2000
+		WP_RO at 0x812000 0x4ee000 {
+			RO_VPD at 0x0 0x4000
+			RO_SECTION at 0x4000 0x4ea000 {
+				FMAP at 0x0 0x800
+				RO_FRID at 0x800 0x40
+				RO_FRID_PAD at 0x840 0x7c0
+				GBB at 0x1000 0xef000
+				COREBOOT(CBFS)@0xf0000 0x3fa000
+			}
+		}
+	}
+}
diff --git a/src/mainboard/opencellular/rotundu/vboot-8M.fmd b/src/mainboard/opencellular/rotundu/vboot-8M.fmd
new file mode 100644
index 0000000..623f86a
--- /dev/null
+++ b/src/mainboard/opencellular/rotundu/vboot-8M.fmd
@@ -0,0 +1,30 @@
+FLASH 8M {
+	SI_ALL at 0x0 0x300000 {
+		SI_DESC at 0x0 0x1000
+		SI_ME at 0x1000 0x2ff000
+	}
+	SI_BIOS at 0x300000 0x500000 {
+		RW_SECTION_B at 0x0 0x150040 {
+			VBLOCK_B at 0x0 0x10000
+			FW_MAIN_B(CBFS)@0x10000 0x140000
+			RW_FWID_B at 0x150000 0x40
+		}
+		RW_SECTION_A at 0x150040 0x150040 {
+			VBLOCK_A at 0x0 0x10000
+			FW_MAIN_A(CBFS)@0x10000 0x140000
+			RW_FWID_A at 0x150000 0x40
+		}
+		RW_MRC_CACHE at 0x2a0080 0x10000
+		RW_VPD at 0x2b0080 0x2000
+		WP_RO at 0x2b2080 0x24df80 {
+			RO_VPD at 0x0 0x4000
+			RO_SECTION at 0x4000 0x249f80 {
+				FMAP at 0x0 0x800
+				RO_FRID at 0x800 0x40
+				RO_FRID_PAD at 0x840 0x7c0
+				GBB at 0x1000 0xef000
+				COREBOOT(CBFS)@0xf0000 0x159f80
+			}
+		}
+	}
+}

-- 
To view, visit https://review.coreboot.org/25084
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I49d97a9d324207e45520d43b814b03a20005122a
Gerrit-Change-Number: 25084
Gerrit-PatchSet: 15
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki at gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur at aheymans.xyz>
Gerrit-Reviewer: Patrick Rudolph <siro at das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter at users.sourceforge.net>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki at gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180730/ab7b50b1/attachment.html>


More information about the coreboot-gerrit mailing list