rk3066b:support logic voltage can be adjusted to 0.95v
author张晴 <zhangqing@rock-chips.com>
Fri, 19 Oct 2012 11:12:35 +0000 (19:12 +0800)
committer张晴 <zhangqing@rock-chips.com>
Fri, 19 Oct 2012 11:12:35 +0000 (19:12 +0800)
arch/arm/mach-rk30/board-rk3066b-m701.c
arch/arm/mach-rk30/board-rk3066b-sdk.c
drivers/regulator/rk30-pwm-regulator.c

index 06c3efa39f37f58e36eb195e40e8668e680c9e70..f52c0bc1d31d2a33dc67da0617167bf9a0639252 100755 (executable)
@@ -1130,7 +1130,7 @@ static struct platform_device rk30_device_adc_battery = {
 #endif
 #ifdef CONFIG_RK30_PWM_REGULATOR
 const static int pwm_voltage_map[] = {
-       1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000
+       950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000
 };
 
 static struct regulator_consumer_supply pwm_dcdc1_consumers[] = {
@@ -1163,7 +1163,7 @@ static struct pwm_platform_data pwm_regulator_info[1] = {
                .pwm_iomux_gpio = GPIO3D_GPIO3D6,
                .pwm_voltage = 1000000,
                .suspend_voltage = 1050000,
-               .min_uV = 1000000,
+               .min_uV = 950000,
                .max_uV = 1400000,
                .coefficient = 455,     //45.5%
                .pwm_voltage_map = pwm_voltage_map,
index 8c01f5e92182ecac24e7f01a4fc6408dd190e809..8f98e4e1ab04268a41afb3c0e7dfe32939d6fb4f 100755 (executable)
@@ -973,7 +973,7 @@ static struct platform_device rk30_device_adc_battery = {
 #endif
 #ifdef CONFIG_RK30_PWM_REGULATOR
 const static int pwm_voltage_map[] = {
-       1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000
+       950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000
 };
 
 static struct regulator_consumer_supply pwm_dcdc1_consumers[] = {
@@ -1006,7 +1006,7 @@ static struct pwm_platform_data pwm_regulator_info[1] = {
                .pwm_iomux_gpio = GPIO3D_GPIO3D6,
                .pwm_voltage = 1100000,
                .suspend_voltage = 1050000,
-               .min_uV = 1000000,
+               .min_uV = 950000,
                .max_uV = 1400000,
                .coefficient = 455,     //45.5%
                .pwm_voltage_map = pwm_voltage_map,
index 9d2ab001c58cb0dade9bd6eb4f57a72c37e0172c..bf634051e7b868041406c3e37a9da039c79b9e27 100755 (executable)
@@ -73,7 +73,7 @@ struct rk_pwm_dcdc {
 #endif\r
 \r
 const static int pwm_voltage_map[] = {\r
-       1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000\r
+       950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000\r
 };\r
 \r
 static struct clk *pwm_clk[2];\r