summaryrefslogtreecommitdiff
path: root/arch/x86/cpu
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-10-11 21:37:41 -0700
committerSimon Glass <sjg@chromium.org>2015-10-21 07:46:27 -0600
commit4b9f6a669ee22ac4694a3a339e94e8fe30bfad1f (patch)
tree578229c582254b2dd27d00bc83b7e79eacff9695 /arch/x86/cpu
parent42913a1c7ad6efae598364f5ea1ae083279b571f (diff)
downloadu-boot-imx-4b9f6a669ee22ac4694a3a339e94e8fe30bfad1f.zip
u-boot-imx-4b9f6a669ee22ac4694a3a339e94e8fe30bfad1f.tar.gz
u-boot-imx-4b9f6a669ee22ac4694a3a339e94e8fe30bfad1f.tar.bz2
x86: Use struct mrc_region to describe a mrc region
Currently struct fmap_entry is used to describe a mrc region. However this structure contains some other fields that are not related to mrc cache and causes confusion. Besides, it does not include a base address field to store SPI flash's base address. Instead in the mrccache.c it tries to use CONFIG_ROM_SIZE to calculate the SPI flash base address, which unfortunately is not 100% correct as CONFIG_ROM_SIZE may not match the whole SPI flash size. Define a new struct mrc_region and use it instead. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu')
-rw-r--r--arch/x86/cpu/ivybridge/sdram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/ivybridge/sdram.c b/arch/x86/cpu/ivybridge/sdram.c
index 20c2e68..9121426 100644
--- a/arch/x86/cpu/ivybridge/sdram.c
+++ b/arch/x86/cpu/ivybridge/sdram.c
@@ -138,7 +138,7 @@ static int read_seed_from_cmos(struct pei_data *pei_data)
static int prepare_mrc_cache(struct pei_data *pei_data)
{
struct mrc_data_container *mrc_cache;
- struct fmap_entry entry;
+ struct mrc_region entry;
int ret;
ret = read_seed_from_cmos(pei_data);