/* Programs the desired OPP value for the defined voltage rail. This should be called from board files if reconfiguration is desired. Returns 0 on success, negative error value on failure.  */
int k3_avs_set_opp(struct udevice *dev, int vdd_id, int opp_id)
/* Programs the desired OPP value for the defined voltage rail. This should be called from board files if reconfiguration is desired. Returns 0 on success, negative error value on failure.  */
int k3_avs_set_opp(struct udevice *dev, int vdd_id, int opp_id)
{
	struct k3_avs_privdata *priv = dev_get_priv(dev);
	struct vd_data *vd;
	vd = get_vd(priv, vdd_id);
	if (!vd)
		return -EINVAL;
	return k3_avs_program_voltage(priv, vd, opp_id);
}