setupburstpsram.cmm

来自「QUALCOMM JNAND DRIVER」· CMM 代码 · 共 37 行

CMM
37
字号
;==========================================================================
;This .cmm file is used to configure burst mode PSRAM
;By: tgold 11/10/03
;==========================================================================

; This script does not do a full msm initialization, but simlpy configures
; the PSRAM into burst mode, and reconfigure the EBI1 burst appropriately.  
; Its intended use is to reconfigure the EBI bus if it is deteremined that 
; the RAM on EBI1_CS1 was not initialized correctly during the normal msm initialization.  


;EBI1_MPMC_STDY_SEL, configures static or dynamic memory on RAMCS2 and RAMCS3
d.out &EBI1_MPMC_STDY_SEL %byte 0x00

d.out &EBI1_PSRAM_CRE %byte 0x00  

d.out &EBI1_CFG %long 0x00C002C0  ; Configure EBI1_CFG register

;EBI1_CS1_CFG0
d.out &EBI1_CS1_CFG0 %long 0x0033FC00; 

;EBI1_CS1_CFG1
d.out &EBI1_CS1_CFG1 %long 0x0

;EBI1_PSRAM_CRE, controls the PSRAM CRE pin for synchronous Micron PSRAM
d.out &EBI1_PSRAM_CRE %byte 0x01  ;CRE has to be high to program the burst config register.
d.out 0x08103286 %WORD 0x0        ;see Micron PSRAM data sheet "MT45W4MW16BFB"
d.out &EBI1_PSRAM_CRE %byte 0x00  ;Make CRE low to finish configuration

;EBI1_CS1_CFG0
d.out &EBI1_CS1_CFG0 %long 0x21213300 ; burst settings for EBI1

;EBI1_CS1_CFG1
d.out &EBI1_CS1_CFG1 %long 0x2c
 
ENDDO

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?