#endif
#ifdef CONFIG_RK30_PWM_REGULATOR
static int pwm_voltage_map[] = {
- 950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000
+ 800000,825000,850000, 875000,900000, 925000 ,950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000,1375000
};
static struct regulator_consumer_supply pwm_dcdc1_consumers[] = {
.pwm_iomux_pwm = PWM1,
.pwm_iomux_gpio = GPIO3_D4,
.pwm_voltage = 1100000,
- .suspend_voltage = 1050000,
- .min_uV = 950000,
- .max_uV = 1400000,
- .coefficient = 455, //45.5%
+ .suspend_voltage = 1000000,
+ .min_uV = 800000,
+ .max_uV = 1375000,
+ .coefficient = 575, //55.0%
.pwm_voltage_map = pwm_voltage_map,
.init_data = &pwm_regulator_init_dcdc[0],
},
#endif
#ifdef CONFIG_RK30_PWM_REGULATOR
static int pwm_voltage_map[] = {
- 950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000
+ 800000,825000,850000, 875000,900000, 925000 ,950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000,1375000
};
static struct regulator_consumer_supply pwm_dcdc1_consumers[] = {
.pwm_iomux_pwm = PWM1,
.pwm_iomux_gpio = GPIO3_D4,
.pwm_voltage = 1100000,
- .suspend_voltage = 1050000,
- .min_uV = 950000,
- .max_uV = 1400000,
- .coefficient = 455, //45.5%
+ .suspend_voltage = 1000000,
+ .min_uV = 800000,
+ .max_uV = 1375000,
+ .coefficient = 575, //57.5%
.pwm_voltage_map = pwm_voltage_map,
.init_data = &pwm_regulator_init_dcdc[0],
},
};
#endif
#ifdef CONFIG_RK30_PWM_REGULATOR
-const static int pwm_voltage_map[] = {
- 950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000
+static int pwm_voltage_map[] = {
+ 800000,825000,850000, 875000,900000, 925000 ,950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000,1375000
};
-
static struct regulator_consumer_supply pwm_dcdc1_consumers[] = {
{
.supply = "vdd_cpu",
.pwm_iomux_pwm = PWM1,
.pwm_iomux_gpio = GPIO3_D4,
.pwm_voltage = 1100000,
- .suspend_voltage = 1050000,
- .min_uV = 950000,
- .max_uV = 1400000,
- .coefficient = 455, //45.5%
+ .suspend_voltage = 1000000,
+ .min_uV = 800000,
+ .max_uV = 1375000,
+ .coefficient = 575, //57.5%
.pwm_voltage_map = pwm_voltage_map,
.init_data = &pwm_regulator_init_dcdc[0],
},
#endif
#ifdef CONFIG_RK30_PWM_REGULATOR
static int pwm_voltage_map[] = {
- 950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000
+ 800000,825000,850000, 875000,900000, 925000 ,950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000,1375000
};
static struct regulator_consumer_supply pwm_dcdc1_consumers[] = {
.pwm_iomux_pwm = PWM1,
.pwm_iomux_gpio = GPIO3_D4,
.pwm_voltage = 1100000,
- .suspend_voltage = 1050000,
- .min_uV = 950000,
- .max_uV = 1400000,
- .coefficient = 455, //45.5%
+ .suspend_voltage = 1000000,
+ .min_uV = 800000,
+ .max_uV = 1375000,
+ .coefficient = 575, //57.5%
.pwm_voltage_map = pwm_voltage_map,
.init_data = &pwm_regulator_init_dcdc[0],
},
struct pwm_platform_data *pdata;\r
};\r
\r
+#if defined(CONFIG_SOC_RK3168) || defined(CONFIG_ARCH_RK3188)\r
+const static int pwm_voltage_map[] = {\r
+ 800000,825000,850000, 875000,900000, 925000 ,950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000,1375000\r
+};\r
+#else\r
const static int pwm_voltage_map[] = {\r
950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000\r
};\r
+#endif\r
\r
static struct rk_pwm_dcdc *g_dcdc;\r
\r
platform_set_drvdata(pdev, dcdc); \r
printk(KERN_INFO "pwm_regulator.%d: driver initialized\n",id);\r
pwm_regulator_set_voltage(dcdc->regulator,pdata->pwm_voltage,pdata->pwm_voltage,&selector);\r
-\r
+ \r
return 0;\r
\r
\r