arm: mach-k3: am62p: Fixup CPU core, CAN-FD and Video-codec nodes in fdt
authorAparna Patra <a-patra@ti.com>
Wed, 8 Jan 2025 04:49:36 +0000 (10:19 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 14 Jan 2025 21:50:07 +0000 (15:50 -0600)
commite44098d1aa50a8b2e5f7c079d3ab57c1f7ff83c3
treeee9f9e4ff2363d7f8e77b2a4a4f2397f577fe606
parent56accc56b9aab87ef4809ccc588e1257969cd271
arm: mach-k3: am62p: Fixup CPU core, CAN-FD and Video-codec nodes in fdt

AM62P SOC is available in multiple variants:
-CPU cores (Cortex-A) AM62Px1 (1 core),
 AM62Px2 (2 cores), AM62Px4 (4 cores)
-With and without CAN-FD & Video-codec support

Remove the relevant FDT nodes by reading the actual configuration
from the SoC registers, with that change it is possible to have a single
dts/dtb file handling the different variant at runtime.

Signed-off-by: Aparna Patra <a-patra@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
arch/arm/mach-k3/am62px/am62p5_fdt.c
arch/arm/mach-k3/include/mach/am62p_hardware.h