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/soc/intel/apollolake/mmap_boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/soc/intel') diff --git a/src/soc/intel/apollolake/mmap_boot.c b/src/soc/intel/apollolake/mmap_boot.c index d434cfacda..bf2e5b95b4 100644 --- a/src/soc/intel/apollolake/mmap_boot.c +++ b/src/soc/intel/apollolake/mmap_boot.c @@ -102,10 +102,10 @@ static void bios_mmap_init(void) shadow_dev_ptr = car_get_var_ptr(&shadow_dev); real_dev_ptr = car_get_var_ptr(&real_dev); - mem_region_device_init(shadow_dev_ptr, (void *)base, + mem_region_device_ro_init(shadow_dev_ptr, (void *)base, bios_mapped_size); - xlate_region_device_init(real_dev_ptr, &shadow_dev_ptr->rdev, + xlate_region_device_ro_init(real_dev_ptr, &shadow_dev_ptr->rdev, start, bios_mapped_size, CONFIG_ROM_SIZE); -- cgit v1.2.3