Hi,
While building the kernel at 2.6.37, i see this warning for omap3evm - with
omap3630:
Power Management for TI OMAP3.
sr_init: No PMIC hook to init smartreflex <-- THIS IS THE WARNING.
smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized
smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized
SmartReflex Class3 initialized
In the code, i see this comment:
/*
* sr_init is a late init. If by then a pmic specific API is not
* registered either there is no need for anything to be done on
* the PMIC side or somebody has forgotten to register a PMIC
* handler. Warn for the second condition.
*/
if (sr_pmic_data && sr_pmic_data->sr_pmic_init)
sr_pmic_data->sr_pmic_init();
else
pr_warning("%s: No PMIC hook to init smartreflex\n", __func__);
But, I couldn't find any place where PMIC is being registered.
premi # grep register_pmic *.c
omap_twl.c: omap_voltage_register_pmic(voltdm, &omap4_mpu_volt_info);
omap_twl.c: omap_voltage_register_pmic(voltdm, &omap4_iva_volt_info);
omap_twl.c: omap_voltage_register_pmic(voltdm, &omap4_core_volt_info);
omap_twl.c: omap_voltage_register_pmic(voltdm, &omap3_mpu_volt_info);
omap_twl.c: omap_voltage_register_pmic(voltdm, &omap3_core_volt_info);
smartreflex.c: * omap_sr_register_pmic() - API to register pmic specific info.
smartreflex.c:void omap_sr_register_pmic(struct omap_sr_pmic_data *pmic_data)
voltage.c: * omap_voltage_register_pmic() - API to register PMIC specific data
voltage.c:int omap_voltage_register_pmic(struct voltagedomain *voltdm,
Where can I look for an example of registration?
~sanjeev
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html