
Hardware Description
TWR-P1025 Hardware User Guide, Rev. 0
12
Freescale Semiconductor
# DDR_SDRAM_MODE
#reg ${DDR_CONT_GROUP}DDR_SDRAM_MODE = 0x40461520
reg ${DDR_CONT_GROUP}DDR_SDRAM_MODE = 0x80461320
# DDR_SDRAM_MODE_2
#reg ${DDR_CONT_GROUP}DDR_SDRAM_MODE_2 = 0x8000c000
reg ${DDR_CONT_GROUP}DDR_SDRAM_MODE_2 = 0x00008000
# DDR_SDRAM_MD_CNTL
#reg ${DDR_CONT_GROUP}DDR_SDRAM_MD_CNTL = 0x00000000
reg ${DDR_CONT_GROUP}DDR_SDRAM_MD_CNTL = 0x00000000
# DDR_SDRAM_INTERVAL
#reg ${DDR_CONT_GROUP}DDR_SDRAM_INTERVAL = 0x0c300000
reg ${DDR_CONT_GROUP}DDR_SDRAM_INTERVAL = 0x09480000
# DDR_DATA_INIT
reg ${DDR_CONT_GROUP}DDR_DATA_INIT = 0xdeadbeef
# DDR_SDRAM_CLK_CNTL
reg ${DDR_CONT_GROUP}DDR_SDRAM_CLK_CNTL = 0x03000000
# TIMING_CFG_4
reg ${DDR_CONT_GROUP}TIMING_CFG_4 = 0x00220001
# TIMING_CFG_5
reg ${DDR_CONT_GROUP}TIMING_CFG_5 = 0x03402400
# DDR_ZQ_CNTL
reg ${DDR_CONT_GROUP}DDR_ZQ_CNTL = 0x89080600
# DDR_WRLVL_CNTL
#reg ${DDR_CONT_GROUP}DDR_WRLVL_CNTL = 0x8655a608
reg ${DDR_CONT_GROUP}DDR_WRLVL_CNTL = 0x8655a608
# DDR_CDR_1
reg ${DDR_CONT_GROUP}DDRCDR_1 = 0x00000000
# DDR_CDR_2
reg ${DDR_CONT_GROUP}DDRCDR_2 = 0x00000000
#delay before enable
wait 500
# DDR_SDRAM_CFG
reg ${DDR_CONT_GROUP}DDR_SDRAM_CFG = 0xc70c0000
#wait for DRAM data initialization
wait 2000
3.15
GPIO & Interrupts
Table 3-10
lists external interrupt sources of P1025.