国产毛片a精品毛-国产毛片黄片-国产毛片久久国产-国产毛片久久精品-青娱乐极品在线-青娱乐精品

查看: 5059|回復: 0
打印 上一主題 下一主題

關于ARM CORTEX-A8 S5PV210使用的內存相關配置參考

[復制鏈接]
跳轉到指定樓層
樓主
發表于 2014-1-16 12:00:12 | 只看該作者 |只看大圖 回帖獎勵 |倒序瀏覽 |閱讀模式
關鍵詞: ARM , CORTEX-A8 , S5PV210 , 內存
S5PV210有兩個獨立的DRAM控制器,分別是DMC0和DMC1,其中,DMC0最大支持512MByte,DMC1最大支持1GByte,而 DMC0和DMC1又同時支持兩個片選CS0和CS1。S5PV210的內存模塊相比2440和6410來講要更加復雜一些,要想正確的配置 S5PV210的內存,應該仔細閱讀芯片手冊相關部分,在配置參數時也應該適當的閱讀下內存芯片的手冊。
在技術手冊里,S5PV210給出了以下幾個解決方案:
關于地址映射方面:S5PV210DMC64102440DMC有個重要區別,S5PV210可以控制內存地址映射,DMC0的地址空間為 0x2000,0000~0x3fff,ffffDMC1的地址空間為0x4000,0000~0x7fff,ffffDMC可以通過配置寄存器來使 內存芯片映射到其內存段內的適當位置。這個配置在MEMCONFIG寄存器中。
如果設置chip_base0x20
(1)我們掛載的內存為128M,那么這個chip_mask應該設置為0xF8
(2)我們掛載256M內存時,chip_mask應該設置為0xF0
(3)我們掛載512M時,chip_mask應該設置為0xE0
(4)我們掛載1GB內存時,chip_mask就應該設置為0xC0
DMC0為例,當DMC0接收到來自AXI0x2000,0000~0x3fff,ffff內的地址時,會作如下處理:
(1)AXI地址的高8位與chip_mask相與得到結果,記為X
(2)X分別與MEMCONFIG0MEMCONFIG1chip_base相比較,如果相等,則打開相應的片選。
假如掛載的內存為128M,且CS0CS1上分別掛了一片,那么128M=128*1024*1024=0x8000000,則128M內存的偏 移范圍應該是0x0000,0000~0x07ff,ffff,高位剩余5位,那么,我們把MEMCONFIG0chip_base設置為 0x20chip_mask設置為0xF8,為了保持內存連續,則需要將MEMCONFIG1chip_base設置為0x28chip_mask 設置為0xF8,當AXI發來的地址為0x23xx,xxxx時,0x23&0xF8得到0x20,所以,會打開片選CS0,當AXI發來的地址 為0x28xx,xxxx時,0x28&0xF8得到0x28,所以,會打開片選CS1,依此類推。
特別的,當載在的內存芯片為8bank8bank內存芯片一般為14/15行地址,10列地址,即容量一般為512M或者1G)時,由于CS1bank2引腳,為了保持CS0時鐘處于片選狀態,對于512M內存來講需要將chip_mask設置為0xE0,這是因為 512M=512*1024*1024=0x2000,0000,也就是說,512M內存的偏移應該為0x0000,0000~0x1fff,ffff, 所以高位剩余3位,即0xE0,當然了,如果內存為1G=1024*1024*1024=0x4000,0000,即偏移為 0x0000,0000~0x3fff,ffff,高位剩余2為,故設置chip_mask0xC0。這樣,就會計算偏移這兩個值了。
另外在附上s5pv210(飛凌ok210開發板)的內存初始化順序,芯片手冊上給出了常用內存類型的初始化序列,一般如果使用DDR2的內存的話,可以按照如下順序進行初始化:
Initialization sequence for DDR2 memory type:
1.To provide stable power for controller and memory device, the controller must assert and hold CKE to a logic low level. Then apply stable clock. Note: XDDR2SEL should be High level to hold CKE to low.
2.Set the PhyControl0.ctrl_start_point and PhyControl0.ctrl_inc  bit-fields to correct value according to clock frequency. Set the PhyControl0.ctrl_dll_on bit-field to 1 to turn on the PHY DLL.
3.DQS Cleaning:Set the PhyControl1.ctrl_shiftc and PhyControl1.ctrl_offsetc bit-fields to correct value  according to clock frequency and memory tAC parameters.
4. Set the PhyControl0.ctrl_start bit-field to 1.  
5. Set the ConControl. At this moment, an auto refresh counter should be off.
6. Set the MemControl. At this moment, all power down modes should be off.
7. Set the MemConfig0  register. If there are two external memo ry chips, set the MemConfig1 register.
8. Set the PrechConfig  and PwrdnConfig registers.
9. Set the TimingAref,  TimingRow,  TimingData and TimingPower registers according to memory AC   parameters.
10.  If QoS scheme is required, set the QosControl0~15 and QosConfig0~15 registers.
11.  Wait for the PhyStatus0.ctrl_locked  bit-fields to change to ‘1’. Check whether PHY DLL is locked.
12.  PHY DLL compensates the changes of delay amount caused by Process, Voltage and Temperature (PVT) variation during memory operation. Therefore, PHY DLL  should not be off for reliable operation. It can be off  except runs at low frequency. If off mode is used, set the PhyControl0.ctrl_force  bit-field to correct value  according to the PhyStatus0.ctrl_lock_value[9:2] bit-field to fix delay amount. Clear the  PhyControl0.ctrl_dll_on bit-field to turn off PHY DLL.
13.  Confirm whether stable clock is  issued minimum 200us after power on.
14. Issue a NOP command using the DirectCmd register to assert and to hold CKE to a logic high level.
15. Wait for minimum 400ns.
16. Issue a PALL command using the DirectCmd register.
17. Issue an  EMRS2 command using the DirectCmd register to program the operating parameters.
18. Issue an  EMRS3 command using the DirectCmd register to program the operating parameters.
19. Issue an  EMRS  command using the DirectCmd register to enable the memory DLLs.
20. Issue a MRS command using the DirectCmd register to reset the memory DLL.
21. Issue a PALL command using the DirectCmd register.
22. Issue two Auto Refresh commands using the  DirectCmd register.
23. Issue a MRS command using the DirectCmd register to program the operating parameters without resetting the memory DLL.
24. Wait for minimum 200 clock cycles.
25. Issue an  EMRS  command using the DirectCmd register to program the  operating parameters. If OCD calibration is not used, issue an EMRS  command to set OCD Calibration Default. After that, issue an  EMRS  command to exit OCD Calibration Mode  and to program the operating parameters.
26.  If there are two external memory chips, perform steps 14~25 for chip1 memory device.
27. Set the ConControl to turn on an auto refresh counter.
28. If power down modes is required, set the MemControl registers.





