作者bpupil (蓝瞳)
看板LinuxDev
标题[问题] PA与VA的问题
时间Fri Feb 18 02:20:16 2011
在6410的patform中, PA与VA的问题....
#define S3C_ADDR_BASE (0xF4000000)
#define S3C_VA_IRQ S3C_ADDR(0x00000000) /* irq controller(s) */
#define S3C_VA_SYS S3C_ADDR(0x00100000) /* system control */
#define S3C_VA_MEM S3C_ADDR(0x00200000) /* memory control */
#define S3C_VA_TIMER S3C_ADDR(0x00300000) /* timer block */
#define S3C_VA_WATCHDOG S3C_ADDR(0x00400000) /* watchdog */
#define S3C_VA_UART S3C_ADDR(0x01000000) /* UART */
#define S3C_VA_LCD S3C_ADDR(0x01100000) /* LCD */
#define S3C_ADDR_CPU(x) S3C_ADDR(0x00500000 + (x))
在以上定义中,
1. #define S3C_ADDR_BASE (0xF4000000), 0xF4000000为何定义这里,如何告知kernel呢??
2. S3C_VA_IRQ, S3C_VA_SYS, S3C_VA_MEM....这些相对的offset是怎麽定义出来的呢??
谢谢....
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.160.105.88
1F:→ mayasky:offset是硬体设计就决定了.他们在mem map中offset就这样 02/18 03:17
2F:→ mayasky:0xF4000000 没有为什麽..是他们规划的.每个产品规划不同 02/18 03:18
3F:推 alongalone:你需要的是datasheet 02/18 08:53
4F:推 harlanstars:同意+1. datasheet 比较重要 02/19 01:02
5F:推 TroyLee:应该说..你需要的是 Reference Manual 和 Programming Man 02/19 23:41
6F:→ TroyLee:ual... 上面都有 02/19 23:42