Skip to content

Commit 9c3ebc3

Browse files
author
Appana Durga Kedareswara rao
committed
boards: amd: versal2_rpu: Update configuration to align with latest target definitions
In 2025.1 xsdb release for Versal Gen 2 platform target definitions got changed, Updated config file to align with latest target definitions. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
1 parent 47ec6c4 commit 9c3ebc3

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

boards/amd/versal2_rpu/support/xsdb.cfg

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
proc rpu0_core0_rst { {mem "default"} } {
6-
targets -set -filter {name =~ "DAP*"}
7-
#CRL write protect
8-
mwr -force 0xeb5e001c 0x0
9-
mwr -force 0xEB580000 1
6+
targets -set -filter {name =~ "Versal Gen 2*"}
7+
# CRL write protect
8+
mwr -force 0xeb5e001c 0
9+
mwr -force 0xeb580000 1
1010
mwr -force 0xbbf20000 0xeafffffe
1111
# write BASE_HI and BASE_LO
12-
if {$mem eq "ddr"} {
13-
set addr 0x100000
14-
} elseif {$mem eq "tcm"} {
15-
set addr 0x0
16-
} elseif {$mem eq "default"} {
17-
set addr 0xbbf20000
18-
}
19-
mwr -force 0xEB588008 $addr
12+
if {$mem eq "ddr"} {
13+
set addr 0x100000
14+
} elseif {$mem eq "tcm"} {
15+
set addr 0
16+
} elseif {$mem eq "default"} {
17+
set addr 0xbbf20000
18+
}
19+
mwr -force 0xeb588008 $addr
2020
# write TCMBOOT as one
21-
mask_write 0xEB588000 0x10 0x10
21+
mask_write 0xeb588000 0x10 0x10
2222
# reset CORE0A_RESET out of reset A_TOPRESET and CORE0A_POR
23-
mask_write 0xEB5E0310 0x10101 0x1
23+
mask_write 0xeb5e0310 0x10101 0x1
2424
# out of reset CORE0A_RESET
25-
mask_write 0xEB5E0310 0x1 0x0
26-
targets -set -filter {name =~ "Cortex-R52*0" && parent =~ "*0x00100000"}
25+
mask_write 0xeb5e0310 0x1 0
26+
targets -set -filter {name =~ "Cortex-R52*0.0"}
2727
after 300
2828
stop
2929
after 1000
@@ -58,7 +58,7 @@ proc load_image args {
5858
ta
5959
}
6060
after 1000
61-
targets -set -nocase -filter {name =~ "DAP*"}
61+
targets -set -filter {name =~ "Versal Gen 2*"}
6262
after 100
6363
# Configure timestamp generator to run global timer gracefully
6464
# Ideally these registers should be set from bootloader (cdo)

0 commit comments

Comments
 (0)