mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-02-28 02:01:50 +00:00
lib: utils/cache: add Andes last level cache controller
Introduce a FDT-based driver for the Andes Last Level Cache (LLC) controller to support cache maintenance operations. Signed-off-by: Ben Zong-You Xie <ben717@andestech.com> Link: https://lore.kernel.org/r/20251229071914.1451587-5-ben717@andestech.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
committed by
Anup Patel
parent
6d26b43c47
commit
82b0961821
@@ -84,6 +84,16 @@ u32 atcsmu_get_sleep_type(u32 hartid)
|
||||
return readl_relaxed((char *)atcsmu_base + PCSm_SCRATCH_OFFSET(hartid));
|
||||
}
|
||||
|
||||
void atcsmu_write_scratch(u32 value)
|
||||
{
|
||||
writel_relaxed(value, (char *)atcsmu_base + SCRATCH_PAD_OFFSET);
|
||||
}
|
||||
|
||||
u32 atcsmu_read_scratch(void)
|
||||
{
|
||||
return readl_relaxed((char *)atcsmu_base + SCRATCH_PAD_OFFSET);
|
||||
}
|
||||
|
||||
static int ae350_hart_start(u32 hartid, ulong saddr)
|
||||
{
|
||||
u32 hartindex = sbi_hartid_to_hartindex(hartid);
|
||||
|
||||
Reference in New Issue
Block a user