.pwm_voltage = 1100000,
.min_uV = 1000000,
.max_uV = 1400000,
- .duty_cycle = 455, //45.5%
+ .coefficient = 455, //45.5%
.pwm_voltage_map = pwm_voltage_map,
.init_data = &pwm_regulator_init_dcdc[0],
},
struct rk_pwm_dcdc *dcdc = rdev_get_drvdata(dev);\r
const int *voltage_map = dcdc->pdata->pwm_voltage_map;\r
int max = dcdc->pdata->max_uV;\r
- int duty_cycle = dcdc->pdata->duty_cycle;\r
+ int coefficient = dcdc->pdata->coefficient;\r
u32 size = dcdc->desc.n_voltages, i, vol,pwm_value;\r
\r
DBG("%s: min_uV = %d, max_uV = %d\n",__FUNCTION__, min_uV,max_uV);\r
dcdc->pdata->pwm_voltage = vol;\r
\r
// VDD12 = 1.40 - 0.455*D , ÆäÖÐDΪPWMÕ¼¿Õ±È, \r
- pwm_value = (max-vol)/duty_cycle/10; // pwm_value %, duty_cycle = D*1000\r
+ pwm_value = (max-vol)/coefficient/10; // pwm_value %, coefficient *1000\r
\r
if (pwm_set_rate(dcdc->pdata,1000*1000,pwm_value)!=0)\r
{\r