tcl/target|board: add configs for Alphascale asm9260t 15/2515/3
authorOleksij Rempel <linux@rempel-privat.de>
Mon, 19 Jan 2015 15:43:14 +0000 (16:43 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Sun, 22 Feb 2015 17:57:02 +0000 (17:57 +0000)
This adds configs for Alphascale asm9260t ARM based SoC and
Evaluation Kit based on this chip.

Change-Id: Id8d3a1ef204e3ae84540c2693e3d62650ba82f73
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Reviewed-on: http://openocd.zylin.com/2515
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
tcl/board/alphascale_asm9260_ek.cfg [new file with mode: 0644]
tcl/target/alphascale_asm9260t.cfg [new file with mode: 0644]

diff --git a/tcl/board/alphascale_asm9260_ek.cfg b/tcl/board/alphascale_asm9260_ek.cfg
new file mode 100644 (file)
index 0000000..46e8a5b
--- /dev/null
@@ -0,0 +1,69 @@
+source [find target/alphascale_asm9260t.cfg]
+
+reset_config trst_and_srst
+
+$_TARGETNAME configure -event reset-init {
+       echo "Configure clock"
+       # Enable SRAM clk
+       mww 0x80040024 0x4
+       # Enable IRQ clk
+       mww 0x80040034 0x100
+       # Enable DMA0,1 clk
+       mww 0x80040024 0x600
+       # Make sysre syspll is enabled
+       mww 0x80040238 0x750
+       #CPU = PLLCLK/2
+       mww 0x8004017C 0x2
+       #SYSAHBCLK = CPUCLK/2
+       mww 0x80040180 0x2
+       # Set PLL freq to 480MHz
+       mww 0x80040100 480
+       # normally we shoul waiting here until we get 0x1 (0x80040104)&0x1)==0x0)
+       sleep 100
+
+       # select PLL as main source
+       mww 0x80040120 0x1
+       # disable and enble main clk to update changes?
+       mww 0x80040124 0x0
+       mww 0x80040124 0x1
+
+       echo "Configure memory"
+       #enable EMI CLK
+       mww 0x80040024 0x40
+
+       # configure memory controller for internal SRAM
+       mww 0x80700000 0x1188
+       # change default emi clk delay
+       mww 0x8004034C 0xA0503
+       # make sure chip_select_register2_low has correct value (why?)
+       mww 0x8070001c 0x20000000
+       # set type to sdram and size to 32MB
+       mww 0x8070005c 0xa
+       # configure internal SDRAM timing
+       mww 0x80700004 0x024996d9
+       # configure Static Memory timing
+       mww 0x80700094 0x00542b4f
+
+       echo "Configure uart4"
+       # enable pinctrl clk
+       mww 0x80040024 0x2000000
+       # mux GPIO3_0 and GPIO3_1 to UART4
+       mww 0x80044060 0x2
+       mww 0x80044064 0x2
+       # configure UART4CLKDIV
+       mww 0x800401a8 0x1
+       # enable uart4 clk
+       mww 0x80040024 0x8000
+       # clear softrst and clkgate on uart4
+       mww 0x80010008 0xC0000000
+       # set bandrate 115200 12M
+       mww 0x80010030 0x00062070
+       # enable Rx&Tx
+       mww 0x80010024 0x301
+       # clear hw control
+       mww 0x80010028 0xc000
+}
+
+$_TARGETNAME configure -work-area-phys 0x21ffe000 -work-area-virt 0xc1ffe000 -work-area-size 0x1000
+$_TARGETNAME arm7_9 fast_memory_access enable
+$_TARGETNAME arm7_9 dcc_downloads enable
diff --git a/tcl/target/alphascale_asm9260t.cfg b/tcl/target/alphascale_asm9260t.cfg
new file mode 100644 (file)
index 0000000..7892ea2
--- /dev/null
@@ -0,0 +1,25 @@
+if { [info exists CHIPNAME] } {
+       set _CHIPNAME $_CHIPNAME
+} else {
+       set _CHIPNAME asm9260t
+}
+
+if { [info exists ENDIAN] } {
+       set _ENDIAN $ENDIAN
+} else {
+       set _ENDIAN little
+}
+
+if { [info exists CPUTAPID] } {
+       set _CPUTAPID $CPUTAPID
+} else {
+       set _CPUTAPID 0x079264F3
+}
+
+# And srst_pulls_trst by chip design.
+reset_config srst_pulls_trst
+
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME arm926ejs -endian $_ENDIAN -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)