riscv: cpu: th1520: Initialize IOPMPs in SPL
authorYao Zi <ziyao@disroot.org>
Fri, 16 May 2025 03:05:22 +0000 (03:05 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 21 May 2025 08:49:57 +0000 (16:49 +0800)
commitce8f49ece23f410aec72be27d1f7e03696132b0a
tree5d9a0b55a167c53f9768a2b8a7e02219a6803fa1
parente1bd3b444549dfcd61fa8ea96cbfedf646dfca19
riscv: cpu: th1520: Initialize IOPMPs in SPL

TH1520 SoC ships several IOPMPs protecting various on-chip peripherals.
They must be configured before accessing the peripherals. Let's
initialize them in SPL harts_early_init().

Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/th1520/spl.c
arch/riscv/include/asm/arch-th1520/iopmp.h [new file with mode: 0644]