diff options
author | qipeng.zha <qipeng.zha@intel.com> | 2015-11-17 04:20:15 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2015-12-16 10:45:38 -0500 |
commit | 883e4d070fe125028c0579d8666b820aadf458fb (patch) | |
tree | a7d98493046a02b1e9a96c2a5fb5ba29ce880f99 /drivers/pwm/pwm-lpss.h | |
parent | 6ef7d1c46f0cbe2b8e9c66d5d95ffa5a612df45d (diff) |
pwm: lpss: Update PWM setting for Broxton
For Broxton PWM controller, base unit is defined as 8-bit integer
and 14-bit fraction, so need to update base unit setting to output
wave with right frequency.
Signed-off-by: Qipeng Zha <qipeng.zha@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-lpss.h')
-rw-r--r-- | drivers/pwm/pwm-lpss.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-lpss.h b/drivers/pwm/pwm-lpss.h index e8cf337ae1d1..04766e0d41aa 100644 --- a/drivers/pwm/pwm-lpss.h +++ b/drivers/pwm/pwm-lpss.h | |||
@@ -21,6 +21,7 @@ struct pwm_lpss_chip; | |||
21 | struct pwm_lpss_boardinfo { | 21 | struct pwm_lpss_boardinfo { |
22 | unsigned long clk_rate; | 22 | unsigned long clk_rate; |
23 | unsigned int npwm; | 23 | unsigned int npwm; |
24 | unsigned long base_unit_bits; | ||
24 | }; | 25 | }; |
25 | 26 | ||
26 | extern const struct pwm_lpss_boardinfo pwm_lpss_byt_info; | 27 | extern const struct pwm_lpss_boardinfo pwm_lpss_byt_info; |