u-boot/arch/arm
Gabe Black 34b5ee1f6a Exynos: Avoid a divide by zero by specifying a non-zero period for pwm 4
The pwm_config function in the exynos pwm driver divides by its period
period parameter. A function was calling pwm_config with a 0ns period and a
0ns duty cycle. That doesn't actually make any sense physically, and results
in a divide by zero in the driver. This change changes the parameters to be a
100000ns period and duty cycle.

Test with command "sf probe 1:0; time sf read 40008000 0 1000".
Try with different numbers of bytes and see that sane values are obtained
Build and boot U-boot with this patch, backlight works properly.

Signed-off-by: Gabe Black <gabeblack@google.com>
Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
2013-04-01 14:02:08 +09:00
..
cpu Exynos: Avoid a divide by zero by specifying a non-zero period for pwm 4 2013-04-01 14:02:08 +09:00
dts EXYNOS5: Add device node for DP 2013-03-27 21:23:18 +09:00
imx-common Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-02-12 10:18:31 -05:00
include/asm Exynos: Add hardware accelerated SHA256 and SHA1 2013-03-29 20:10:42 +09:00
lib Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
config.mk arm: Correct CONFIG_STANDALONE_LOAD_ADDR for AM33XX/OMAP* platforms 2013-03-24 12:49:12 -04:00