21 static char *omap2_pmu_oh_names[] = {
"mpu"};
22 static char *omap3_pmu_oh_names[] = {
"mpu",
"debugss"};
23 static char *omap4430_pmu_oh_names[] = {
"l3_main_3",
"l3_instr",
"debugss"};
35 static int __init omap2_init_pmu(
unsigned oh_num,
char *oh_names[])
39 char *dev_name =
"arm-pmu";
41 if ((!oh_num) || (oh_num > 3))
44 for (i = 0; i < oh_num; i++) {
47 pr_err(
"Could not look up %s hwmod\n", oh_names[i]);
54 WARN(IS_ERR(omap_pmu_dev),
"Can't build omap_device for %s.\n",
57 if (IS_ERR(omap_pmu_dev))
58 return PTR_ERR(omap_pmu_dev);
65 static int __init omap_init_pmu(
void)
81 oh_names = omap4430_pmu_oh_names;
83 pr_info(
"ARM PMU: not yet supported on OMAP4430 due to missing CTI driver\n");
87 oh_names = omap3_pmu_oh_names;
90 oh_names = omap2_pmu_oh_names;
93 return omap2_init_pmu(oh_num, oh_names);