~ubuntu-branches/ubuntu/wily/openocd/wily

« back to all changes in this revision

Viewing changes to tcl/target/pxa270.cfg

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Hermann
  • Date: 2009-11-25 12:20:04 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091125122004-4cnrzqw7v9qu064n
Tags: 0.3.1-1
* New upstream release (Closes: #554598, #537740).
* Add sh4 (instead of sh) to the list of architectures (Closes: #555553).
* Standards-Version: 3.8.3 (no changes required).
* debian/watch: Add file.
* debian/docs: Updates, some files were removed, some added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#Marvell/Intel PXA270 Script
2
2
 
3
 
if { [info exists CHIPNAME] } { 
4
 
   set  _CHIPNAME $CHIPNAME    
5
 
} else {         
 
3
if { [info exists CHIPNAME] } {
 
4
   set  _CHIPNAME $CHIPNAME
 
5
} else {
6
6
   set  _CHIPNAME pxa270
7
7
}
8
8
 
9
 
if { [info exists ENDIAN] } {   
10
 
   set  _ENDIAN $ENDIAN    
11
 
} else {         
 
9
if { [info exists ENDIAN] } {
 
10
   set  _ENDIAN $ENDIAN
 
11
} else {
12
12
   set  _ENDIAN little
13
13
}
14
14
 
15
 
#IDs for pxa270. Choose one. Are there others?#
16
 
#set CPUTAPID 0x79265013
17
 
#set CPUTAPID 0x49265013
 
15
#IDs for pxa270. Are there more?
18
16
if { [info exists CPUTAPID ] } {
19
17
   set _CPUTAPID $CPUTAPID
20
18
} else {
21
 
  # force an error till we get a good number
22
 
   set _CPUTAPID 0xffffffff
 
19
  # set useful default
 
20
   set _CPUTAPID 0x49265013
 
21
}
 
22
 
 
23
if { [info exists CPUTAPID2 ] } {
 
24
   set _CPUTAPID2 $CPUTAPID2
 
25
} else {
 
26
  # set useful default
 
27
   set _CPUTAPID2 0x79265013
23
28
}
24
29
 
25
30
 
28
33
jtag_nsrst_delay 260
29
34
# set the jtag_ntrst_delay to the delay introduced by a reset circuit
30
35
# the rest of the needed delays are built into the openocd program
31
 
jtag_ntrst_delay 0
 
36
jtag_ntrst_delay 250
32
37
 
33
 
set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
34
 
jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID
 
38
set _TARGETNAME $_CHIPNAME.cpu
 
39
jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID -expected-id $_CPUTAPID2
35
40
 
36
41
target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME -variant pxa27x
37
42
# maps to PXA internal RAM. If you are using a PXA255