armbian-build/patch/atf/atf-rockchip64/v2.13
Igor Velkov ecd55f4ba5 atf: rk3399: fix PL330 DMA controller initialization
Mainline TF-A doesn't initialize SGRF_SOC_CON8-CON15 which control
DMAC0 and DMAC1 configuration. Without this, the PL330 DMA controllers
cannot be accessed from Linux and PERIPH_ID reads as 0x0.

The fix configures SGRF registers to set DMAC manager threads to
running state and non-secure mode, then pulses DMAC reset to apply
the new configuration.

Based on community reverse-engineering:
- https://lists.denx.de/pipermail/u-boot/2023-April/514267.html
- https://gist.github.com/CrystalGamma/a68333fa4c9fda7eb6c09d30ad4937fe

Tested on Helios64 (RK3399).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 11:36:06 +01:00
..
1000-rk3328-add-efuse-initialization-in-ATF.patch rockchip64: patch ATF 2.13 to build on gcc-14+ (ref rk3399's m0) 2026-01-10 11:13:47 +01:00
1001-2.13-rk3399-m0-LDFLAGS-no-pie.patch rockchip64: patch ATF 2.13 to build on gcc-14+ (ref rk3399's m0) 2026-01-10 11:13:47 +01:00
1002-2.13-rk3399-PMUSRAM_RSIZE-8k-16k.patch rockchip64: patch ATF 2.13 to build on gcc-14+ (ref rk3399's m0) 2026-01-10 11:13:47 +01:00
1003-rk3399-fix-pl330-dmac-sgrf-init.patch atf: rk3399: fix PL330 DMA controller initialization 2026-01-25 11:36:06 +01:00