x86: Update mrccache to support multiple caches
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:07 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:14 +0000 (11:44 +0800)
commit515e8174f5560d98c2f84999b2e5585c0f2ccd57
tree37780fa9094496d93c76818fd8768ccd892c43e7
parent83f288f236505e2e73da8c8d2d72f97c0fe5b06b
x86: Update mrccache to support multiple caches

With Apollo Lake we need to support a normal cache, which almost never
changes and a much smaller 'variable' cache which changes every time.

Update the code to add a cache type, use an array for the caches and use a
for loop to iterate over the caches.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/broadwell/sdram.c
arch/x86/cpu/ivybridge/sdram.c
arch/x86/cpu/quark/dram.c
arch/x86/include/asm/global_data.h
arch/x86/include/asm/mrccache.h
arch/x86/lib/fsp/fsp_common.c
arch/x86/lib/fsp1/fsp_dram.c
arch/x86/lib/mrccache.c