From 5d7ab39024705d872221aab126b42e743674d672 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 12 Dec 2015 00:23:15 +0100 Subject: [PATCH] chromeos: import Chrome OS fmaps These are generated from depthcharge's board/*/fmap.dts using the dts-to-fmd.sh script. One special case is google/veyron's chromeos.fmd, which is used for a larger set of boards - no problem since the converted fmd was the same for all of them. Set aside 128K for the bootblock on non-x86 systems (where the COREBOOT region ends up at the beginning of flash). This becomes necessary because we're working without a real cbfs master header (exists for transition only), which carved out the space for the offset. Change-Id: Ieeb33702d3e58e07e958523533f83da97237ecf1 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/12715 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/Kconfig | 1 + src/mainboard/google/auron/chromeos.fmd | 38 ++++++ src/mainboard/google/bolt/chromeos.fmd | 38 ++++++ src/mainboard/google/butterfly/chromeos.fmd | 39 +++++++ src/mainboard/google/chell/chromeos.fmd | 38 ++++++ src/mainboard/google/cosmos/chromeos.fmd | 28 +++++ src/mainboard/google/cyan/chromeos.fmd | 38 ++++++ src/mainboard/google/daisy/chromeos.fmd | 27 +++++ src/mainboard/google/falco/chromeos.fmd | 38 ++++++ src/mainboard/google/foster/chromeos.fmd | 28 +++++ src/mainboard/google/glados/chromeos.fmd | 38 ++++++ src/mainboard/google/guado/chromeos.fmd | 38 ++++++ src/mainboard/google/jecht/chromeos.fmd | 38 ++++++ src/mainboard/google/lars/chromeos.fmd | 38 ++++++ src/mainboard/google/link/chromeos.fmd | 38 ++++++ src/mainboard/google/nyan/chromeos.fmd | 28 +++++ src/mainboard/google/nyan_big/chromeos.fmd | 28 +++++ src/mainboard/google/nyan_blaze/chromeos.fmd | 28 +++++ src/mainboard/google/oak/chromeos.fmd | 29 +++++ src/mainboard/google/panther/chromeos.fmd | 38 ++++++ src/mainboard/google/parrot/chromeos.fmd | 39 +++++++ src/mainboard/google/peach_pit/chromeos.fmd | 27 +++++ src/mainboard/google/peppy/chromeos.fmd | 38 ++++++ src/mainboard/google/purin/chromeos.fmd | 32 +++++ src/mainboard/google/rambi/chromeos.fmd | 38 ++++++ src/mainboard/google/rush/chromeos.fmd | 27 +++++ src/mainboard/google/rush_ryu/chromeos.fmd | 27 +++++ src/mainboard/google/samus/chromeos.fmd | 38 ++++++ src/mainboard/google/slippy/chromeos.fmd | 38 ++++++ src/mainboard/google/smaug/chromeos.fmd | 27 +++++ src/mainboard/google/storm/chromeos.fmd | 33 ++++++ src/mainboard/google/stout/chromeos.fmd | 39 +++++++ src/mainboard/google/tidus/chromeos.fmd | 38 ++++++ src/mainboard/google/urara/chromeos.fmd | 32 +++++ src/mainboard/google/veyron/chromeos.fmd | 28 +++++ .../google/veyron_brain/chromeos.fmd | 29 +++++ .../google/veyron_danger/chromeos.fmd | 29 +++++ .../google/veyron_emile/chromeos.fmd | 29 +++++ .../google/veyron_mickey/chromeos.fmd | 29 +++++ .../google/veyron_rialto/chromeos.fmd | 29 +++++ src/mainboard/google/veyron_romy/chromeos.fmd | 29 +++++ .../google/veyron_speedy/chromeos.fmd | 28 +++++ src/mainboard/intel/baskingridge/chromeos.fmd | 37 ++++++ .../intel/bayleybay_fsp/chromeos.fmd | 37 ++++++ src/mainboard/intel/kunimitsu/chromeos.fmd | 38 ++++++ src/mainboard/intel/sklrvp/chromeos.fmd | 37 ++++++ src/mainboard/intel/strago/chromeos.fmd | 38 ++++++ src/mainboard/intel/wtm2/chromeos.fmd | 37 ++++++ src/mainboard/samsung/lumpy/chromeos.fmd | 37 ++++++ src/mainboard/samsung/stumpy/chromeos.fmd | 37 ++++++ .../convert-all-depthcharge-fmap.dts.sh | 10 ++ util/scripts/dts-to-fmd.sh | 110 ++++++++++++++++++ 52 files changed, 1775 insertions(+) create mode 100644 src/mainboard/google/auron/chromeos.fmd create mode 100644 src/mainboard/google/bolt/chromeos.fmd create mode 100644 src/mainboard/google/butterfly/chromeos.fmd create mode 100644 src/mainboard/google/chell/chromeos.fmd create mode 100644 src/mainboard/google/cosmos/chromeos.fmd create mode 100644 src/mainboard/google/cyan/chromeos.fmd create mode 100644 src/mainboard/google/daisy/chromeos.fmd create mode 100644 src/mainboard/google/falco/chromeos.fmd create mode 100644 src/mainboard/google/foster/chromeos.fmd create mode 100644 src/mainboard/google/glados/chromeos.fmd create mode 100644 src/mainboard/google/guado/chromeos.fmd create mode 100644 src/mainboard/google/jecht/chromeos.fmd create mode 100644 src/mainboard/google/lars/chromeos.fmd create mode 100644 src/mainboard/google/link/chromeos.fmd create mode 100644 src/mainboard/google/nyan/chromeos.fmd create mode 100644 src/mainboard/google/nyan_big/chromeos.fmd create mode 100644 src/mainboard/google/nyan_blaze/chromeos.fmd create mode 100644 src/mainboard/google/oak/chromeos.fmd create mode 100644 src/mainboard/google/panther/chromeos.fmd create mode 100644 src/mainboard/google/parrot/chromeos.fmd create mode 100644 src/mainboard/google/peach_pit/chromeos.fmd create mode 100644 src/mainboard/google/peppy/chromeos.fmd create mode 100644 src/mainboard/google/purin/chromeos.fmd create mode 100644 src/mainboard/google/rambi/chromeos.fmd create mode 100644 src/mainboard/google/rush/chromeos.fmd create mode 100644 src/mainboard/google/rush_ryu/chromeos.fmd create mode 100644 src/mainboard/google/samus/chromeos.fmd create mode 100644 src/mainboard/google/slippy/chromeos.fmd create mode 100644 src/mainboard/google/smaug/chromeos.fmd create mode 100644 src/mainboard/google/storm/chromeos.fmd create mode 100644 src/mainboard/google/stout/chromeos.fmd create mode 100644 src/mainboard/google/tidus/chromeos.fmd create mode 100644 src/mainboard/google/urara/chromeos.fmd create mode 100644 src/mainboard/google/veyron/chromeos.fmd create mode 100644 src/mainboard/google/veyron_brain/chromeos.fmd create mode 100644 src/mainboard/google/veyron_danger/chromeos.fmd create mode 100644 src/mainboard/google/veyron_emile/chromeos.fmd create mode 100644 src/mainboard/google/veyron_mickey/chromeos.fmd create mode 100644 src/mainboard/google/veyron_rialto/chromeos.fmd create mode 100644 src/mainboard/google/veyron_romy/chromeos.fmd create mode 100644 src/mainboard/google/veyron_speedy/chromeos.fmd create mode 100644 src/mainboard/intel/baskingridge/chromeos.fmd create mode 100644 src/mainboard/intel/bayleybay_fsp/chromeos.fmd create mode 100644 src/mainboard/intel/kunimitsu/chromeos.fmd create mode 100644 src/mainboard/intel/sklrvp/chromeos.fmd create mode 100644 src/mainboard/intel/strago/chromeos.fmd create mode 100644 src/mainboard/intel/wtm2/chromeos.fmd create mode 100644 src/mainboard/samsung/lumpy/chromeos.fmd create mode 100644 src/mainboard/samsung/stumpy/chromeos.fmd create mode 100755 util/scripts/convert-all-depthcharge-fmap.dts.sh create mode 100755 util/scripts/dts-to-fmd.sh diff --git a/src/Kconfig b/src/Kconfig index 1fd271d599..20e3d67e54 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -396,6 +396,7 @@ config CBFS_SIZE config FMDFILE string "fmap description file in fmd format" + default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS default "" help The build system creates a default FMAP from ROM_SIZE and CBFS_SIZE, diff --git a/src/mainboard/google/auron/chromeos.fmd b/src/mainboard/google/auron/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/auron/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/bolt/chromeos.fmd b/src/mainboard/google/bolt/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/bolt/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/butterfly/chromeos.fmd b/src/mainboard/google/butterfly/chromeos.fmd new file mode 100644 index 0000000000..c05fd2a07b --- /dev/null +++ b/src/mainboard/google/butterfly/chromeos.fmd @@ -0,0 +1,39 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_ENVIRONMENT@0x1f8000 0x4000 + RW_VPD@0x1fc000 0x2000 + RW_UNUSED@0x1fe000 0x2000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/chell/chromeos.fmd b/src/mainboard/google/chell/chromeos.fmd new file mode 100644 index 0000000000..5a8504ed3d --- /dev/null +++ b/src/mainboard/google/chell/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff000000 0x1000000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0xe00000 { + RW_SECTION_A@0x0 0x3f0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0x3dffc0 + RW_FWID_A@0x3effc0 0x40 + } + RW_SECTION_B@0x3f0000 0x3f0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0x3dffc0 + RW_FWID_B@0x3effc0 0x40 + } + RW_MRC_CACHE@0x7e0000 0x10000 + RW_ELOG@0x7f0000 0x4000 + RW_SHARED@0x7f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x7f8000 0x2000 + RW_NVRAM@0x7fa000 0x6000 + RW_LEGACY@0x800000 0x200000 + WP_RO@0xa00000 0x400000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x3f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x300000 + } + } + } +} diff --git a/src/mainboard/google/cosmos/chromeos.fmd b/src/mainboard/google/cosmos/chromeos.fmd new file mode 100644 index 0000000000..98171690ec --- /dev/null +++ b/src/mainboard/google/cosmos/chromeos.fmd @@ -0,0 +1,28 @@ +FLASH@0x0 0x200000 { + WP_RO@0x0 0x100000 { + RO_SECTION@0x0 0xf0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0x60000 + FMAP@0x80000 0x1000 + GBB@0x81000 0x6ef00 + RO_FRID@0xeff00 0x100 + } + RO_VPD@0xf0000 0x10000 + } + RW_SECTION_A@0x100000 0x68000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x65f00 + RW_FWID_A@0x67f00 0x100 + } + RW_SHARED@0x168000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x16c000 0x4000 + RW_SECTION_B@0x180000 0x68000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x65f00 + RW_FWID_B@0x67f00 0x100 + } + RW_VPD@0x1e8000 0x8000 + RW_NVRAM@0x1f0000 0x10000 +} diff --git a/src/mainboard/google/cyan/chromeos.fmd b/src/mainboard/google/cyan/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/cyan/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/daisy/chromeos.fmd b/src/mainboard/google/daisy/chromeos.fmd new file mode 100644 index 0000000000..5d6d456902 --- /dev/null +++ b/src/mainboard/google/daisy/chromeos.fmd @@ -0,0 +1,27 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0xf0000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0xedf00 + RW_FWID_A@0xeff00 0x100 + } + RW_SECTION_B@0x300000 0xf0000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0xedf00 + RW_FWID_B@0xeff00 0x100 + } + RW_VPD@0x3f0000 0x8000 + RW_SHARED@0x3f8000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_UNUSED@0x3fc000 0x4000 +} diff --git a/src/mainboard/google/falco/chromeos.fmd b/src/mainboard/google/falco/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/falco/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/foster/chromeos.fmd b/src/mainboard/google/foster/chromeos.fmd new file mode 100644 index 0000000000..603d4bb959 --- /dev/null +++ b/src/mainboard/google/foster/chromeos.fmd @@ -0,0 +1,28 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x300000 { + RO_SECTION@0x0 0x2f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0x1e0000 + FMAP@0x200000 0x1000 + GBB@0x201000 0xeef00 + RO_FRID@0x2eff00 0x100 + } + RO_VPD@0x2f0000 0x10000 + } + RW_SECTION_A@0x300000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x378000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x37c000 0x4000 + RW_SECTION_B@0x380000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x3f8000 0x4000 + RW_NVRAM@0x3fc000 0x4000 +} diff --git a/src/mainboard/google/glados/chromeos.fmd b/src/mainboard/google/glados/chromeos.fmd new file mode 100644 index 0000000000..5a8504ed3d --- /dev/null +++ b/src/mainboard/google/glados/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff000000 0x1000000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0xe00000 { + RW_SECTION_A@0x0 0x3f0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0x3dffc0 + RW_FWID_A@0x3effc0 0x40 + } + RW_SECTION_B@0x3f0000 0x3f0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0x3dffc0 + RW_FWID_B@0x3effc0 0x40 + } + RW_MRC_CACHE@0x7e0000 0x10000 + RW_ELOG@0x7f0000 0x4000 + RW_SHARED@0x7f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x7f8000 0x2000 + RW_NVRAM@0x7fa000 0x6000 + RW_LEGACY@0x800000 0x200000 + WP_RO@0xa00000 0x400000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x3f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x300000 + } + } + } +} diff --git a/src/mainboard/google/guado/chromeos.fmd b/src/mainboard/google/guado/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/guado/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/jecht/chromeos.fmd b/src/mainboard/google/jecht/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/jecht/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/lars/chromeos.fmd b/src/mainboard/google/lars/chromeos.fmd new file mode 100644 index 0000000000..5a8504ed3d --- /dev/null +++ b/src/mainboard/google/lars/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff000000 0x1000000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0xe00000 { + RW_SECTION_A@0x0 0x3f0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0x3dffc0 + RW_FWID_A@0x3effc0 0x40 + } + RW_SECTION_B@0x3f0000 0x3f0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0x3dffc0 + RW_FWID_B@0x3effc0 0x40 + } + RW_MRC_CACHE@0x7e0000 0x10000 + RW_ELOG@0x7f0000 0x4000 + RW_SHARED@0x7f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x7f8000 0x2000 + RW_NVRAM@0x7fa000 0x6000 + RW_LEGACY@0x800000 0x200000 + WP_RO@0xa00000 0x400000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x3f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x300000 + } + } + } +} diff --git a/src/mainboard/google/link/chromeos.fmd b/src/mainboard/google/link/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/link/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/nyan/chromeos.fmd b/src/mainboard/google/nyan/chromeos.fmd new file mode 100644 index 0000000000..93afe34108 --- /dev/null +++ b/src/mainboard/google/nyan/chromeos.fmd @@ -0,0 +1,28 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/nyan_big/chromeos.fmd b/src/mainboard/google/nyan_big/chromeos.fmd new file mode 100644 index 0000000000..93afe34108 --- /dev/null +++ b/src/mainboard/google/nyan_big/chromeos.fmd @@ -0,0 +1,28 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/nyan_blaze/chromeos.fmd b/src/mainboard/google/nyan_blaze/chromeos.fmd new file mode 100644 index 0000000000..93afe34108 --- /dev/null +++ b/src/mainboard/google/nyan_blaze/chromeos.fmd @@ -0,0 +1,28 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/oak/chromeos.fmd b/src/mainboard/google/oak/chromeos.fmd new file mode 100644 index 0000000000..a18bb6b2e4 --- /dev/null +++ b/src/mainboard/google/oak/chromeos.fmd @@ -0,0 +1,29 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x2000 { + SHARED_DATA@0x0 0x2000 + } + RW_NVRAM@0x27a000 0x2000 + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/panther/chromeos.fmd b/src/mainboard/google/panther/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/panther/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/parrot/chromeos.fmd b/src/mainboard/google/parrot/chromeos.fmd new file mode 100644 index 0000000000..c05fd2a07b --- /dev/null +++ b/src/mainboard/google/parrot/chromeos.fmd @@ -0,0 +1,39 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_ENVIRONMENT@0x1f8000 0x4000 + RW_VPD@0x1fc000 0x2000 + RW_UNUSED@0x1fe000 0x2000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/peach_pit/chromeos.fmd b/src/mainboard/google/peach_pit/chromeos.fmd new file mode 100644 index 0000000000..5d6d456902 --- /dev/null +++ b/src/mainboard/google/peach_pit/chromeos.fmd @@ -0,0 +1,27 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0xf0000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0xedf00 + RW_FWID_A@0xeff00 0x100 + } + RW_SECTION_B@0x300000 0xf0000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0xedf00 + RW_FWID_B@0xeff00 0x100 + } + RW_VPD@0x3f0000 0x8000 + RW_SHARED@0x3f8000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_UNUSED@0x3fc000 0x4000 +} diff --git a/src/mainboard/google/peppy/chromeos.fmd b/src/mainboard/google/peppy/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/peppy/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/purin/chromeos.fmd b/src/mainboard/google/purin/chromeos.fmd new file mode 100644 index 0000000000..3f4ca840a3 --- /dev/null +++ b/src/mainboard/google/purin/chromeos.fmd @@ -0,0 +1,32 @@ +FLASH@0x0 0x200000 { + WP_RO@0x0 0x100000 { + RO_SECTION@0x0 0xf0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0x60000 + FMAP@0x80000 0x1000 + GBB@0x81000 0x6ef00 + RO_FRID@0xeff00 0x100 + } + RO_VPD@0xf0000 0x10000 + } + RW_SECTION_A@0x100000 0x58000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x55f00 + RW_FWID_A@0x57f00 0x100 + } + RW_SHARED@0x158000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x15c000 0x4000 + RW_GPT@0x160000 0x20000 { + RW_GPT_PRIMARY@0x0 0x10000 + RW_GPT_SECONDARY@0x10000 0x10000 + } + RW_SECTION_B@0x180000 0x58000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x55f00 + RW_FWID_B@0x57f00 0x100 + } + RW_VPD@0x1d8000 0x8000 + RW_NVRAM@0x1e0000 0x10000 +} diff --git a/src/mainboard/google/rambi/chromeos.fmd b/src/mainboard/google/rambi/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/rambi/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/rush/chromeos.fmd b/src/mainboard/google/rush/chromeos.fmd new file mode 100644 index 0000000000..4326f24238 --- /dev/null +++ b/src/mainboard/google/rush/chromeos.fmd @@ -0,0 +1,27 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x300000 { + RO_SECTION@0x0 0x2f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0x1e0000 + FMAP@0x200000 0x1000 + GBB@0x201000 0xeef00 + RO_FRID@0x2eff00 0x100 + } + RO_VPD@0x2f0000 0x10000 + } + RW_SECTION_A@0x300000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x378000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x37c000 0x4000 + RW_SECTION_B@0x380000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x3f8000 0x8000 +} diff --git a/src/mainboard/google/rush_ryu/chromeos.fmd b/src/mainboard/google/rush_ryu/chromeos.fmd new file mode 100644 index 0000000000..bd78e09c35 --- /dev/null +++ b/src/mainboard/google/rush_ryu/chromeos.fmd @@ -0,0 +1,27 @@ +FLASH@0x0 0x800000 { + WP_RO@0x0 0x300000 { + RO_SECTION@0x0 0x2f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0x1e0000 + FMAP@0x200000 0x1000 + GBB@0x201000 0xeef00 + RO_FRID@0x2eff00 0x100 + } + RO_VPD@0x2f0000 0x10000 + } + RW_SECTION_A@0x300000 0x278000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x275f00 + RW_FWID_A@0x277f00 0x100 + } + RW_SHARED@0x578000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x57c000 0x4000 + RW_SECTION_B@0x580000 0x278000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x275f00 + RW_FWID_B@0x277f00 0x100 + } + RW_VPD@0x7f8000 0x8000 +} diff --git a/src/mainboard/google/samus/chromeos.fmd b/src/mainboard/google/samus/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/samus/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/slippy/chromeos.fmd b/src/mainboard/google/slippy/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/slippy/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/smaug/chromeos.fmd b/src/mainboard/google/smaug/chromeos.fmd new file mode 100644 index 0000000000..88809ab1e8 --- /dev/null +++ b/src/mainboard/google/smaug/chromeos.fmd @@ -0,0 +1,27 @@ +FLASH@0x0 0x1000000 { + WP_RO@0x0 0x500000 { + RO_SECTION@0x0 0x4f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0x3e0000 + FMAP@0x400000 0x1000 + GBB@0x401000 0xeef00 + RO_FRID@0x4eff00 0x100 + } + RO_VPD@0x4f0000 0x10000 + } + RW_SECTION_A@0x500000 0x500000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x4fdf00 + RW_FWID_A@0x4fff00 0x100 + } + RW_SECTION_B@0xa00000 0x500000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x4fdf00 + RW_FWID_B@0x4fff00 0x100 + } + RW_SHARED@0xf00000 0x4000 + SHARED_DATA@0xf04000 0x4000 + RW_ELOG@0xf08000 0x4000 + RW_VPD@0xf0c000 0x8000 + RW_NVRAM@0xf20000 0x10000 +} diff --git a/src/mainboard/google/storm/chromeos.fmd b/src/mainboard/google/storm/chromeos.fmd new file mode 100644 index 0000000000..a7b40593b6 --- /dev/null +++ b/src/mainboard/google/storm/chromeos.fmd @@ -0,0 +1,33 @@ +FLASH@0x0 0x800000 { + WP_RO@0x0 0x400000 { + RO_SECTION@0x0 0x3e0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0x2e0000 + FMAP@0x300000 0x1000 + GBB@0x301000 0xdef00 + RO_FRID@0x3dff00 0x100 + } + RO_VPD@0x3e0000 0x20000 + } + RW_SECTION_A@0x400000 0x160000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x14df00 + RW_FWID_A@0x14ff00 0x100 + RW_SHARED@0x150000 0x10000 { + SHARED_DATA@0x0 0x10000 + } + } + RW_GPT@0x560000 0x20000 { + RW_GPT_PRIMARY@0x0 0x10000 + RW_GPT_SECONDARY@0x10000 0x10000 + } + RW_SECTION_B@0x580000 0x160000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x14df00 + RW_FWID_B@0x14ff00 0x100 + } + RW_VPD@0x6e0000 0x8000 + RW_ELOG@0x6e8000 0x8000 + RW_NVRAM@0x6f0000 0x10000 + RW_LEGACY@0x700000 0x100000 +} diff --git a/src/mainboard/google/stout/chromeos.fmd b/src/mainboard/google/stout/chromeos.fmd new file mode 100644 index 0000000000..c05fd2a07b --- /dev/null +++ b/src/mainboard/google/stout/chromeos.fmd @@ -0,0 +1,39 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_ENVIRONMENT@0x1f8000 0x4000 + RW_VPD@0x1fc000 0x2000 + RW_UNUSED@0x1fe000 0x2000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/tidus/chromeos.fmd b/src/mainboard/google/tidus/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/google/tidus/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/google/urara/chromeos.fmd b/src/mainboard/google/urara/chromeos.fmd new file mode 100644 index 0000000000..7898cf5686 --- /dev/null +++ b/src/mainboard/google/urara/chromeos.fmd @@ -0,0 +1,32 @@ +FLASH@0x0 0x200000 { + WP_RO@0x0 0x100000 { + RO_SECTION@0x0 0xf0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0x60000 + FMAP@0xe0000 0x1000 + GBB@0xe1000 0xef00 + RO_FRID@0xeff00 0x100 + } + RO_VPD@0xf0000 0x10000 + } + RW_SECTION_A@0x100000 0x70000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x6df00 + RW_FWID_A@0x6ff00 0x100 + } + RW_SHARED@0x170000 0x2000 { + SHARED_DATA@0x0 0x2000 + } + RW_GPT@0x172000 0x2000 { + RW_GPT_PRIMARY@0x0 0x1000 + RW_GPT_SECONDARY@0x1000 0x1000 + } + RW_ELOG@0x174000 0x4000 + RW_VPD@0x178000 0x8000 + RW_SECTION_B@0x180000 0x70000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x6df00 + RW_FWID_B@0x6ff00 0x100 + } + RW_NVRAM@0x1f0000 0x10000 +} diff --git a/src/mainboard/google/veyron/chromeos.fmd b/src/mainboard/google/veyron/chromeos.fmd new file mode 100644 index 0000000000..93afe34108 --- /dev/null +++ b/src/mainboard/google/veyron/chromeos.fmd @@ -0,0 +1,28 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/veyron_brain/chromeos.fmd b/src/mainboard/google/veyron_brain/chromeos.fmd new file mode 100644 index 0000000000..a18bb6b2e4 --- /dev/null +++ b/src/mainboard/google/veyron_brain/chromeos.fmd @@ -0,0 +1,29 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x2000 { + SHARED_DATA@0x0 0x2000 + } + RW_NVRAM@0x27a000 0x2000 + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/veyron_danger/chromeos.fmd b/src/mainboard/google/veyron_danger/chromeos.fmd new file mode 100644 index 0000000000..a18bb6b2e4 --- /dev/null +++ b/src/mainboard/google/veyron_danger/chromeos.fmd @@ -0,0 +1,29 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x2000 { + SHARED_DATA@0x0 0x2000 + } + RW_NVRAM@0x27a000 0x2000 + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/veyron_emile/chromeos.fmd b/src/mainboard/google/veyron_emile/chromeos.fmd new file mode 100644 index 0000000000..a18bb6b2e4 --- /dev/null +++ b/src/mainboard/google/veyron_emile/chromeos.fmd @@ -0,0 +1,29 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x2000 { + SHARED_DATA@0x0 0x2000 + } + RW_NVRAM@0x27a000 0x2000 + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/veyron_mickey/chromeos.fmd b/src/mainboard/google/veyron_mickey/chromeos.fmd new file mode 100644 index 0000000000..a18bb6b2e4 --- /dev/null +++ b/src/mainboard/google/veyron_mickey/chromeos.fmd @@ -0,0 +1,29 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x2000 { + SHARED_DATA@0x0 0x2000 + } + RW_NVRAM@0x27a000 0x2000 + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/veyron_rialto/chromeos.fmd b/src/mainboard/google/veyron_rialto/chromeos.fmd new file mode 100644 index 0000000000..a18bb6b2e4 --- /dev/null +++ b/src/mainboard/google/veyron_rialto/chromeos.fmd @@ -0,0 +1,29 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x2000 { + SHARED_DATA@0x0 0x2000 + } + RW_NVRAM@0x27a000 0x2000 + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/veyron_romy/chromeos.fmd b/src/mainboard/google/veyron_romy/chromeos.fmd new file mode 100644 index 0000000000..a18bb6b2e4 --- /dev/null +++ b/src/mainboard/google/veyron_romy/chromeos.fmd @@ -0,0 +1,29 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x2000 { + SHARED_DATA@0x0 0x2000 + } + RW_NVRAM@0x27a000 0x2000 + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/google/veyron_speedy/chromeos.fmd b/src/mainboard/google/veyron_speedy/chromeos.fmd new file mode 100644 index 0000000000..93afe34108 --- /dev/null +++ b/src/mainboard/google/veyron_speedy/chromeos.fmd @@ -0,0 +1,28 @@ +FLASH@0x0 0x400000 { + WP_RO@0x0 0x200000 { + RO_SECTION@0x0 0x1f0000 { + BOOTBLOCK@0 128K + COREBOOT(CBFS)@0x20000 0xe0000 + FMAP@0x100000 0x1000 + GBB@0x101000 0xeef00 + RO_FRID@0x1eff00 0x100 + } + RO_VPD@0x1f0000 0x10000 + } + RW_SECTION_A@0x200000 0x78000 { + VBLOCK_A@0x0 0x2000 + FW_MAIN_A(CBFS)@0x2000 0x75f00 + RW_FWID_A@0x77f00 0x100 + } + RW_SHARED@0x278000 0x4000 { + SHARED_DATA@0x0 0x4000 + } + RW_ELOG@0x27c000 0x4000 + RW_SECTION_B@0x280000 0x78000 { + VBLOCK_B@0x0 0x2000 + FW_MAIN_B(CBFS)@0x2000 0x75f00 + RW_FWID_B@0x77f00 0x100 + } + RW_VPD@0x2f8000 0x8000 + RW_LEGACY@0x300000 0x100000 +} diff --git a/src/mainboard/intel/baskingridge/chromeos.fmd b/src/mainboard/intel/baskingridge/chromeos.fmd new file mode 100644 index 0000000000..5ac32447ec --- /dev/null +++ b/src/mainboard/intel/baskingridge/chromeos.fmd @@ -0,0 +1,37 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x180000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x17f000 + } + SI_BIOS@0x180000 0x680000 { + RW_VPD@0x0 0x1000 + RW_UNUSED@0x1000 0x67000 + RW_SHARED@0x68000 0x18000 { + RW_ENVIRONMENT@0x0 0x4000 + RW_MRC_CACHE@0x4000 0x10000 + DEV_CFG@0x14000 0x4000 + } + RW_SECTION_A@0x80000 0x100000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0x7ffc0 + RW_FWID_A@0x8ffc0 0x40 + RW_UNUSED_A@0x90000 0x70000 + } + RW_SECTION_B@0x180000 0x100000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0x7ffc0 + RW_FWID_B@0x8ffc0 0x40 + RW_UNUSED_B@0x90000 0x70000 + } + RO_UNUSED_1@0x280000 0x170000 + RO_VPD@0x3f0000 0x20000 + RO_UNUSED_2@0x410000 0xe0000 + RO_SECTION@0x4f0000 0x190000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_PADDING@0x840 0xf7c0 + GBB@0x10000 0x80000 + COREBOOT(CBFS)@0x90000 0x100000 + } + } +} diff --git a/src/mainboard/intel/bayleybay_fsp/chromeos.fmd b/src/mainboard/intel/bayleybay_fsp/chromeos.fmd new file mode 100644 index 0000000000..913bf97291 --- /dev/null +++ b/src/mainboard/intel/bayleybay_fsp/chromeos.fmd @@ -0,0 +1,37 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x300000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x2ff000 + } + SI_BIOS@0x300000 0x500000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xc0000 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xc0000 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x106000 + WP_RO@0x300000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/intel/kunimitsu/chromeos.fmd b/src/mainboard/intel/kunimitsu/chromeos.fmd new file mode 100644 index 0000000000..5a8504ed3d --- /dev/null +++ b/src/mainboard/intel/kunimitsu/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff000000 0x1000000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0xe00000 { + RW_SECTION_A@0x0 0x3f0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0x3dffc0 + RW_FWID_A@0x3effc0 0x40 + } + RW_SECTION_B@0x3f0000 0x3f0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0x3dffc0 + RW_FWID_B@0x3effc0 0x40 + } + RW_MRC_CACHE@0x7e0000 0x10000 + RW_ELOG@0x7f0000 0x4000 + RW_SHARED@0x7f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x7f8000 0x2000 + RW_NVRAM@0x7fa000 0x6000 + RW_LEGACY@0x800000 0x200000 + WP_RO@0xa00000 0x400000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x3f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x300000 + } + } + } +} diff --git a/src/mainboard/intel/sklrvp/chromeos.fmd b/src/mainboard/intel/sklrvp/chromeos.fmd new file mode 100644 index 0000000000..f1b9342b53 --- /dev/null +++ b/src/mainboard/intel/sklrvp/chromeos.fmd @@ -0,0 +1,37 @@ +FLASH@0xff000000 0x1000000 { + SI_ALL@0x0 0xa00000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0xa00000 0x600000 { + RW_SECTION_A@0x0 0x100000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xeffc0 + RW_FWID_A@0xfffc0 0x40 + } + RW_SECTION_B@0x100000 0x100000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xeffc0 + RW_FWID_B@0xfffc0 0x40 + } + RW_MRC_CACHE@0x200000 0x10000 + RW_ELOG@0x210000 0x4000 + RW_SHARED@0x214000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x218000 0x2000 + RW_UNUSED@0x21a000 0x6000 + WP_RO@0x300000 0x300000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x200000 + } + } + } +} diff --git a/src/mainboard/intel/strago/chromeos.fmd b/src/mainboard/intel/strago/chromeos.fmd new file mode 100644 index 0000000000..21b39c0e21 --- /dev/null +++ b/src/mainboard/intel/strago/chromeos.fmd @@ -0,0 +1,38 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x200000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x1ff000 + } + SI_BIOS@0x200000 0x600000 { + RW_SECTION_A@0x0 0xf0000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0xdffc0 + RW_FWID_A@0xeffc0 0x40 + } + RW_SECTION_B@0xf0000 0xf0000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0xdffc0 + RW_FWID_B@0xeffc0 0x40 + } + RW_MRC_CACHE@0x1e0000 0x10000 + RW_ELOG@0x1f0000 0x4000 + RW_SHARED@0x1f4000 0x4000 { + SHARED_DATA@0x0 0x2000 + VBLOCK_DEV@0x2000 0x2000 + } + RW_VPD@0x1f8000 0x2000 + RW_UNUSED@0x1fa000 0x6000 + RW_LEGACY@0x200000 0x200000 + WP_RO@0x400000 0x200000 { + RO_VPD@0x0 0x4000 + RO_UNUSED@0x4000 0xc000 + RO_SECTION@0x10000 0x1f0000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_FRID_PAD@0x840 0x7c0 + GBB@0x1000 0xef000 + COREBOOT(CBFS)@0xf0000 0x100000 + } + } + } +} diff --git a/src/mainboard/intel/wtm2/chromeos.fmd b/src/mainboard/intel/wtm2/chromeos.fmd new file mode 100644 index 0000000000..5ac32447ec --- /dev/null +++ b/src/mainboard/intel/wtm2/chromeos.fmd @@ -0,0 +1,37 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x180000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x17f000 + } + SI_BIOS@0x180000 0x680000 { + RW_VPD@0x0 0x1000 + RW_UNUSED@0x1000 0x67000 + RW_SHARED@0x68000 0x18000 { + RW_ENVIRONMENT@0x0 0x4000 + RW_MRC_CACHE@0x4000 0x10000 + DEV_CFG@0x14000 0x4000 + } + RW_SECTION_A@0x80000 0x100000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0x7ffc0 + RW_FWID_A@0x8ffc0 0x40 + RW_UNUSED_A@0x90000 0x70000 + } + RW_SECTION_B@0x180000 0x100000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0x7ffc0 + RW_FWID_B@0x8ffc0 0x40 + RW_UNUSED_B@0x90000 0x70000 + } + RO_UNUSED_1@0x280000 0x170000 + RO_VPD@0x3f0000 0x20000 + RO_UNUSED_2@0x410000 0xe0000 + RO_SECTION@0x4f0000 0x190000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_PADDING@0x840 0xf7c0 + GBB@0x10000 0x80000 + COREBOOT(CBFS)@0x90000 0x100000 + } + } +} diff --git a/src/mainboard/samsung/lumpy/chromeos.fmd b/src/mainboard/samsung/lumpy/chromeos.fmd new file mode 100644 index 0000000000..5ac32447ec --- /dev/null +++ b/src/mainboard/samsung/lumpy/chromeos.fmd @@ -0,0 +1,37 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x180000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x17f000 + } + SI_BIOS@0x180000 0x680000 { + RW_VPD@0x0 0x1000 + RW_UNUSED@0x1000 0x67000 + RW_SHARED@0x68000 0x18000 { + RW_ENVIRONMENT@0x0 0x4000 + RW_MRC_CACHE@0x4000 0x10000 + DEV_CFG@0x14000 0x4000 + } + RW_SECTION_A@0x80000 0x100000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0x7ffc0 + RW_FWID_A@0x8ffc0 0x40 + RW_UNUSED_A@0x90000 0x70000 + } + RW_SECTION_B@0x180000 0x100000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0x7ffc0 + RW_FWID_B@0x8ffc0 0x40 + RW_UNUSED_B@0x90000 0x70000 + } + RO_UNUSED_1@0x280000 0x170000 + RO_VPD@0x3f0000 0x20000 + RO_UNUSED_2@0x410000 0xe0000 + RO_SECTION@0x4f0000 0x190000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_PADDING@0x840 0xf7c0 + GBB@0x10000 0x80000 + COREBOOT(CBFS)@0x90000 0x100000 + } + } +} diff --git a/src/mainboard/samsung/stumpy/chromeos.fmd b/src/mainboard/samsung/stumpy/chromeos.fmd new file mode 100644 index 0000000000..5ac32447ec --- /dev/null +++ b/src/mainboard/samsung/stumpy/chromeos.fmd @@ -0,0 +1,37 @@ +FLASH@0xff800000 0x800000 { + SI_ALL@0x0 0x180000 { + SI_DESC@0x0 0x1000 + SI_ME@0x1000 0x17f000 + } + SI_BIOS@0x180000 0x680000 { + RW_VPD@0x0 0x1000 + RW_UNUSED@0x1000 0x67000 + RW_SHARED@0x68000 0x18000 { + RW_ENVIRONMENT@0x0 0x4000 + RW_MRC_CACHE@0x4000 0x10000 + DEV_CFG@0x14000 0x4000 + } + RW_SECTION_A@0x80000 0x100000 { + VBLOCK_A@0x0 0x10000 + FW_MAIN_A(CBFS)@0x10000 0x7ffc0 + RW_FWID_A@0x8ffc0 0x40 + RW_UNUSED_A@0x90000 0x70000 + } + RW_SECTION_B@0x180000 0x100000 { + VBLOCK_B@0x0 0x10000 + FW_MAIN_B(CBFS)@0x10000 0x7ffc0 + RW_FWID_B@0x8ffc0 0x40 + RW_UNUSED_B@0x90000 0x70000 + } + RO_UNUSED_1@0x280000 0x170000 + RO_VPD@0x3f0000 0x20000 + RO_UNUSED_2@0x410000 0xe0000 + RO_SECTION@0x4f0000 0x190000 { + FMAP@0x0 0x800 + RO_FRID@0x800 0x40 + RO_PADDING@0x840 0xf7c0 + GBB@0x10000 0x80000 + COREBOOT(CBFS)@0x90000 0x100000 + } + } +} diff --git a/util/scripts/convert-all-depthcharge-fmap.dts.sh b/util/scripts/convert-all-depthcharge-fmap.dts.sh new file mode 100755 index 0000000000..4c4b2d2052 --- /dev/null +++ b/util/scripts/convert-all-depthcharge-fmap.dts.sh @@ -0,0 +1,10 @@ +#!/bin/sh +CROS_ROOT=~/cros +for i in auron bolt chell cosmos cyan daisy falco foster glados jecht lars link nyan nyan_big nyan_blaze oak panther peach_pit peppy purin rambi rush rush_ryu samus slippy smaug storm urara veyron_{brain,danger,emile,mickey,rialto,romy,speedy}; do + util/scripts/dts-to-fmd.sh ${CROS_ROOT}/src/platform/depthcharge/board/$i/fmap.dts > src/mainboard/google/$i/chromeos.fmd +done +for i in kunimitsu sklrvp strago; do + util/scripts/dts-to-fmd.sh ${CROS_ROOT}/src/platform/depthcharge/board/$i/fmap.dts > src/mainboard/intel/$i/chromeos.fmd +done +util/scripts/dts-to-fmd.sh ${CROS_ROOT}/src/platform/depthcharge/board/bayleybay/fmap.dts > src/mainboard/intel/bayleybay_fsp/chromeos.fmd +util/scripts/dts-to-fmd.sh ${CROS_ROOT}/src/platform/depthcharge/board/veyron_minnie/fmap.dts > src/mainboard/google/veyron/chromeos.fmd diff --git a/util/scripts/dts-to-fmd.sh b/util/scripts/dts-to-fmd.sh new file mode 100755 index 0000000000..3b87eee737 --- /dev/null +++ b/util/scripts/dts-to-fmd.sh @@ -0,0 +1,110 @@ +#!/bin/bash +# converts a depthcharge fmap.dts into an fmaptool compatible .fmd format +# requires fdt utilities (dtc, fdtget) +# +# $1 dts file name +# result on stdout +set -e + +if [ $# -lt 1 ]; then + echo "usage: $0 dts-file" + exit 1 +fi + +DTS=$1 +DTB=`mktemp` + +# $1 node +# $2 start variable name +# $3 size variable name +get_reg() { + local t=`fdtget -t x $DTB $1 reg 2>/dev/null` + if [ -n "$t" ]; then + export $2=0x`echo $t|cut -d' ' -f1` + export $3=0x`echo $t|cut -d' ' -f2` + else + export $3=0x`fdtget -t x $DTB $1 size` + fi +} + +dtc -O dtb -o $DTB $DTS +get_reg /flash ROM_START ROM_SIZE +printf "FLASH@${ROM_START} ${ROM_SIZE} {" + +PREFIX="\t" +REGION_START=-1 +REGION_SIZE=0 +CONTAINER_END=$(( ${ROM_SIZE} )) +CONTAINER_END_STACK=${CONTAINER_END} +CONTAINER_OFFSET=0 +CONTAINER_OFFSET_STACK=0 + +FMAP_REGIONS=`fdtget -l $DTB /flash` +for region in $FMAP_REGIONS; do + OLD_REGION_START=$REGION_START + OLD_REGION_SIZE=$REGION_SIZE + get_reg /flash/$region REGION_START REGION_SIZE + + # determine if we're past an existing container + while [ $(( ${REGION_START} )) -ge ${CONTAINER_END} ]; do + PREFIX=`printf "${PREFIX}" | cut -c2-` + printf "\n${PREFIX}}" + CONTAINER_END_STACK=`printf "${CONTAINER_END_STACK}" | cut -d' ' -f2-` + CONTAINER_OFFSET_STACK=`printf "${CONTAINER_OFFSET_STACK}" | cut -d' ' -f2-` + CONTAINER_END=`printf ${CONTAINER_END_STACK} | cut -d' ' -f1` + CONTAINER_OFFSET=`printf ${CONTAINER_OFFSET_STACK} | cut -d' ' -f1` + done + + # determine if we're inside a new container region now + if [ $(( ${OLD_REGION_START} + ${OLD_REGION_SIZE} )) -gt $(( ${REGION_START} )) ]; then + PREFIX="\t${PREFIX}" + CONTAINER_END=$(( ${OLD_REGION_START} + ${OLD_REGION_SIZE} )) + CONTAINER_OFFSET=$(( ${OLD_REGION_START} )) + CONTAINER_END_STACK="${CONTAINER_END} ${CONTAINER_END_STACK}" + CONTAINER_OFFSET_STACK="${CONTAINER_OFFSET} ${CONTAINER_OFFSET_STACK}" + printf " {" + fi + + LOCAL_REGION_START=$(( ${REGION_START} - ${CONTAINER_OFFSET} )) + LOCAL_REGION_START=`printf "0x%x" ${LOCAL_REGION_START}` + + REGION_NAME=`fdtget $DTB /flash/$region label | tr '[a-z]-' '[A-Z]_'` + REGION_TYPE=`fdtget $DTB /flash/$region type 2>/dev/null | cut -d'/' -f1` + + # a CBFS region? if so, mark as such + if [ "${REGION_TYPE}" = "blob cbfs" ]; then + IS_CBFS="(CBFS)" + else + IS_CBFS="" + fi + + # special handling: rename BOOT_STUB to COREBOOT, mark them as CBFS + if [ "${REGION_NAME}" = "BOOT_STUB" ]; then + REGION_NAME="COREBOOT" + fi + if [ "${REGION_NAME}" = "COREBOOT" ]; then + IS_CBFS="(CBFS)" + fi + + # special handling: COREBOOT region at 0, inject a 128K bootblock + # The size may need changes to accomodate the chipsets, + # but should work for now. + if [ "${REGION_NAME}" = "COREBOOT" -a \ + $(( ${REGION_START} )) -eq 0 ]; then + printf "\n${PREFIX}BOOTBLOCK@0 128K" + LOCAL_REGION_START=$(( ${LOCAL_REGION_START} + 128*1024 )) + LOCAL_REGION_START=`printf 0x%x ${LOCAL_REGION_START}` + REGION_SIZE=$(( ${REGION_SIZE} - 128*1024 )) + REGION_SIZE=`printf 0x%x ${REGION_SIZE}` + fi + + printf "\n${PREFIX}${REGION_NAME}${IS_CBFS}@${LOCAL_REGION_START} ${REGION_SIZE}" +done + +while [ -n "${PREFIX}" ]; do + PREFIX=`printf "${PREFIX}" | cut -c2-` + printf "\n${PREFIX}}" +done +printf "\n" + +rm -f $DTB