/**
 * sr_class1p5_configure() - configuration function
 * @voltdm:	configure for which voltage domain
 *
 * we dont do much here other than setup some registers for
 * the sr module involved.
 */
static int sr_class1p5_configure(struct voltagedomain *voltdm)
{
	if (IS_ERR_OR_NULL(voltdm)) {
		pr_err("%s: bad parameters!\n", __func__);
		return -EINVAL;
	}

	return sr_configure_errgen(voltdm);
}
Exemplo n.º 2
0
/**
 * sr_classp5_configure() - configuration function
 * @sr:	SmartReflex module to be configured
 *
 * we dont do much here other than setup some registers for
 * the sr module involved.
 */
static int sr_classp5_configure(struct omap_sr *sr)
{
	if (IS_ERR_OR_NULL(sr) || IS_ERR_OR_NULL(sr->voltdm)) {
		pr_err("%s: bad parameters!\n", __func__);
		return -EINVAL;
	}

	return sr_configure_errgen(sr);
}
Exemplo n.º 3
0
static int sr_class3_configure(struct voltagedomain *voltdm)
{
	return sr_configure_errgen(voltdm);
}
Exemplo n.º 4
0
static void sr_class3_configure(int id)
{
	sr_configure_errgen(id);
}
static int sr_class3_configure(struct omap_sr *sr)
{
	return sr_configure_errgen(sr->voltdm);
}