;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix ; ; Supported devices : Freescale iMX31, ARM1136 ; Board : Dave, Qong ; ; Revision : 1.2 ; ; Date : May 12, 2010 ; ; The file is delivered "AS IS" without warranty or condition of any ; kind, either express, implied or statutory. This includes without ; limitation any warranty or condition with respect to merchantability or ; fitness for any particular purpose, or against the infringements of ; intellectual property rights of others. ; ;-------------------------------------------------------------------------- ;-------------------------------------------------------------------------- ; The following section contains licenses that are required for PEEDI to ; operate. These licenses must be filled before using this file. ; The [LICENSE] section may contain license keys for one or more PEEDIs. ; ; Example: ; [LICENSE] ; KEY = UPDATE_24MAY2010, 1111-1111-1111-1 ; KEY = XXXXX, 2222-2222-2222-2 ; ; The [LICENSE] section may point to an external file which contains ; license keys for one or more PEEDIs. The external file must include ; the text [LICENSE] followed by all keys. ; ; Example: ; [LICENSE] ; FILE = tftp://192.168.3.1/license.txt ; or ; FILE=eep:license.txt ; or ; FILE = ftp://user:password@192.168.3.1/license.txt ; ; ; PEEDI is shipped with license keys stored in "eep:license.txt" and ; printed on a label on the bottom side of PEEDI. ; [LICENSE] FILE=eep:license.txt ;-------------------------------------------------------------------------- [DEBUGGER] PROTOCOL = gdb_remote ; gdb remote REMOTE_PORT = 2000 ; TCP/IP port [TARGET] PLATFORM = ARM11 ; platform is ARM11 [PLATFORM_ARM11] JTAG_CHAIN = 5,4,5,4 ; list of IR lenght of all TAP controllers in JTAG chain JTAG_CLOCK = 5, 10000 ; JTAG Clock in [kHz] - 10kHz jtag clock for init operations and 10MHz for normal work TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 10 ; lenght of RESET pulse in ms; 0 means no RESET CORE = ARM1136, 2 ; TAP is ARM7TDMI CPU CORE0_BREAKMODE = soft ; breakpoint mode WAKEUP_TIME = 0 CORE0_STARTUP_MODE = RESET CORE0_INIT = INIT_MX31 ; init section for the CPU CORE0_FLASH0 = FLASH_UBOOT ; NOR flash section parameters CORE0_FLASH1 = FLASH_KERNEL ; NAND flash section parameters CORE0_ENDIAN = LITTLE ; core is little endian ;CORE0_WORKSPACE_ADDR = 0x80000000 ; in DRAM, start address of workspace for flash programmer CORE0_WORKSPACE_ADDR = 0x1FFFC000 ; in SRAM CORE0_WORKSPACE_LEN = 0x4000 ; length of workspace in bytes ;CORE0_VECTOR_CATCH_MASK = 0xFF ; Default path to be used if only a file name (without the full path) is ; provided to a PEEDI command or for the FILE parameter in the Flash sections ; Examples: ; In a console: ; "flash prog tftp://192.168.3.1/image.elf" ; is equal to ; "flash prog image.elf" ; ; In a Flash Profile: ; FILE="tftp://192.168.3.1/image.bin", BIN, 0 ; is equal to ; FILE="image.bin", BIN, 0 ; CORE0_PATH = "tftp://192.168.3.1" ;CORE0_PATH = "card://" CORE0_FILE = "arm11.bin", 0xA0000000 [INIT_MX31] ; Enable Display Interface in IPU mem write 0x53FC0000 0x040 ; CCM clock control module setup ; FPM-disable, PLL reference clock = CKIH, MCU PLL enabled, MCUPLL MCU clock domain source ; clock setup 399MHz - 26MHz input, PD=1,MFI=7, MFN=27, MFD=40 mem write 0x53F80000 0x074B0BF5 wait 10 mem write 0x53F80000 0x074B0BFD mem write 0x53F80000 0x074B0B7D mem write 0x53F80004 0xFF871650 mem write 0x53F80010 0x00331C23 mem write 0x53F80018 0x04043001 wait 10 clock normal ; remove this when INIT used for multicore mem write 0x43FAC008 0x2000 mem write 0x43FAC0D0 0x03030112 mem write 0x43FAC26C 0 ; SDCLK mem write 0x43FAC270 0 ; CAS mem write 0x43FAC274 0 ; RAS mem write 0x43FAC27C 0x1000 ; CS2 (CSD0) mem write 0x43FAC284 0 ; DQM3 mem write 0x43FAC288 0 ; DQM2, DQM1, DQM0, SD31-SD0, A25-A0, MA10 (0x288..0x2DC) mem write 0x43FAC28C 0 mem write 0x43FAC290 0 mem write 0x43FAC294 0 mem write 0x43FAC298 0 mem write 0x43FAC29C 0 mem write 0x43FAC2A0 0 mem write 0x43FAC2A4 0 mem write 0x43FAC2A8 0 mem write 0x43FAC2AC 0 mem write 0x43FAC2B0 0 mem write 0x43FAC2B4 0 mem write 0x43FAC2B8 0 mem write 0x43FAC2BC 0 mem write 0x43FAC2C0 0 mem write 0x43FAC2C4 0 mem write 0x43FAC2C8 0 mem write 0x43FAC2CC 0 mem write 0x43FAC2D0 0 mem write 0x43FAC2D4 0 mem write 0x43FAC2D8 0 mem write 0x43FAC2DC 0 ; Start 16 bit NorFlash Initialization on CS0 mem write 0xb8002000 0x00001E00 mem write 0xb8002004 0xA0000D41 mem write 0xB8002008 0x00205000 ; 7.5ns delay between CE and WE ; NAND Flash mem write 0xB8002030 0x00004f00 ; CSCR_U(3) mem write 0xB8002034 0x20013b31 ; CSCR_L(3) mem write 0xB8002038 0x00020800 ; CSCR_A(3) ; SDRAM initialization ; -------------------- mem write 0xB8001010 0x00000004 ; configure the ESDRAM configuration register ESDCFG0. mem write 0xB8001004 0x006AC73A ; load ESDRAM control register 0 ESDCTL0 mem write 0xB8001000 0x92100000 mem write 0x80000f00 0x12344321 ; load ESDRAM control register 0 ESDCTL0 mem write 0xB8001000 0xa2100000 mem write 0x80000000 0x12344321 mem write 0x80000000 0x12344321 ; load ESDRAM control register 0 ESDCTL0 mem write 0xB8001000 0xb2100000 mem write8 0x80000033 0xDA mem write8 0x81000000 0xFF ; load ESDRAM control register 0 ESDCTL0 mem write 0xB8001000 0x82126080 mem write 0x80000000 0xDEADBEEF ; Rest Delay Line Measurement for DDR mem write 0xB8001010 0x0000000C mem read 0x80000000 [FLASH_UBOOT] CHIP = S29GL01GP ; flash chip ACCESS_METHOD = AGENT ; program method CHECK_ID = YES ; check chip ID CHIP_WIDTH = 16 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used BASE_ADDR = 0xA0000000 ; chip is mapped at 0x1000000 FILE = "dave-uboot.bin", 0xA0000000 AUTO_ERASE = YES ; erase before program AUTO_LOCK = NO ; lock after program [FLASH_KERNEL] CHIP = S29GL01GP ; flash chip ACCESS_METHOD = AGENT ; program method CHECK_ID = YES ; check chip ID CHIP_WIDTH = 16 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used BASE_ADDR = 0xA0000000 ; chip is mapped at 0x1000000 FILE = "dave-uImage", bin, 0xA0080000 AUTO_ERASE = YES ; erase before program AUTO_LOCK = NO ; lock after program [FLASH_NAND_BOOT] CHIP = NAND_FLASH CPU = iMX31 FILE = "bootloader.bin", 0x0000000 ERASE_BAD_BLOCKS = NO OOB_INFO = IMX_ECC [FLASH_NAND_ROOTFS] CHIP = NAND_FLASH CPU = iMX31 FILE = "ftp://user:password@192.168.3.1/rootfs.jffs2", BIN, 0x420000 ERASE_BAD_BLOCKS = NO ;OOB_INFO = JFFS2 OOB_INFO = IMX_ECC [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 [TELNET] PROMPT = "qong> " ; telnet prompt ;BACKSPACE = 127 ; comment out for autodetect [DISPLAY] BRIGHTNESS = 20 ; LED indicator brightness VOLUME = 25 ; zummer volume [ACTIONS] ; user defined scripts 1 = erase 2 = prog [erase] ; erase flash flash erase [prog] ; program flash flash program