⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setupmems.bak

📁 QUALCOMM JNAND DRIVER
💻 BAK
字号:
;****************************************************************************
;**           SetupMems.CMM                                                **
;**           This script sets up MSM6250's registers and memories for     **
;**           software load and debug                                      **
;**                                                                        **
;**           Changes:                                                     **
;**           05-12-03   Changes for MSM6250                               **
;**           05-01-02   First version                                     **
;****************************************************************************
;



;--------------------------------------------------------------------------
; ARM clock controller registers
;--------------------------------------------------------------------------
; MICROPROCESSOR CLOCK CONFIGURATION
; After RESET, uP clock should default to TCXO/1. 
; Clocks are not initialized here since the default values should work
; properly. MSM6250 defaults to all clocks off, so turn them on. 
; all clock regimes except ETM is turned on.
d.out &MSM_CLK_ENA0 %LONG 0xFAD7DB96
d.out &MSM_CLK_ENA1 %LONG 0x00000007

; Now setup GPIO function selects 
;
;
; GPIO_FUNC_SEL_0    - no alternate function
d.out &GPIO_FUNC_SEL0 %LONG 0x00000000		

; GPIO_FUNC_SEL_1    - gpio[38:33] alternate fct.
d.out &GPIO_FUNC_SEL1 %LONG 0x0000007E

; GPIO_FUNC_SEL_4    - gpio[67:79] alternate fct.
d.out &GPIO_FUNC_SEL4 %LONG 0x00001FFF

; GPIO_ALT_FUNC_SEL  - default value
d.out &GPIO_ALT_FUNC_SEL %LONG 0x00000000

; Now setup EBI2 -- the same for all configurations.
;
;
do ..\..\build\ms\SetupEBI2.cmm

;
; now, for EBI1, setup either the MPMC or the XMEMC memories
;
IF &SETUP_MPMC_SDRAM==1
  (  
  print "   SetupMems: setting up ARM PL712 memory controller and memories"
  do ..\..\build\ms\SetupMPMC
  )
ELSE IF &SETUP_XMEMC==1  
  (
  print "   SetupMems: setting up XMEMC controller and memories"
  do ..\..\build\ms\SetupXMEMC
  )  
ELSE // neither memory controller was selected
  (
  PRINT "SetupMems: ERROR: no memory controller was selected"
  )  
;

ENDDO

⌨️ 快捷键说明

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