Skip to content

Commit

Permalink
ac03: boundary-scan user configs [DO NOT UPSTREAM]
Browse files Browse the repository at this point in the history
Add 1P and 2P boundary-scan user configuration files for AmpereOne
Family chips.

Change-Id: Iacd78fe64846ecbc7fff2796f47ca30d4168189b
Signed-off-by: Daniel Goehring <dgoehrin@os.amperecomputing.com>
  • Loading branch information
dgoehring-ampere committed Jun 4, 2024
1 parent acc360d commit 6a9fcf2
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 0 deletions.
54 changes: 54 additions & 0 deletions tcl/openocd.ac03_1s_bmc_bs.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Example OpenOCD user configuration for the AST2600 BMC
# on the AmpereOne and AmpereOne X development platforms
#
# Copyright (c) 2022-2024, Ampere Computing LLC
#

# Command Line Argument Description
#
# JTAGFREQ
# Override the default JTAG clock frequency
# If not specified, defaults to "1000" kHz
# Syntax: -c "set JTAGFREQ {1000}"

# Operating System Environment Variable Overrides
#
# OCD_TELNET_PORT
# Specify OpenOCD's Telnet port
# csh: setenv OCD_TELNET_PORT 4444
# bash: export OCD_TELNET_PORT=4444
#
# OCD_TCL_PORT
# Specify OpenOCD's TCL port
# csh: setenv OCD_TCL_PORT 6666
# bash: export OCD_TCL_PORT=6666

bindto 0.0.0.0
#debug_level 3

if { [info exists env(OCD_TELNET_PORT)] } {
telnet_port $::env(OCD_TELNET_PORT)
}

if { [info exists env(OCD_TCL_PORT)] } {
tcl_port $::env(OCD_TCL_PORT)
}

#
# Interface Configuration
#

source [find interface/jtag_driver.cfg]

#
# Board (Platform) Configuration
#

if { ![info exists JTAGFREQ] } {
set JTAGFREQ 1000
}

set AMPERE_PLATFORM silicon
source [find board/ampere_ac03_1s_bs.cfg]
54 changes: 54 additions & 0 deletions tcl/openocd.ac03_1s_sil_bs.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Example OpenOCD user configuration for the AmpereOne
# and AmpereOne X Development Platforms
#
# Copyright (c) 2022-2024, Ampere Computing LLC
#

# Command Line Argument Description
#
# JTAGFREQ
# Override the default JTAG clock frequency
# If not specified, defaults to "1000" kHz
# Syntax: -c "set JTAGFREQ {1000}"

# Operating System Environment Variable Overrides
#
# OCD_TELNET_PORT
# Specify OpenOCD's Telnet port
# csh: setenv OCD_TELNET_PORT 4444
# bash: export OCD_TELNET_PORT=4444
#
# OCD_TCL_PORT
# Specify OpenOCD's TCL port
# csh: setenv OCD_TCL_PORT 6666
# bash: export OCD_TCL_PORT=6666

bindto 0.0.0.0
#debug_level 3

if { [info exists env(OCD_TELNET_PORT)] } {
telnet_port $::env(OCD_TELNET_PORT)
}

if { [info exists env(OCD_TCL_PORT)] } {
tcl_port $::env(OCD_TCL_PORT)
}

#
# Interface Configuration
#

source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg]

#
# Board (Platform) Configuration
#

if { ![info exists JTAGFREQ] } {
set JTAGFREQ 1000
}

set AMPERE_PLATFORM silicon
source [find board/ampere_ac03_1s_bs.cfg]
54 changes: 54 additions & 0 deletions tcl/openocd.ac03_2s_bmc_bs.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Example OpenOCD user configuration for the AST2600 BMC
# on the AmpereOne and AmpereOne X development platforms
#
# Copyright (c) 2022-2024, Ampere Computing LLC
#

# Command Line Argument Description
#
# JTAGFREQ
# Override the default JTAG clock frequency
# If not specified, defaults to "1000" kHz
# Syntax: -c "set JTAGFREQ {1000}"

# Operating System Environment Variable Overrides
#
# OCD_TELNET_PORT
# Specify OpenOCD's Telnet port
# csh: setenv OCD_TELNET_PORT 4444
# bash: export OCD_TELNET_PORT=4444
#
# OCD_TCL_PORT
# Specify OpenOCD's TCL port
# csh: setenv OCD_TCL_PORT 6666
# bash: export OCD_TCL_PORT=6666

bindto 0.0.0.0
#debug_level 3

if { [info exists env(OCD_TELNET_PORT)] } {
telnet_port $::env(OCD_TELNET_PORT)
}

if { [info exists env(OCD_TCL_PORT)] } {
tcl_port $::env(OCD_TCL_PORT)
}

#
# Interface Configuration
#

source [find interface/jtag_driver.cfg]

#
# Board (Platform) Configuration
#

if { ![info exists JTAGFREQ] } {
set JTAGFREQ 1000
}

set AMPERE_PLATFORM silicon
source [find board/ampere_ac03_2s_bs.cfg]
54 changes: 54 additions & 0 deletions tcl/openocd.ac03_2s_sil_bs.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Example OpenOCD user configuration for the AmpereOne
# and AmpereOne X Development Platforms
#
# Copyright (c) 2022-2024, Ampere Computing LLC
#

# Command Line Argument Description
#
# JTAGFREQ
# Override the default JTAG clock frequency
# If not specified, defaults to "1000" kHz
# Syntax: -c "set JTAGFREQ {1000}"

# Operating System Environment Variable Overrides
#
# OCD_TELNET_PORT
# Specify OpenOCD's Telnet port
# csh: setenv OCD_TELNET_PORT 4444
# bash: export OCD_TELNET_PORT=4444
#
# OCD_TCL_PORT
# Specify OpenOCD's TCL port
# csh: setenv OCD_TCL_PORT 6666
# bash: export OCD_TCL_PORT=6666

bindto 0.0.0.0
#debug_level 3

if { [info exists env(OCD_TELNET_PORT)] } {
telnet_port $::env(OCD_TELNET_PORT)
}

if { [info exists env(OCD_TCL_PORT)] } {
tcl_port $::env(OCD_TCL_PORT)
}

#
# Interface Configuration
#

source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg]

#
# Board (Platform) Configuration
#

if { ![info exists JTAGFREQ] } {
set JTAGFREQ 1000
}

set AMPERE_PLATFORM silicon
source [find board/ampere_ac03_2s_bs.cfg]

0 comments on commit 6a9fcf2

Please sign in to comment.