Currently, use of the VPD driver to read VPD tables from flash requires the use of a custom FMAP with one or more VPD regions. Extend this funtionality to boards using the default FMAP by creating a dedicated VPD region when the driver is selected. Test: build qemu target with CONFIG_VPD selected, verify entry added to build/fmap.fmd. Change-Id: Ie9e3c7cf11a6337a43223a6037632a4d9c84d988 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49049 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			553 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			553 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # layout for firmware residing at top of 4GB address space
 | |
| # +-------------+ <-- 4GB - ROM_SIZE / start of flash
 | |
| # | unspecified |
 | |
| # +-------------+ <-- 4GB - BIOS_SIZE
 | |
| # | FMAP        |
 | |
| # +-------------+ <-- 4GB - BIOS_SIZE + FMAP_SIZE
 | |
| # | CBFS        |
 | |
| # +-------------+ <-- 4GB / end of flash
 | |
| 
 | |
| FLASH@##ROM_BASE## ##ROM_SIZE## {
 | |
| 	BIOS@##BIOS_BASE## ##BIOS_SIZE## {
 | |
| 		##CONSOLE_ENTRY##
 | |
| 		##MRC_CACHE_ENTRY##
 | |
| 		##SMMSTORE_ENTRY##
 | |
| 		##SPD_CACHE_ENTRY##
 | |
| 		##VPD_ENTRY##
 | |
| 		FMAP@##FMAP_BASE## ##FMAP_SIZE##
 | |
| 		COREBOOT(CBFS)@##CBFS_BASE## ##CBFS_SIZE##
 | |
| 	}
 | |
| }
 |