您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

關于我們  -  服務條款  -  使用指南  -  站點地圖  -  友情鏈接  -  聯系我們
電子工程網 © 版權所有   京ICP備16069177號 | 京公網安備11010502021702
快速回復 返回頂部 返回列表
主站蜘蛛池模板: 国产精品高清久久久久久久 | 成人激情站 | 自拍偷拍第 | 国产精品动漫视频网站 | 花季传媒v3.037 | 色婷婷综合缴情综六月 | 欧洲欧美成人免费大片 | 国产毛片a | 国产亚洲欧美日韩在线观看不卡 | 天天舔日日干 | 久久精品国产亚洲综合色 | 女老师1| 国产人看人摸人啪视 | 欧美日韩久久 | 久久久久9 | 免费jjzz在线播放国产 | 亚洲欧美日韩在线一区二区三区 | 色老头综合免费视频 | 欧美一级特黄视频 | 青青青国产高清在线观看视频 | 色视频免费在线观看 | 欧美日韩中文在线视频 | 最近高清免费观看日本 | 自拍视频在线观看 | 香蕉视频首页 | 日本不卡在线观看免费v | 亚洲毛片免费看 | 成人欧美一区二区三区视频xxx | 777毛片免费 | 岬奈一区二区中文字幕 | 日韩欧美一区二区三区不卡在线 | 偷偷狠狠的日日日日 | 国产精品综合视频 | 亚洲综合激情六月婷婷在线观看 | 最新日本免费一区二区三区中文 | 女性爽爽影院免费观看麻豆 | 成年大片免费视频播放二级 | 黄色片久久久 | 黑人巨大人精品欧美三区 | chinese国语对白hd麻豆 | 国产极品一区 |