[PATCH v1 0/3] arm: mach-k3: am62: Add core number autodetection and fix fdt

Francesco Dolcini francesco at dolcini.it
Wed Jul 12 15:47:27 CEST 2023


From: Francesco Dolcini <francesco.dolcini at toradex.com>

AM62x SoC is available in multiple variant with a different amount of CPU cores
(Cortex-A) available, AM62x1, AM62x2, AM62x4 have respectively 1, 2 or 4 cores.

Update the FDT with the actual core count as read from the SoC registers, with
that change is possible to have a single dts/dtb file handling the different
variant at runtime.

A similar approach is implemented for example on i.MX8 and STM32MP1 SoC.

Since we start using ft_system_setup on a SoC without msmc ram and
fdt_fixup_msmc_ram function fails on those SoC (triggering a reset loop) the
first commit fix it by calling that function only on specific SoC.

Emanuele Ghidoli (3):
  arm: k3: Fix ft_system_setup so it can be enabled on any SoC
  arm: mach-k3: am62: Add CTRLMMR_WKUP_JTAG_DEVICE_ID register
    definition
  arm: mach-k3: am62: Fixup CPU core counts in fdt

 arch/arm/mach-k3/common.c                     | 67 ++++++++++++++++---
 arch/arm/mach-k3/include/mach/am62_hardware.h | 18 +++++
 2 files changed, 77 insertions(+), 8 deletions(-)

-- 
2.25.1



More information about the U-Boot mailing list