armbian-build/patch/atf
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
..
atf-genio genio: mt8195: atf: patch: add TF-A RAM size autodetection pass to bl33 2026-01-08 12:30:24 +01:00
atf-imx8 IMX8: fix build error (again) 2025-10-30 12:08:07 +01:00
atf-rockchip64 atf: rk3399: fix PL330 DMA controller initialization 2026-01-25 11:36:06 +01:00
atf-sunxi64 Fixed ethernet for Orange Pi 3 and Orange Pi One Plus 2023-12-14 12:39:23 +05:30