21470b02b152b2c03da7c646e1d175fe103d589e
[fw/openocd] / tcl / board / dptechnics_dpt-board-v1.cfg
1 # Product page:
2 # https://www.dptechnics.com/en/products/dpt-board-v1.html
3 #
4 # JTAG is a 5 pin array located close to main module in following order:
5 # 1. JTAG TCK
6 # 2. JTAG TDO
7 # 3. JTAG TDI
8 # 4. JTAG TMS
9 # 5. GND        The GND is located near letter G of word JTAG on board.
10 #
11 # Two RST pins are connected to:
12 # 1. GND
13 # 2. GPIO11     this pin is located near letter R of word RST.
14 #
15 # To enable EJTAG mode, GPIO11 (RST[1]) pin should be pulled up. For example
16 # with 10K resistor connected to V3.3 pin.
17 #
18 # This board is powered from micro USB connector. No real reset pin or button, for
19 # example RESET_L is available.
20
21 source [find target/atheros_ar9331.cfg]
22
23 $_TARGETNAME configure -event reset-init {
24         ar9331_25mhz_pll_init
25         sleep 1
26         ar9331_ddr2_init
27 }
28
29 set ram_boot_address 0xa0000000
30 $_TARGETNAME configure -work-area-phys 0xa1FFE000 -work-area-size 0x1000
31
32 flash bank flash0 ath79 0xbf000000 0 0 0 $_TARGETNAME cs0