aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-img.c
AgeCommit message (Collapse)AuthorFilesLines
2016-03-23pwm: img: Test clock rate to avoid division by 0Wolfram Sang1-0/+5
The clk API may return 0 on clk_get_rate(), so we should check the result before using it as a divisor. Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
2015-05-19pwm: img: Impose upper and lower timebase steps valueNaidu Tellapati1-12/+64
The PWM hardware on Pistachio platform has a maximum timebase steps value to 255. To fix it, let's introduce a compatible-specific data structure to contain the SoC-specific details and use it to specify a maximum timebase. Also, let's limit the minimum timebase to 16 steps, to allow a sane range of duty cycle steps. Fixes: 277bb6a29e00 ("pwm: Imagination Technologies PWM DAC driver") Signed-off-by: Naidu Tellapati <[email protected]> Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
2015-01-30pwm: Imagination Technologies PWM DAC driverNaidu Tellapati1-0/+249
The Pistachio SOC from Imagination Technologies includes a Pulse Width Modulation DAC which produces 1 to 4 digital bit-outputs which represent digital waveforms. These PWM outputs are primarily in charge of controlling backlight LED devices. Reviewed-by: Andrew Bresticker <[email protected]> Signed-off-by: Naidu Tellapati <[email protected]> Signed-off-by: Sai Masarapu <[email protected]> Signed-off-by: Ezequiel Garcia <[email protected]> Reviewed-by: Vladimir Zapolskiy <[email protected]> [thierry.reding: fixup license header as discussed on list] Signed-off-by: Thierry Reding <[email protected]>