From e5f48d20e7d66471f182afe305fe073177722224 Mon Sep 17 00:00:00 2001 From: Antonello Dettori Date: Wed, 22 Jun 2016 21:09:08 +0200 Subject: region: Add writeat and eraseat support Implement writeat and eraseat support into the region_device_ops struct. Change-Id: Iac2cf32e523d2f19ee9e5feefe1fba8c68982f3d Signed-off-by: Antonello Dettori Reviewed-on: https://review.coreboot.org/15318 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh --- src/arch/power8/rom_media.c | 2 +- src/arch/riscv/rom_media.c | 2 +- src/arch/x86/mmap_boot.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/arch') diff --git a/src/arch/power8/rom_media.c b/src/arch/power8/rom_media.c index 0c54e7abfd..c1713074f9 100644 --- a/src/arch/power8/rom_media.c +++ b/src/arch/power8/rom_media.c @@ -18,7 +18,7 @@ /* This assumes that the CBFS resides at 0x0, which is true for the default * configuration. */ static const struct mem_region_device boot_dev = - MEM_REGION_DEV_INIT(NULL, CONFIG_ROM_SIZE); + MEM_REGION_DEV_RO_INIT(NULL, CONFIG_ROM_SIZE); const struct region_device *boot_device_ro(void) { diff --git a/src/arch/riscv/rom_media.c b/src/arch/riscv/rom_media.c index 0c54e7abfd..c1713074f9 100644 --- a/src/arch/riscv/rom_media.c +++ b/src/arch/riscv/rom_media.c @@ -18,7 +18,7 @@ /* This assumes that the CBFS resides at 0x0, which is true for the default * configuration. */ static const struct mem_region_device boot_dev = - MEM_REGION_DEV_INIT(NULL, CONFIG_ROM_SIZE); + MEM_REGION_DEV_RO_INIT(NULL, CONFIG_ROM_SIZE); const struct region_device *boot_device_ro(void) { diff --git a/src/arch/x86/mmap_boot.c b/src/arch/x86/mmap_boot.c index ae35451b3c..35a7544c30 100644 --- a/src/arch/x86/mmap_boot.c +++ b/src/arch/x86/mmap_boot.c @@ -22,7 +22,7 @@ #define rom_base ((void *)(uintptr_t)(0x100000000ULL-CONFIG_ROM_SIZE)) static const struct mem_region_device boot_dev = - MEM_REGION_DEV_INIT(rom_base, CONFIG_ROM_SIZE); + MEM_REGION_DEV_RO_INIT(rom_base, CONFIG_ROM_SIZE); const struct region_device *boot_device_ro(void) { -- cgit v1.2.3