powerpc/cache: add cache flush operation for various e500
authorRan Wang <ran.wang_1@nxp.com>
Wed, 28 Mar 2018 08:12:01 +0000 (16:12 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 02:34:20 +0000 (10:34 +0800)
commite5457755b3f5d24e0b1456518ebac07f49c98997
tree00bc9e8217c317ba6555054615a011735c2ca4fb
parent2c85ebc57b3e1817b6ce1a6b703928e113a90442
powerpc/cache: add cache flush operation for various e500

Various e500 core have different cache architecture, so they
need different cache flush operations. Therefore, add a callback
function cpu_flush_caches to the struct cpu_spec. The cache flush
operation for the specific kind of e500 is selected at init time.
The callback function will flush all caches in the current cpu.

Signed-off-by: Chenhui Zhao <chenhui.zhao@freescale.com>
Reviewed-by: Yang Li <LeoLi@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
arch/powerpc/include/asm/cputable.h
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/cpu_setup_fsl_booke.S
arch/powerpc/kernel/cputable.c