1 source [find bitsbytes.tcl]
2 source [find cpu/arm/arm7tdmi.tcl]
3 source [find memory.tcl]
4 source [find mmr_helpers.tcl]
6 set CHIP_MAKER freescale
7 set CHIP_FAMILY mc1322x
10 set RAM(0,BASE) 0x00400000
11 set RAM(0,LEN) 0x18000
12 set RAM(0,HUMAN) "internal SRAM"
14 set RAM(0,RWX) $RWX_RWX
15 set RAM(0,ACCESS_WIDTH) $ACCESS_WIDTH_ANY
17 # I AM LAZY... I create 1 region for all MMRs.
19 set MMREGS(0,CHIPSELECT) -1
20 set MMREGS(0,BASE) 0x80000000
21 set MMREGS(0,LEN) 0x00030000
22 set MMREGS(0,HUMAN) "mm-regs"
23 set MMREGS(0,TYPE) "mmr"
24 set MMREGS(0,RWX) $RWX_RW
25 set MMREGS(0,ACCESS_WIDTH) $ACCESS_WIDTH_ANY
29 set _CHIPNAME mc13224v
30 set _CPUTAPID 0x1f1f001d
32 jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
34 reset_config srst_only
37 # rclk hasn't been working well. This maybe the mc13224v or something else.
41 ######################
42 # Target configuration
43 ######################
45 set _TARGETNAME $_CHIPNAME.cpu
46 target create $_TARGETNAME arm7tdmi -chain-position $_TARGETNAME
48 # Internal sram memory
49 $_TARGETNAME configure -work-area-phys 0x00408000 \
50 -work-area-size 0x1000 \
53 # flash support is pending (should be straightforward to implement)
54 #flash bank mc1322x 0 0 0 0 $_TARGETNAME