public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v1 0/3] arm: mach-k3: am62: Add core number autodetection and fix fdt
@ 2023-07-12 13:47 Francesco Dolcini
  2023-07-12 13:47 ` [PATCH v1 1/3] arm: k3: Fix ft_system_setup so it can be enabled on any SoC Francesco Dolcini
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Francesco Dolcini @ 2023-07-12 13:47 UTC (permalink / raw)
  To: u-boot, Tom Rini; +Cc: Francesco Dolcini, Vignesh Raghavendra, Andrew Davis

From: Francesco Dolcini <francesco.dolcini@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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-07-13  6:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 13:47 [PATCH v1 0/3] arm: mach-k3: am62: Add core number autodetection and fix fdt Francesco Dolcini
2023-07-12 13:47 ` [PATCH v1 1/3] arm: k3: Fix ft_system_setup so it can be enabled on any SoC Francesco Dolcini
2023-07-12 14:15   ` Andrew Davis
2023-07-12 14:32     ` Francesco Dolcini
2023-07-12 14:38       ` Andrew Davis
2023-07-13  6:17         ` Francesco Dolcini
2023-07-12 13:47 ` [PATCH v1 2/3] arm: mach-k3: am62: Add CTRLMMR_WKUP_JTAG_DEVICE_ID register definition Francesco Dolcini
2023-07-12 14:18   ` Andrew Davis
2023-07-12 14:25     ` Francesco Dolcini
2023-07-12 13:47 ` [PATCH v1 3/3] arm: mach-k3: am62: Fixup CPU core counts in fdt Francesco Dolcini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox