]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00170342 PWM: fix pwm output can't be set to 100% full duty
authorYuxi Sun <b36102@freescale.com>
Thu, 15 Dec 2011 02:12:53 +0000 (10:12 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:38 +0000 (08:33 +0200)
commit0405d2dc4145805868b6f33fbb0b6ff5053c6319
tree87953437571703440837f94b624ecdf6fb07373d
parentc100e611f6990b1078680495374aa7deb2a8ee6b
ENGR00170342 PWM: fix pwm output can't be set to 100% full duty

The chip document says the counter counts up to period_cycles + 1
and then is reset to 0, so the actual period of the PWM wave is
period_cycles + 2

Signed-off-by: Yuxi Sun <b36102@freescale.com>
arch/arm/plat-mxc/pwm.c