QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1553|回复: 1

求助:关于USB的问题

[复制链接]
发表于 2005-9-15 17:52:55 | 显示全部楼层 |阅读模式
/* here see um_s3c4510b.pdf 5-4 */
/*
NON-CACHEABLE AREA CONTROL BIT
Although the cache affects the entire system memory, it is sometimes necessary to define non-cacheable areas
when the consistency of data stored in memory and the cache must be ensured. To support this, the S3C4510B
provides a non-cacheable area control bit in the address field, ADDR[26].
If ADDR[26] in the ROM/SRAM, flash memory, DRAM, or external I/O bank's access address is "0", then the
accessed data is cacheable. If the ADDR[26] value is "1", the accessed data is non-cacheable.
*/
/*
Special thanks to gongxufei <[email protected]> for this great contribution
*/
//  for USB DATA and COMMAND, set addr[26] = 1 so the accessed data is non-cacheable
#define D12_DATA  0x07fd0000 //D12 use nECS0 as the chip selection
#define D12_COMMAND 0x07fd0001

1.代码注释中提到如果ADDR[26] = 1,那么访问数据时就是非缓冲方式,请问ADDR[26]是什么?
2.D12_DATA 和D12_COMMAND 的地址是怎么确定的?(没有看到相关寄存器的设置)
发表于 2005-9-19 16:43:19 | 显示全部楼层
ADDR[26]   就是 地址  0x07fd0000  的第 26 bit , 也就是 0x07fd 中 7(0x111) 的第一个1 bit。

这个地址的确定可以参考看一下  
精华: Learn-lumit-Step-19 : 字符液晶显示实验
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=132068&highlight=necs1

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=130893&highlight=necs1
USB (nECS0): 0x03fd0000
LCD (nECS1): 0x03fd4000
NandFlash (nECS2): 0x03fd8000
每一个 extern IO Bank 长度是 0x4000 。
至于 0x7FD 和 0x3FD 的关系,可以看看 chw75 的帖子:
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&p=4490082&highlight=#4490082
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-23 20:52 , Processed in 0.110702 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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