From: 张晴 Date: Fri, 19 Oct 2012 11:12:35 +0000 (+0800) Subject: rk3066b:support logic voltage can be adjusted to 0.95v X-Git-Tag: firefly_0821_release~8359 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8748412f004889ed47b665ee9e073acf014a5862;p=firefly-linux-kernel-4.4.55.git rk3066b:support logic voltage can be adjusted to 0.95v --- 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];