- 论坛徽章:
- 0
|
有个问题困扰我很多天了,希望大家能够帮忙解答。
在u-boot \include\configs下的smdk6410.h,定义了很多宏,比如:
#define DMC1_CHIP0_CFG 0x150FC
这个明显是某个寄存器(有关dram的,从宏的命名可以看出)的配置值。但我想知道,为什么要设定这样的值:0x150FC?这个值的意义在哪里?
如果能够找到这个宏对应的具体寄存器,那么可以通过查看pdf手册得到具体的意义,但是如何找到对应的寄存器呢?
我通过source insight查找了这个宏,在整个文件夹中只出现了:
---- DMC1_CHIP0_CFG Matches (7 in 4 files) ----
Mdirac3.h (d:\uboot1.1.16_256m-for36---v1.01\include):#define DMC1_CHIP0_CFG 0x140fc //0x4000_0000 ~ 0x43ff_ffff ( 64MB)
Smdk6400.h (d:\uboot1.1.16_256m-for36---v1.01\include\configs):#define DMC1_CHIP0_CFG 0x150F8 //0x4000_0000 ~ 0x43ff_ffff (64MB)
Smdk6410.h (d:\uboot1.1.16_256m-for36---v1.01\include\configs)://#define DMC1_CHIP0_CFG 0x150F8
Smdk6410.h (d:\uboot1.1.16_256m-for36---v1.01\include\configs):#define DMC1_CHIP0_CFG 0x150F0
Smdk6410.h (d:\uboot1.1.16_256m-for36---v1.01\include\configs):#define DMC1_CHIP0_CFG 0x150FC
Smdk6430.h (d:\uboot1.1.16_256m-for36---v1.01\include\configs):#define DMC1_CHIP0_CFG 0x150F8
Smdk6430.h (d:\uboot1.1.16_256m-for36---v1.01\include\configs):#define DMC1_CHIP0_CFG 0x150FC
为何只有定义而没有引用呢???uboot究竟在哪里配置各个寄存器? |
|