[U-Boot] [PATCH 07/13] x86: Use struct mrc_region to describe a mrc region
Simon Glass
sjg at chromium.org
Sun Oct 18 23:38:39 CEST 2015
On 18 October 2015 at 14:26, Simon Glass <sjg at chromium.org> wrote:
> Hi Bin,
>
> On 11 October 2015 at 22:37, Bin Meng <bmeng.cn at gmail.com> wrote:
>> 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.
>
> I'm still not comfortable with CONFIG_ROM_SIZE not being the size of
> the SPI flash. It just seems wrong. Maybe we should have a
> u-boot.rom.min with a minimal images?
>
>>
>> Define a new struct mrc_region and use it instead.
>>
>> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>> ---
>>
>> arch/x86/cpu/ivybridge/sdram.c | 2 +-
>> arch/x86/include/asm/mrccache.h | 13 +++++++++----
>> arch/x86/lib/mrccache.c | 27 +++++++++++++++++----------
>> 3 files changed, 27 insertions(+), 15 deletions(-)
>
> Acked-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-x86, thanks!
More information about the U-Boot
mailing list