ARM:imx:fix pwm period value
authorJason Chen <jason.chen@linaro.org>
Mon, 19 Dec 2011 03:23:28 +0000 (11:23 +0800)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Wed, 11 Jan 2012 18:10:34 +0000 (10:10 -0800)
commit3e97cc6c7149f6d96c9265824889e2b66ec93cab
tree1464053347c6237688ee37e9b9a70c1dbb86913f
parent78c50d6a3adcc574b36427b0072a45e4a46eb509
ARM:imx:fix pwm period value

commit 5776ac2eb33164c77cdb4d2b48feee15616eaba3 upstream.

According to imx pwm RM, the real period value should be
PERIOD value in PWMPR plus 2.

PWMO (Hz) = PCLK(Hz) / (period +2)

Signed-off-by: Jason Chen <jason.chen@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change-Id: I2afb2920cb25c74bbb16a6b60c6316fb02f434c0
Reviewed-on: http://git-master/r/74194
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
arch/arm/plat-mxc/pwm.c