]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit173080d100af23dc77c5debe2ef96dcb3245ecc9
tree37780fa9094496d93c76818fd8768ccd892c43e7
parent990ac3cddf0d250519ef622f5b5847a6f48c0ebe
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