Support new versions of Synopsys IP.
In particular
- version 4 that is found on stm32mp2 arm64 SoC
- version 5 (0x54) that is found on Spacemit K3 RISC-V SoC
Operations for both new versions is identical as features of version 5 not used.
I will upload the glue for stm32mp2 and Spacemit later.
Thanks to @manu for start splitting out the DMA code of the older (dwc version 3) driver to separate files in 2023. This patch is continuation of that work to support new core versions.
Having all versions in the same driver is convenient in terms of features re-usability and maintenance (same as in Linux)