omap_4430sdp_map_io --> omap44xx_map_common_io --> _omap2_map_common_io -->omap2_check_revision
- omap4_check_revision();
- 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)
- /**
-
* omap_hwmod_init - init omap_hwmod code and register hwmods
-
* @ohs: pointer to an array of omap_hwmods to register
-
*
-
* Intended to be called early in boot before the clock framework is
-
* initialized. If @ohs is not null, will register all omap_hwmods
-
* listed in @ohs that are valid for this chip. Returns -EINVAL if
-
* omap_hwmod_init() has already been called or 0 otherwise.
-
*/
-
int omap_hwmod_init(struct omap_hwmod **ohs)
-
{
-
struct omap_hwmod *oh;
-
int r;
-
-
if (inited)
-
return -EINVAL;
-
-
inited = 1;
-
-
if (!ohs)
-
return 0;
-
-
oh = *ohs;
-
while (oh) {
-
if (omap_chip_is(oh->omap_chip)) {
-
r = omap_hwmod_register(oh);
-
WARN(r, "omap_hwmod: %s: omap_hwmod_register returned "
-
"%d\n", oh->name, r);
-
}
-
oh = *++ohs;
-
}
-
-
return 0;
-
}
阅读(1239) | 评论(1) | 转发(1) |