},
{
.name = "vdd_core", //logic
- .min_uv = 1100000,
- .max_uv = 1100000,
+ .min_uv = 1000000,
+ .max_uv = 1000000,
.suspend_vol = 900000,
},
{
.name = "vdd_cpu", //arm
- .min_uv = 1100000,
- .max_uv = 1100000,
+ .min_uv = 1000000,
+ .max_uv = 1000000,
.suspend_vol = 900000,
},
{
static struct pmu_info act8846_ldo_info[] = {
{
.name = "act_ldo1", //vdd11
- .min_uv = 1100000,
- .max_uv = 1100000,
+ .min_uv = 1000000,
+ .max_uv = 1000000,
},
{
- .name = "act_ldo2", //vcc25
- .min_uv = 2500000,
- .max_uv = 2500000,
+ .name = "act_ldo2", //vdd12
+ .min_uv = 1200000,
+ .max_uv = 1200000,
},
{
.name = "act_ldo3", //vcc18_cif
- .min_uv = 1900000,
- .max_uv = 1900000,
+ .min_uv = 1800000,
+ .max_uv = 1800000,
},
{
.name = "act_ldo4", //vcca33
struct act8846 *act8846 = rdev_get_drvdata(dev);
int ldo= rdev_get_id(dev) - ACT8846_LDO1;
u16 mask=0x80;
- int ret;
+
return act8846_set_bits(act8846, act8846_LDO_CONTR_REG(ldo), mask, 0x80);
}
struct act8846 *act8846 = rdev_get_drvdata(dev);
int ldo= rdev_get_id(dev) - ACT8846_LDO1;
u16 mask=0x80;
- int ret;
+
return act8846_set_bits(act8846, act8846_LDO_CONTR_REG(ldo), mask, 0);
}
return val;
}
static int act8846_ldo_set_voltage(struct regulator_dev *dev,
- int min_uV, int max_uV)
+ int min_uV, int max_uV,unsigned *selector)
{
struct act8846 *act8846 = rdev_get_drvdata(dev);
int ldo= rdev_get_id(dev) - ACT8846_LDO1;
ret = act8846_set_bits(act8846, act8846_LDO_SET_VOL_REG(ldo),
LDO_VOL_MASK, val);
- if (ret)
- return ret;
+ return ret;
}
-static int act8846_ldo_get_mode(struct regulator_dev *dev, unsigned index)
+static unsigned int act8846_ldo_get_mode(struct regulator_dev *dev)
{
struct act8846 *act8846 = rdev_get_drvdata(dev);
int ldo = rdev_get_id(dev) - ACT8846_LDO1;
return val;
}
static int act8846_dcdc_set_voltage(struct regulator_dev *dev,
- int min_uV, int max_uV)
+ int min_uV, int max_uV,unsigned *selector)
{
struct act8846 *act8846 = rdev_get_drvdata(dev);
int buck = rdev_get_id(dev) - ACT8846_DCDC1;
return ret;
}
static int act8846_dcdc_set_sleep_voltage(struct regulator_dev *dev,
- int min_uV, int max_uV)
+ int uV)
{
struct act8846 *act8846 = rdev_get_drvdata(dev);
int buck = rdev_get_id(dev) - ACT8846_DCDC1;
- int min_vol = min_uV / 1000, max_vol = max_uV / 1000;
+ int min_vol = uV / 1000,max_vol = uV / 1000;
const int *vol_map = buck_voltage_map;
u16 val;
int ret = 0;
if (vol_map[val] > max_vol)
printk("WARNING:this voltage is not support!voltage set is %d mv\n",vol_map[val]);
- ret = act8846_set_bits(act8846, act8846_BUCK_SET_VOL_REG(buck) + 0x01,
+ ret = act8846_set_bits(act8846, (act8846_BUCK_SET_VOL_REG(buck) + 0x01),
BUCK_VOL_MASK, val);
return ret;
}
-static int act8846_dcdc_get_mode(struct regulator_dev *dev, unsigned index)
+static unsigned int act8846_dcdc_get_mode(struct regulator_dev *dev)
{
struct act8846 *act8846 = rdev_get_drvdata(dev);
int buck = rdev_get_id(dev) - ACT8846_DCDC1;