ret |= (1<<3); //enable DC4 boost
rt5025_reg_write(rt5025_chip->i2c, 0x17,ret);
/***********************************************/
+ ret = rt5025_reg_read(rt5025_chip->i2c, 0x07);
+ ret |= (1<<5); //
+ rt5025_reg_write(rt5025_chip->i2c, 0x07,ret);
+
/************************************************/
return 0;
}
{
.supply = "rt5025-dcdc1",
},
-// {
-// .supply = "vdd_cpu",
-// },
+ {
+ .supply = "vdd_cpu",
+ },
};
static struct regulator_consumer_supply rt5025_dcdc2_supply[] = {
{
.supply = "rt5025-dcdc2",
},
-// {
-// .supply = "vdd_core",
-// },
+ {
+ .supply = "vdd_core",
+ },
};
static struct regulator_consumer_supply rt5025_dcdc3_supply[] = {
{
.CHGControl7 = {
.bitfield = {
.CHGC_EN = 1,
- .CHG_DCDC_MODE = 0,
+ .CHG_DCDC_MODE = 1,
.BATD_EN = 0,
},
},
static struct pmu_info rt5025_dcdc_info[] = {
{
- .name = "rt5025-dcdc1", //arm
+ .name = "vdd_cpu", //arm
.min_uv = 1000000,
.max_uv = 1000000,
},
{
- .name = "rt5025-dcdc2", //logic
+ .name = "vdd_core", //logic
.min_uv = 1000000,
.max_uv = 1000000,
},
};
static struct pmu_info rt5025_ldo_info[] = {
{
- .name = "rt5025-ldo1", //vdd10
- .min_uv = 1000000,
- .max_uv = 1000000,
+ .name = "rt5025-ldo1", //vcc18
+ .min_uv = 1800000,
+ .max_uv = 1800000,
},
{
.name = "rt5025-ldo2", //vddjetta
.max_uv = 1200000,
},
{
- .name = "rt5025-ldo3", //vcc18
- .min_uv = 1800000,
- .max_uv = 1800000,
+ .name = "rt5025-ldo3", //vdd10
+ .min_uv = 1200000,
+ .max_uv = 1200000,
},
{
.name = "rt5025-ldo4", //vccjetta
.max_uv = 3300000,
},
{
- .name = "rt5025-ldo5", //vcctp
- .min_uv = 3300000,
- .max_uv = 3300000,
- },
- {
- .name = "rt5025-ldo6", //vccio_wl
+ .name = "rt5025-ldo5", //vccio_wl
.min_uv = 1800000,
.max_uv = 1800000,
+ },
+ {
+ .name = "rt5025-ldo6", //vcc_tp
+ .min_uv = 3300000,
+ .max_uv = 3300000,
},
};