Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1249991
  • 博文数量: 479
  • 博客积分: 12240
  • 博客等级: 上将
  • 技术积分: 4999
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-24 17:12
文章分类

全部博文(479)

文章存档

2014年(1)

2013年(1)

2012年(1)

2011年(95)

2010年(177)

2009年(167)

2008年(16)

2007年(21)

分类: LINUX

2009-11-18 14:52:31

OMAP3平台Linux中总线设置

先看arch/arm/plat-omap/include/mach/gpmc.h文件:

struct gpmc_timings {
        /* Minimum clock period for synchronous mode */
        u16 sync_clk;

        /* Chip-select signal timings corresponding to GPMC_CS_CONFIG2 */
        u16 cs_on; /* Assertion time */
        u16 cs_rd_off; /* Read deassertion time */
        u16 cs_wr_off; /* Write deassertion time */

        /* ADV signal timings corresponding to GPMC_CONFIG3 */
        u16 adv_on; /* Assertion time */
        u16 adv_rd_off; /* Read deassertion time */
        u16 adv_wr_off; /* Write deassertion time */

        /* WE signals timings corresponding to GPMC_CONFIG4 */
        u16 we_on; /* WE assertion time */
        u16 we_off; /* WE deassertion time */

        /* OE signals timings corresponding to GPMC_CONFIG4 */
        u16 oe_on; /* OE assertion time */
        u16 oe_off; /* OE deassertion time */

        /* Access time and cycle time timings corresponding to GPMC_CONFIG5 */
        u16 page_burst_access; /* Multiple access word delay */
        u16 access; /* Start-cycle to first data valid delay */
        u16 rd_cycle; /* Total read cycle time */
        u16 wr_cycle; /* Total write cycle time */
        /* The following are only on OMAP3430 */
        u16 wr_access; /* WRACCESSTIME */
        u16 wr_data_mux_bus; /* WRDATAONADMUXBUS */
};



实际操作代码:

 gpmc_cs_write_reg(cs, GPMC_CS_CONFIG3, val);
 val = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG4);




阅读(1528) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~