From 8748412f004889ed47b665ee9e073acf014a5862 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=BC=A0=E6=99=B4?= Date: Fri, 19 Oct 2012 19:12:35 +0800 Subject: [PATCH] rk3066b:support logic voltage can be adjusted to 0.95v --- arch/arm/mach-rk30/board-rk3066b-m701.c | 4 ++-- arch/arm/mach-rk30/board-rk3066b-sdk.c | 4 ++-- drivers/regulator/rk30-pwm-regulator.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-rk30/board-rk3066b-m701.c b/arch/arm/mach-rk30/board-rk3066b-m701.c index 06c3efa39f37..f52c0bc1d31d 100755 --- a/arch/arm/mach-rk30/board-rk3066b-m701.c +++ b/arch/arm/mach-rk30/board-rk3066b-m701.c @@ -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, diff --git a/arch/arm/mach-rk30/board-rk3066b-sdk.c b/arch/arm/mach-rk30/board-rk3066b-sdk.c index 8c01f5e92182..8f98e4e1ab04 100755 --- a/arch/arm/mach-rk30/board-rk3066b-sdk.c +++ b/arch/arm/mach-rk30/board-rk3066b-sdk.c @@ -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, diff --git a/drivers/regulator/rk30-pwm-regulator.c b/drivers/regulator/rk30-pwm-regulator.c index 9d2ab001c58c..bf634051e7b8 100755 --- a/drivers/regulator/rk30-pwm-regulator.c +++ b/drivers/regulator/rk30-pwm-regulator.c @@ -73,7 +73,7 @@ struct rk_pwm_dcdc { #endif 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 clk *pwm_clk[2]; -- 2.34.1