Chinaunix首页 | 论坛 | 博客
  • 博客访问: 655774
  • 博文数量: 516
  • 博客积分: 4119
  • 博客等级: 上校
  • 技术积分: 4288
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-30 17:29
文章分类

全部博文(516)

文章存档

2014年(4)

2013年(160)

2012年(352)

分类:

2013-01-04 17:10:26

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);




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