u-boot/arch/arm/cpu/armv7
Gabe Black 92809eeed2 Exynos: Tidy up the pwm_config function in the exynos pwm driver
Some small fixes in the exynos pwm driver:

1. NS_IN_HZ is non-sensical since these are not compatible units. This
constant actually describes the number of nanoseconds in a second. Renamed it
to NS_IN_SEC. Also dropped the unnecessary parenthesis.
2. The variable "period" is not used to hold a period, it's used to hold a
frequency. Renamed it to "frequency".
3. tcmp is an unsigned value, so (tcmp < 0) will never be true and the if
which checks that condition will never execute. Also, there should be no
problem if the pwm never switches, so there's no reason to subtract one from
tcmp and therefore no reason to compare it against zero. Removed both ifs. If
they weren't removed, tcmp should be a signed value.
4. Add a check for a 0 period.

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
..
am33xx am33xx: add dmm support to emif4 library 2013-03-24 12:49:11 -04:00
exynos EXYNOS5: Add L2 Cache Support. 2013-03-27 16:53:37 +09:00
highbank arm: Remove additional config flags 2012-10-04 14:51:50 +02:00
mx5 mx5: Mark lowlevel_init board-specific code 2012-11-19 08:56:27 +01:00
mx6 ARM: mx6: use common CPU errata config options 2013-03-07 18:20:37 +01:00
omap-common ti814x_evm: add ti814x evm board support 2013-03-24 12:49:12 -04:00
omap3 OMAP3: Initialize gpmc if SPL_ONENAND_SUPPORT is enabled. 2013-03-11 11:06:08 -04:00
omap4 arm: dra7xx: Add DDR related data for DRA752 ES1.0 2013-03-11 11:06:11 -04:00
omap5 arm: dra7xx: Add silicon id support for DRA752 soc 2013-03-11 11:39:57 -04:00
rmobile arm: rmobile: bugfix: wrong register saving in lowlevel_init 2012-10-08 11:15:04 -07:00
s5p-common Exynos: Tidy up the pwm_config function in the exynos pwm driver 2013-04-01 14:02:08 +09:00
s5pc1xx armv7: add appropriate headers for assembly functions 2012-05-15 08:31:26 +02:00
socfpga Replace __bss_end__ with __bss_end 2013-03-15 16:13:54 -04:00
tegra-common Tegra20: Move some include files to arch-tegra for sharing with Tegra30 2012-10-15 11:54:06 -07:00
tegra20 tegra: usb: move implementation into right directory 2013-03-14 11:06:41 -07:00
tegra30 Tegra30: Add CPU (armv7) files 2013-01-16 13:40:07 -07:00
tegra114 Tegra114: Add CPU (armv7) files 2013-02-11 10:35:25 -07:00
u8500 arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
zynq arm: zynq: Add lowlevel initialization to C 2013-02-07 09:18:42 +01:00
cache_v7.c arm: Add control over cachability of memory regions 2012-11-19 08:15:38 -07:00
config.mk build: imx: Fix 'u-boot.imx' build without full OBJTREE reference 2013-02-12 18:39:08 +01:00
cpu.c arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0 2012-09-01 14:58:22 +02:00
lowlevel_init.S armv7: Make lowlevel_init.S's lowlevel_init do ABI compatible stack 2012-09-01 14:58:19 +02:00
Makefile ti814x_evm: add ti814x evm board support 2013-03-24 12:49:12 -04:00
start.S ARM: implement erratum 716044 workaround 2013-03-22 16:45:22 +01:00
syslib.c ARMV7: Vexpress: fix build errors 2010-12-08 23:44:21 +01:00