riscv-openocd/tcl/board/tx27_stk5.cfg

65 lines
1.5 KiB
INI
Raw Permalink Normal View History

# KaRo TX27 CPU Module on a StarterkitV base board
#
# http://www.karo-electronics.com/tx27.html
#
source [find target/imx27.cfg]
$_TARGETNAME configure -event gdb-attach { reset init }
$_TARGETNAME configure -event reset-init { tx27_init }
proc tx27_init { } {
# This setup puts RAM at 0xA0000000
# init_aipi (AIPI1.PSR0, AIPI2.PSR0, AIPI1.PSR1 and AIPI2.PSR1)
mww 0x10000000 0x20040304
mww 0x10020000 0x00000000
mww 0x10000004 0xDFFBFCFB
mww 0x10020004 0xFFFFFFFF
sleep 100
#init_max ( PORT0.MPR, #PORT0.AMPR, #PORT1.MPR, #PORT1.AMPR, #PORT2.MPR, #PORT2.AMPR)
mww 0x1003F000 0x00302145
mww 0x1003F004 0x00302145
mww 0x1003F100 0x00302145
mww 0x1003F104 0x00302145
mww 0x1003F200 0x00302145
mww 0x1003F204 0x00302145
#init_drive_strength (#DSCR3, #DSCR5, #DSCR6, #DSCR7, #DSCR8 )
mww 0x10027828 0x55555555
mww 0x10027830 0x55555555
mww 0x10027834 0x55555555
mww 0x10027838 0x00005005
mww 0x1002783C 0x15555555
#init_sdram_speed
#mww 0xD8001010 0x00000004
mww 0xD8001010 0x00000024
mww 0xD8001004 0x00395729
mww 0xD8001000 0x92120000
mww 0xA0000400 0x0
mww 0xD8001000 0xA2120000
mww 0xA0000000 0x0
mww 0xA0000000 0x0
mww 0xD8001000 0xB2120000
mdb 0xA0000000
mdb 0xA0000033
mww 0xD8001000 0x82126485
# =============================================
# Sync mode (AHB Clk = 133MHz ; BCLK = 44.3MHz)
# =============================================
mww 0xD8002000 0x23524E80
mww 0xD8002004 0x10000D03
mww 0xD8002008 0x00720900
nand probe 0
}
nand device tx27.nand mxc $_TARGETNAME mx27 hwecc biswap