Chinaunix首页 | 论坛 | 博客
  • 博客访问: 387645
  • 博文数量: 165
  • 博客积分: 436
  • 博客等级: 下士
  • 技术积分: 887
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-10 02:49
文章分类

全部博文(165)

文章存档

2012年(95)

2011年(70)

分类:

2011-11-20 18:50:59

原文地址:omap hardware. 作者:weiqiangshen

omap_4430sdp_map_io --> omap44xx_map_common_io --> _omap2_map_common_io -->omap2_check_revision





  1. omap4_check_revision();
  2. omap_chip.oc |= CHIP_IS_OMAP4430ES2_3;

我们系统用的芯片是”OMAP4430 ES2.3 type(GP)“



omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP44XX)










1) int omap_hwmod_init(struct omap_hwmod **ohs)

  1. /**
  2.  * omap_hwmod_init - init omap_hwmod code and register hwmods
  3.  * @ohs: pointer to an array of omap_hwmods to register
  4.  *
  5.  * Intended to be called early in boot before the clock framework is
  6.  * initialized. If @ohs is not null, will register all omap_hwmods
  7.  * listed in @ohs that are valid for this chip. Returns -EINVAL if
  8.  * omap_hwmod_init() has already been called or 0 otherwise.
  9.  */
  10. int omap_hwmod_init(struct omap_hwmod **ohs)
  11. {
  12.     struct omap_hwmod *oh;
  13.     int r;

  14.     if (inited)
  15.         return -EINVAL;

  16.     inited = 1;

  17.     if (!ohs)
  18.         return 0;

  19.     oh = *ohs;
  20.     while (oh) {
  21.         if (omap_chip_is(oh->omap_chip)) {
  22.             r = omap_hwmod_register(oh);
  23.             WARN(r, "omap_hwmod: %s: omap_hwmod_register returned "
  24.              "%d\n", oh->name, r);
  25.         }
  26.         oh = *++ohs;
  27.     }

  28.     return 0;
  29. }





















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