diff options
author | Philip, Avinash <avinashphilip@ti.com> | 2012-09-06 10:44:25 +0530 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-09-10 17:04:38 +0200 |
commit | 01b2d4536f0215c6d97d77e157afee04300ffc90 (patch) | |
tree | f0cf06b9c3aaa834a578e0eeda01e72ba51c2653 /drivers/pwm/pwm-pxa.c | |
parent | c06fad9d28c95b024ea10455cf1397432b12848d (diff) | |
download | linux-3.10-01b2d4536f0215c6d97d77e157afee04300ffc90.tar.gz linux-3.10-01b2d4536f0215c6d97d77e157afee04300ffc90.tar.bz2 linux-3.10-01b2d4536f0215c6d97d77e157afee04300ffc90.zip |
pwm: pwm-tiehrpwm: Fix conflicting channel period setting
EHRPWM hardware supports 2 independent PWM channels. However the device
uses only one register to handle period setting for both channels. So
both channels should be configured for same period (in nsec).
Fix the same by returning error for conflicting period values.
However, allow
1. Configuration of period settings if not conflicting with other
channels
2. Re-configuring of period settings if no other channels being
configured
Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/pwm/pwm-pxa.c')
0 files changed, 0 insertions, 0 deletions