[PATCH v5 04/25] mips: add support for noncached_alloc()

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Tue May 17 22:53:24 CEST 2022



On 16.05.22 04:42, Weijie Gao wrote:
> This patch adds support for noncached_alloc() which was only supported by
> ARM platform.
> 
> Unlike the ARM platform, MMU is not used in u-boot for MIPS. Instead, KSEG
> is provided to access uncached memory. So most code of this patch is copied
> from cache.c of ARM platform, with only two differences:
> 1. MMU is untouched in noncached_set_region()
> 2. Address returned by noncached_alloc() is converted using KSEG1ADDR()
> 
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> ---
> v5 changes: change KSEG1ADDR to CKSEG1ADDR
> v4 changes: new
> ---
>   arch/mips/include/asm/system.h | 20 ++++++++++++++++
>   arch/mips/lib/cache.c          | 43 ++++++++++++++++++++++++++++++++++
>   2 files changed, 63 insertions(+)
> 

Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>

-- 
- Daniel


More information about the U-Boot mailing list