找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3840|回复: 2

谁能讲解下NVRAM中SDRAM几个参数的设置原理

[复制链接]
谁能讲解下NVRAM中SDRAM几个参数的设置原理
他们都是指的什么,和什么有关系
BCM3302 Memory Controller Configuration
This pages focus on memory controller configuration values, stored in the nvram and used for BCM3302 memory controller configuration found in the BCM4712, BCM53xx series of SoC and BCM5836 CPU

There are several references, which was used to make this summary page, including GPL source code tarballs, distributed by Linksys and ASUS and CFE distributed by Broadcom.

Memory configuration is perfromed by code, assembled from shared/sbsdram.S file. Depending on version it's either uses embedded nvram header values (found in PMON/CFE loader at offset 0x100 or 0x400) or values, from current nvram. These values are generated from sdram_* values either during bootloader flashing or via nvram update using nvram commit command.

The exact sdram configuration variables are: sdram_init, sdram_config, sdram_refresh and sdram_ncdl. They are used as following:

sdram_init determines the memory controller operation mode, i.e. DDR/SDR cycles, 16/32 bit memory interface, number of bits in CAS signal, etc.: Field Name Description
0 MemType Memory type in use.
0: SDR SDRAM
1: DDR SDRAM  
1 16BitMem Memory interface.
0: 32-bit interface
1: 16-bit interface  
4:2 ColWidth Column width in use.
000: 8-bit column
010: 9-bit column
100: 10-bit column

13 Clock Clock source?
0: External clock
1: Internal clock  

sdram_config is used to initialize the mode register (during MRS cycle) of the SDRAM, it contains things defined by JEDEC: burst type, burst length, CAS latency; Field Name Description
0:2 BurstLength Burst Length value.
000: 1
001: 2
010: 4
011: 8
111: full page  
3 BurstType Burst Type value.
0: Sequential
1: Interleave  
6:4 CASLatency CAS Latency.
001: 1
010: 2
011: 3
101: 1.5
110: 2.5
111: 3.5  

sdram_refresh seems to be leaved for compatibility, and not used anymore;
sdram_ncdl contains various memory controller timing information, this could be either 0, which indicates to perform auto-tuning during memory initialzation (it will be updated to real value once initialization completed by CFE) or predefined value.
Sample memory configurations which could be found in the sources provided by Broadcom:

Size Type Organization sdram_init bits RAS CAS Technology
8MB SDR 4 Meg x 16 0x0002 000 1 0 A0-A11 A0-A7 64Mbit
16MB SDR 4 Meg x 16 x 2 0x0000 000 0 0 A0-A11 A0-A7 64Mbit
16MB SDR 8 Meg x 16 0x000a 010 1 0 A0-A11 A0-A8 128Mbit
32MB DDR 16 Meg x 16 0x000b 010 1 1 A0-A12 A0-A8 256Mbit
32MB SDR 16 Meg x 16 0x000a 010 1 0 A0-A12 A0-A8 256Mbit
32MB SDR 8 Meg x 16 x 2 0x0008 010 0 0 A0-A11 A0-A8 128Mbit
64MB DDR 16 Meg x 16 x 2 0x0009 010 0 1 A0-A12 A0-A8 256Mbit
64MB SDR 16 Meg x 16 x 2 0x0008 010 0 0 A0-A12 A0-A8 256Mbit
128MB DDR 32 Meg x 16 x 2 0x0011 100 0 1 A0-A12 A0-A9 512Mbit
128MB SDR 32 Meg x 16 x 2 0x0010 100 0 0 A0-A12 A0-A9 512Mbit
256MB DDR 64 Meg x 16 x 2 0x0011 100 0 1 A0-A13 A0-A9 1Gbit
回复

使用道具 举报

 楼主| | 显示全部楼层
非常感谢哦
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-8 20:57

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表