lib: utils/cache: andes_llcache: match andestech,ax45mp-cache
PATCH 1/1 lib: utils/cache: andes_llcache: match andestech,ax45mp-cache
The Linux binding for the AX45MP L2 cache controller, andestech,ax45mp-cache.yaml, uses the "andestech,ax45mp-cache" compatible, and the RZ/Five and QiLai device trees follow it. No binding defines "andestech,llcache", so this driver does not probe the L2 cache on these boards. OpenSBI then uses a generic cache device, which cannot flush or enable the cache.
The AX45MP L2 cache controller has the registers this driver uses: the memory map bit in the config register, the init status bit in the control register, and the per-core CCTL command and status registers. Add the compatible to the match table.
Assisted-by Claude:claude-opus-5-5
Signed-off-by Randolph Lin <[email protected]>
--- lib/utils/cache/fdt_andes_llcache.c | 1 + 1 file changed, 1 insertion(+)
lib/utils/cache/fdt_andes_llcache.c +1 -0
@@ -172,6 +172,7 @@ static int andes_llcache_probe(const void *fdt, int nodeoff, const struct fdt_mastatic const struct fdt_match andes_llcache_match[] = { { .compatible ="andestech,llcache" }, + { .compatible ="andestech,ax45mp-cache" }, {}, };
Signature · 7 lines
2.34.1 -- opensbi mailing list [email protected] http://lists.infradead.org/mailman/listinfo/opensbi