tcl: fix typo and spelling

Identified by checkpatch script from Linux kernel v5.7-rc1 using
the command
	find tcl/ -type f -exec ./tools/scripts/checkpatch.pl \
	-q --types TYPO_SPELLING --strict -f {} \;

Change-Id: I7b523f0ab5ec047ff167742a44c29984ac672cf4
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5615
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2020-04-26 01:25:32 +02:00
parent 3a28cdc7cb
commit 6d3cb807aa
31 changed files with 37 additions and 37 deletions

View File

@ -23,7 +23,7 @@ $_TARGETNAME configure -event reset-init {
# select PLL as main source
mww 0x80040120 0x1
# disable and enble main clk to update changes?
# disable and enable main clk to update changes?
mww 0x80040124 0x0
mww 0x80040124 0x1

View File

@ -169,7 +169,7 @@ proc at91sam9g20_reset_init { } {
# TRC = 9 cycles
# TWR = 2 cycles
# 9 column, 13 row, 4 banks
# refresh equal to or less then 7.8 us for commerical/industrial rated devices
# refresh equal to or less then 7.8 us for commercial/industrial rated devices
#
# Thus SDRAM_CR = 0xa6339279

View File

@ -22,7 +22,7 @@ jtag_rclk 1000
$_TARGETNAME configure -event "reset-start" { jtag_rclk 1000 }
$_TARGETNAME configure -event "reset-assert" {
echo "Reseting ...."
echo "Resetting ...."
#cortex_a dbginit
}

View File

@ -170,11 +170,11 @@ proc imx35pdk_init { } {
mww 0xB8001010 0x00000304
#--------------------------------------------
# Init 32-bit DDR2 memeory on CSD0
# Init 32-bit DDR2 memory on CSD0
# COL=10-bit, ROW=13-bit, BA[1:0]=Addr[26:25]
#--------------------------------------------
# ESD_ESDCFG0 : set timing paramters
# ESD_ESDCFG0 : set timing parameters
mww 0xB8001004 0x007ffC2f
# ESD_ESDCTL0 : select Prechare-All mode

View File

@ -21,7 +21,7 @@ reset_config trst_and_srst separate trst_open_drain srst_open_drain
adapter speed 6000
$_TARGETNAME configure -event "reset-assert" {
echo "Reseting ...."
echo "Resetting ...."
#cortex_a dbginit
}

View File

@ -23,7 +23,7 @@ $_TARGETNAME configure -event "reset-start" { jtag_rclk 1000 }
#jtag_ntrst_delay 200
$_TARGETNAME configure -event "reset-assert" {
echo "Reseting ...."
echo "Resetting ...."
#cortex_a dbginit
}

View File

@ -162,7 +162,7 @@ proc kindle2_sdram_init {} {
# LPDDR1 Initialization script
mww 0xb8001010 0x00000002
mww 0xb8001010 0x00000004
# ESDCFG0: set timing paramters
# ESDCFG0: set timing parameters
mww 0xb8001004 0x007fff7f
# ESDCTL0: select Prechare-All mode
mww 0xb8001000 0x92100000

View File

@ -1,7 +1,7 @@
#
# Sony Ericsson J100I Phone
#
# more informations can be found on
# more information can be found on
# http://bb.osmocom.org/trac/wiki/SonyEricssonJ100i
#
source [find target/ti_calypso.cfg]

View File

@ -9,7 +9,7 @@
#
# Configure JTAG cable
# EM Starter Kit has built-in FT2232 chip, which is similiar to Digilent HS-1.
# EM Starter Kit has built-in FT2232 chip, which is similar to Digilent HS-1.
source [find interface/ftdi/digilent-hs1.cfg]
# 5MHz seems to work good with all cores that might happen in 2.x

View File

@ -9,7 +9,7 @@
#
# Configure JTAG cable
# EM Starter Kit has built-in FT2232 chip, which is similiar to Digilent HS-1.
# EM Starter Kit has built-in FT2232 chip, which is similar to Digilent HS-1.
source [find interface/ftdi/digilent-hs1.cfg]
adapter speed 10000

View File

@ -9,7 +9,7 @@
#
# Configure JTAG cable
# EM Starter Kit has built-in FT2232 chip, which is similiar to Digilent HS-1.
# EM Starter Kit has built-in FT2232 chip, which is similar to Digilent HS-1.
source [find interface/ftdi/digilent-hs1.cfg]
# JTAG 10MHz is too fast for EM7D FPU in EM SK 2.1 which has core frequency

View File

@ -9,7 +9,7 @@
#
# Configure JTAG cable
# EM Starter Kit has built-in FT2232 chip, which is similiar to Digilent HS-1.
# EM Starter Kit has built-in FT2232 chip, which is similar to Digilent HS-1.
source [find interface/ftdi/digilent-hs1.cfg]
# EM11D reportedly requires 5 MHz. Other cores and board can work faster.

View File

@ -1,5 +1,5 @@
# Use for the STM207VG plug-in board (1 MiB Flash and 112+16 KiB Ram
# comming with the STEVAL-PCC010 board
# coming with the STEVAL-PCC010 board
# http://www.st.com/internet/evalboard/product/251530.jsp
# or any other board with only a STM32F2x in the JTAG chain

View File

@ -1,5 +1,5 @@
source [find target/c100.cfg]
# basic register defintion for C100
# basic register definition for C100
source [find target/c100regs.tcl]
# board-config info
source [find target/c100config.tcl]

View File

@ -30,7 +30,7 @@ proc topas910_init { } {
# Init SDRAM
# _PMCDRV = 0x00000071;
# //
# // Initialize SDRAM timing paramater
# // Initialize SDRAM timing parameter
# //
# _DMC_CAS_LATENCY = 0x00000006;
# _DMC_T_DQSS = 0x00000000;

View File

@ -37,7 +37,7 @@ proc topasa900_init { } {
# Init SDRAM
# _PMCDRV = 0x00000071;
# //
# // Initialize SDRAM timing paramater
# // Initialize SDRAM timing parameter
# //
# _DMC_CAS_LATENCY = 0x00000006;
# _DMC_T_DQSS = 0x00000000;

View File

@ -5,7 +5,7 @@
source [find target/k60.cfg]
$_TARGETNAME configure -event reset-init {
puts "-event reset-init occured"
puts "-event reset-init occurred"
}
#

View File

@ -5,7 +5,7 @@
source [find target/k60.cfg]
$_TARGETNAME configure -event reset-init {
puts "-event reset-init occured"
puts "-event reset-init occurred"
}
#

View File

@ -5,7 +5,7 @@
# voltages. The XADC is available both from fabric as well as through the
# JTAG TAP.
#
# This code implements access throught the JTAG TAP.
# This code implements access through the JTAG TAP.
#
# https://www.xilinx.com/support/documentation/user_guides/ug480_7Series_XADC.pdf

View File

@ -15,7 +15,7 @@ ftdi_vid_pid 0x0403 0x6014
ftdi_layout_init 0x0030 0x003b
# 0xfff8 0xfffb
# Those signal are only required on some platforms or may required to be
# enabled explicitely (e.g. nrf5x chips).
# enabled explicitly (e.g. nrf5x chips).
ftdi_layout_signal nSRST -data 0x0010 -oe 0x0010
ftdi_layout_signal nTRST -data 0x0020 -oe 0x0020

View File

@ -28,7 +28,7 @@ proc show_mmr32_reg { NAME } {
}
# Give: NAMES - an array of names accessable
# Give: NAMES - an array of names accessible
# in the callers symbol-scope.
# VAL - the bits to display.

View File

@ -10,7 +10,7 @@ if { [info exists CHIPNAME] } {
set _CHIPNAME aducm360
}
# Endianess
# Endianness
if { [info exists ENDIAN] } {
set _ENDIAN $ENDIAN
} else {

View File

@ -28,7 +28,7 @@ if { $_CPUTAPID == 0x15b0203f } {
echo "- ERROR: -"
echo "- ERROR: In one position (0x05b0203f) it selects the -"
echo "- ERROR: ARM CPU, in the other position (0x1b0203f) -"
echo "- ERROR: it selects boundry-scan not the ARM -"
echo "- ERROR: it selects boundary-scan not the ARM -"
echo "- ERROR: -"
echo "-------------------------------------------------------"
}

View File

@ -1,5 +1,5 @@
# board(-config) specfic parameters file.
# board(-config) specific parameters file.
# set CFG_REFCLKFREQ [configC100 CFG_REFCLKFREQ]
proc config {label} {

View File

@ -15,7 +15,7 @@ proc helpC100 {} {
echo "12) ooma_board_detect: will show which version of Telo you have"
echo "13) setupDDR2: will configure DDR2 controller, you must have PLLs configureg"
echo "14) showDDR2: will show DDR2 config registers"
echo "15) showWatchdog: will show current regster config for watchdog"
echo "15) showWatchdog: will show current register config for watchdog"
echo "16) reboot: will trigger watchdog and reboot Telo (hw reset)"
echo "17) bootNOR: will boot Telo from NOR"
echo "18) setupUART0: will configure UART0 for 115200 8N1, PLLs have to be confiured"
@ -176,7 +176,7 @@ proc setupAmbaClk {} {
mmw $CLKCORE_AHB_CLK_CNTRL 0x0 0xFFFFFF
mmw $CLKCORE_AHB_CLK_CNTRL [expr (($x << 16) + ($w << 8) + $y)] 0x0
# wait for PLL to lock
echo "Wating for Amba PLL to lock"
echo "Waiting for Amba PLL to lock"
while {[expr [mrw $CLKCORE_PLL_STATUS] & $AHBCLK_PLL_LOCK] == 0} { sleep 1 }
# remove the internal PLL bypass
mmw $CLKCORE_AHB_CLK_CNTRL 0x0 $AHB_PLL_BY_CTRL
@ -250,7 +250,7 @@ proc setupArmClk {} {
mmw $CLKCORE_ARM_CLK_CNTRL 0x0 0xFFFFFF
mmw $CLKCORE_ARM_CLK_CNTRL [expr (($x << 16) + ($w << 8) + $y)] 0x0
# wait for PLL to lock
echo "Wating for Amba PLL to lock"
echo "Waiting for Amba PLL to lock"
while {[expr [mrw $CLKCORE_PLL_STATUS] & $FCLK_PLL_LOCK] == 0} { sleep 1 }
# remove the internal PLL bypass
mmw $CLKCORE_ARM_CLK_CNTRL 0x0 $ARM_PLL_BY_CTRL
@ -300,7 +300,7 @@ proc setupDDR2 {} {
# Memory setup register
mww $MEMORY_MAX_ADDR [expr ($ddr_size - 1) + $MEMORY_BASE_ADDR]
# disbale ROM remap
# disable ROM remap
mww $MEMORY_CR 0x0
# Take DDR controller out of reset
mmw $BLOCK_RESET_REG $DDR_RST 0x0
@ -486,7 +486,7 @@ proc reboot {} {
set TIMER_WDT_CURRENT_COUNT [regs TIMER_WDT_CURRENT_COUNT]
# allow the counter to count to high value before triggering
# this is because regsiter writes are slow over JTAG and
# this is because register writes are slow over JTAG and
# I don't want to miss the high_bound==curr_count condition
mww $TIMER_WDT_HIGH_BOUND 0xffffff
mww $TIMER_WDT_CURRENT_COUNT 0x0
@ -494,7 +494,7 @@ proc reboot {} {
adapter speed 100
mww $TIMER_WDT_CONTROL 0x1
# wait until the reset
echo -n "Wating for watchdog to trigger..."
echo -n "Waiting for watchdog to trigger..."
#while {[mrw $TIMER_WDT_CONTROL] == 1} {
# echo [format "TIMER_WDT_CURRENT_COUNT (0x%x): 0x%x" $TIMER_WDT_CURRENT_COUNT [mrw $TIMER_WDT_CURRENT_COUNT]]
# sleep 1

View File

@ -35,7 +35,7 @@ set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME dsp5680xx -endian $_ENDIAN -chain-position $_TARGETNAME
# Setup the interesting tap
# Disable polling to be able to get idcode from core tap. If re enabled, can be re enabled, but it should be disabled to correctly unlock flash (operations requiere certain instruction to be in the IR register during reset, and polling would change this)
# Disable polling to be able to get idcode from core tap. If re enabled, can be re enabled, but it should be disabled to correctly unlock flash (operations require certain instruction to be in the IR register during reset, and polling would change this)
jtag configure $_CHIPNAME.chp -event setup "
jtag tapenable $_TARGETNAME
poll off

View File

@ -14,7 +14,7 @@ if { [info exists CPUTAPID] } {
if { [info exists HAS_ETB] } {
} else {
# Set default (no ETB).
# Show a warning, because this should have been configured explicitely.
# Show a warning, because this should have been configured explicitly.
set HAS_ETB 0
# TODO: warning?
}

View File

@ -22,7 +22,7 @@ if { [info exists CPUTAPID] } {
}
# Scan Tap
# Wired to seperate STDO pin on the lpc3131, externally muxed to TDO on ea3131 module
# Wired to separate STDO pin on the lpc3131, externally muxed to TDO on ea3131 module
# JTAGSEL pin must be 0 to activate, which reassigns arm tdo to a pass through.
if { [info exists SJCTAPID] } {
set _SJCTAPID $SJCTAPID

View File

@ -164,7 +164,7 @@ $_TARGETNAME configure -event reset-start {
} else {
if {![using_hla]} {
# Tempest and Firestorm default to using NVIC VECTRESET
# peripherals will need reseting manually, see proc reset_peripherals
# peripherals will need resetting manually, see proc reset_peripherals
cortex_m reset_config vectreset
}
# reset peripherals, based on code in

View File

@ -25,7 +25,7 @@ proc ocd_process_reset_inner { MODE } {
soft_reset_halt
# Intialize MSP, PSP, and PC from vector table at flash 0x01000800
# Initialize MSP, PSP, and PC from vector table at flash 0x01000800
mem2array boot 32 0x01000800 2
reg msp $boot(0)

View File

@ -38,7 +38,7 @@ openocd -f interface/ftdi/tumpa.cfg -f tools/firmware-recovery.tcl \\
shutdown
}
# set default, can be overriden later
# set default, can be overridden later
adapter speed 1000
proc get_partition { name } {