tcl/target/ti_k3: Make Cortex-A processors optional

The AM2x family of K3 SoCs typically do not contain a Cortex-A53 or
A72 processor. So, make the cpu "up" functions available when armv8
processor count > 0.

Change-Id: I985b194fe7cc63e4134ad84ccd921cc456eb412f
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7944
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Nishanth Menon 2023-10-17 15:36:55 -05:00 committed by Antonio Borneo
parent 5ea20d7ed9
commit 9a79dfb709
1 changed files with 17 additions and 15 deletions

View File

@ -341,6 +341,7 @@ for { set _core 0 } { $_core < $_armv8_cores } { incr _core } {
} }
} }
if { $_armv8_cores > 0 } {
# Setup ARMV8 proc commands based on CPU to prevent people confusing SoCs # Setup ARMV8 proc commands based on CPU to prevent people confusing SoCs
set _armv8_up_cmd "$_armv8_cpu_name"_up set _armv8_up_cmd "$_armv8_cpu_name"_up
# Available if V8_SMP_DEBUG is set to non-zero value # Available if V8_SMP_DEBUG is set to non-zero value
@ -360,6 +361,7 @@ if { $_v8_smp_debug == 0 } {
# Declare SMP # Declare SMP
target smp {*}$_v8_smp_targets target smp {*}$_v8_smp_targets
} }
}
for { set _core 0 } { $_core < $_r5_cores } { incr _core } { for { set _core 0 } { $_core < $_r5_cores } { incr _core } {
set _r5_name [lindex $R5_NAMES $_core] set _r5_name [lindex $R5_NAMES $_core]