From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 11:02:38 +0800 Subject: [PATCH v6 034/102] x86: Update mrccache to support multiple caches In-Reply-To: <20191206213936.v6.34.Ie8badf1328570408b3352525d35cd0f804073e17@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.34.Ie8badf1328570408b3352525d35cd0f804073e17@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:48 PM Simon Glass wrote: > > 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 > Reviewed-by: Bin Meng > --- > > Changes in v6: None > Changes in v5: None > Changes in v4: > - apollolake -> Apollo Lake > > Changes in v3: > - Move line related to variable-cache into the next patch > > Changes in v2: None > > arch/x86/cpu/broadwell/sdram.c | 8 ++- > arch/x86/cpu/ivybridge/sdram.c | 8 ++- > arch/x86/cpu/quark/dram.c | 8 ++- > arch/x86/include/asm/global_data.h | 21 +++++-- > arch/x86/include/asm/mrccache.h | 11 +++- > arch/x86/lib/fsp/fsp_common.c | 2 +- > arch/x86/lib/fsp1/fsp_dram.c | 8 ++- > arch/x86/lib/mrccache.c | 88 ++++++++++++++++++++---------- > 8 files changed, 106 insertions(+), 48 deletions(-) > applied to u-boot-x86/next, thanks!