tcl/target|board: add config Atheros ar2313 35/2835/3
authorOleksij Rempel <linux@rempel-privat.de>
Wed, 17 Jun 2015 18:57:34 +0000 (20:57 +0200)
committerFreddie Chopin <freddie.chopin@gmail.com>
Tue, 3 Nov 2015 22:18:27 +0000 (22:18 +0000)
Add configs for Atheros ar2313 MIPS based WiSoC and
board based on this chip: Netgear WP102

Change-Id: Id93957b5d5851a272f15be35f9f448a9ce6d8a08
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Reviewed-on: http://openocd.zylin.com/2835
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
tcl/board/netgear-wg102.cfg [new file with mode: 0644]
tcl/target/atheros_ar2313.cfg [new file with mode: 0644]

diff --git a/tcl/board/netgear-wg102.cfg b/tcl/board/netgear-wg102.cfg
new file mode 100644 (file)
index 0000000..232d2e4
--- /dev/null
@@ -0,0 +1,35 @@
+source [find target/atheros_ar2313.cfg]
+
+reset_config trst_and_srst
+
+$_TARGETNAME configure -event reset-init {
+       mips32 cp0 12 0 0x10400000
+
+       # configure sdram controller
+       mww 0xb8300004 0x0e03
+       sleep 100
+       mww 0xb8300004 0x0e01
+       mww 0xb8300008 0x10
+       sleep 500
+       mww 0xb8300004 0x0e02
+
+       mww 0xb8300000 0x6c0088
+       mww 0xb8300008 0x57e
+       mww 0xb8300004 0x0e00
+       mww 0xb8300004 0xb00
+
+       # configure flash
+       #                 0x00000001 - 0x01 << FLASHCTL_IDCY_S
+       #                 0x000000e0 - 0x07 << FLASHCTL_WST1_S
+       # FLASHCTL_RBLE   0x00000400 - Read byte lane enable
+       #                 0x00003800 - 0x07 << FLASHCTL_WST2_S
+       # FLASHCTL_AC_8M  0x00060000 - Size of flash
+       # FLASHCTL_E      0x00080000 - Flash bank enable (added)
+       # FLASHCTL_WP     0x04000000 - write protect. If used, CFI mode wont work!!
+       # FLASHCTL_MWx16  0x10000000 - 16bit mode. Do not use it!!
+       # FLASHCTL_MWx8   0x00000000 - 8bit mode.
+       mww 0xb8400000 0x000d3ce1
+}
+
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0xbe000000 0x00400000 1 1 $_TARGETNAME x16_as_x8
diff --git a/tcl/target/atheros_ar2313.cfg b/tcl/target/atheros_ar2313.cfg
new file mode 100644 (file)
index 0000000..0966c6c
--- /dev/null
@@ -0,0 +1,16 @@
+if { [info exists CHIPNAME] } {
+       set _CHIPNAME $_CHIPNAME
+} else {
+       set _CHIPNAME ar2313
+}
+
+if { [info exists CPUTAPID] } {
+       set _CPUTAPID $CPUTAPID
+} else {
+       set _CPUTAPID 0x00000001
+}
+
+jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)