From bb2b61e6a5b7afbbde71b252f0d9401cc314b444 Mon Sep 17 00:00:00 2001 From: kfx Date: Fri, 2 Aug 2013 14:41:47 +0800 Subject: [PATCH] rk3026: rk3028a_tb: pwm regulator support --- arch/arm/mach-rk3026/board-rk3028a-tb.c | 2 +- drivers/regulator/rk30-pwm-regulator.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rk3026/board-rk3028a-tb.c b/arch/arm/mach-rk3026/board-rk3028a-tb.c index 1af1cc13c9d1..35a6e7e51651 100755 --- a/arch/arm/mach-rk3026/board-rk3028a-tb.c +++ b/arch/arm/mach-rk3026/board-rk3028a-tb.c @@ -98,7 +98,7 @@ #define PLAY_ON_PIN RK30_PIN0_PD1 //wakeup key //pwm regulator -#define REG_PWM 1 // (0 ~ 2) +#define REG_PWM 2 // (0 ~ 2) //pmic #define PMU_INT_PIN RK30_PIN3_PC6 diff --git a/drivers/regulator/rk30-pwm-regulator.c b/drivers/regulator/rk30-pwm-regulator.c index cab69f594d9f..6ebb98c20805 100755 --- a/drivers/regulator/rk30-pwm-regulator.c +++ b/drivers/regulator/rk30-pwm-regulator.c @@ -47,7 +47,7 @@ struct rk_pwm_dcdc { struct pwm_platform_data *pdata; }; -#if defined(CONFIG_SOC_RK3168) || defined(CONFIG_SOC_RK3168M) || defined(CONFIG_ARCH_RK3188) +#if defined(CONFIG_SOC_RK3168) || defined(CONFIG_SOC_RK3168M) || defined(CONFIG_ARCH_RK3188) || defined(CONFIG_ARCH_RK3026) const 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 }; -- 2.34.1