## SPDX-License-Identifier: GPL-2.0-only

# TODO: update for Herobrine

#if CONFIG_BOARD_GOOGLE_PIGLIN || CONFIG_BOARD_GOOGLE_HOGLIN
FLASH@0x0 CONFIG_ROM_SIZE {
#else
FLASH@0x0 8M {
#endif
	WP_RO 4M {
		RO_SECTION 0x3c4000 {
			BOOTBLOCK 96K
			COREBOOT(CBFS)
			FMAP@0x3c0000 0x1000
			GBB 0x2f00
			RO_FRID 0x100
		}
		RO_VPD(PRESERVE)
	}

	RW_VPD(PRESERVE) 32K
	RW_NVRAM(PRESERVE) 16K
	UNIFIED_MRC_CACHE(PRESERVE) 64K {
		RECOVERY_MRC_CACHE 32K
		RW_MRC_CACHE 32K
	}
	RW_ELOG(PRESERVE) 4K
	RW_SHARED 4K {
		SHARED_DATA
	}

	RW_SECTION_A 1280K {
		VBLOCK_A 8K
		FW_MAIN_A(CBFS)
		RW_FWID_A 256
	}


	RW_SECTION_B 1280K {
		VBLOCK_B 8K
		FW_MAIN_B(CBFS)
		RW_FWID_B 256
	}

	RW_LEGACY(CBFS)
}