]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: k3: Fix ft_system_setup so it can be enabled on any SoC
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Fri, 14 Jul 2023 15:23:08 +0000 (17:23 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 21 Jul 2023 19:32:12 +0000 (15:32 -0400)
commit7b7288df3415c7faa4a305b814bb8932876b2149
tree836f164323c68664356519966a8ff5f38e6c79c2
parentf40f54bfeda228811038e0470abba888b20565c9
arm: k3: Fix ft_system_setup so it can be enabled on any SoC

ft_system_setup cannot be enabled on SoC without msmc sram otherwise
fdt_fixup_msmc_ram function fails causing system reset.

Fix by moving fdt_fixup_msmc_ram to common_fdt.c file and creating
SoC (AM654, J721E and J721S2) specific files for fdt fixups.

This change was verified to not change anything on any existing board
(all the J721S2, AM654 and J721E boards requires it,
none of the remaining k3 boards require it).

Fixes: 30e96a240156 ("arm: mach-k3: Move MSMC fixup to SoC level")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
arch/arm/mach-k3/Makefile
arch/arm/mach-k3/am654_fdt.c [new file with mode: 0644]
arch/arm/mach-k3/common.c
arch/arm/mach-k3/common_fdt.c [new file with mode: 0644]
arch/arm/mach-k3/common_fdt.h [new file with mode: 0644]
arch/arm/mach-k3/j721e_fdt.c [new file with mode: 0644]
arch/arm/mach-k3/j721s2_fdt.c [new file with mode: 0644]