summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/exynos5260-xyref5260.dts
diff options
context:
space:
mode:
authorNikolaus Voss <n.voss@weinmann-emt.de>2014-09-23 15:30:21 +0200
committerThierry Reding <thierry.reding@gmail.com>2014-09-25 08:52:39 +0200
commite2e08970100db03bb84fd4a72f9c35bfc18d595a (patch)
tree826f2e39834f3b497da11547a50b37f7fdc6746a /arch/arm/boot/dts/exynos5260-xyref5260.dts
parent70145f87139fbc43b726f873813cd91dce371899 (diff)
pwm: atmel: Fix calculation of prescale value
The prescale value used for calculating the period was incremented afterwards, thus the resulting prescale value is by one too high. This resulted in a PWM frequency only half as high as requested. This patch moves the 64 bit division out of the prescale loop to correct the above issue and make the calculation more efficient. Signed-off-by: Nikolaus Voss <n.voss@weinmann-emt.de> Tested-by: Bo Shen <voice.shen@atmel.com> Acked-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'arch/arm/boot/dts/exynos5260-xyref5260.dts')
0 files changed, 0 insertions, 0 deletions