Home
last modified time | relevance | path

Searched hist:"816264 fc6672dbb7c7b22ad9e67b8d0056873394" (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/arch/arm/cpu/arm1136/mx35/
H A Dtimer.c816264fc6672dbb7c7b22ad9e67b8d0056873394 Tue Aug 12 14:26:01 UTC 2014 Andrew Ruder <andrew.ruder@elecsyscorp.com> arm: mx35: use common timer functions

This patch moves mx35 to the common timer functions added in commit

8dfafdd - Introduce common timer functions <Rob Herring>

The (removed) mx35 timer code (specifically __udelay()) could deadlock at
the 32-bit boundary of get_ticks(). get_ticks() returned a 32-bit value
cast up to a 64-bit value. If get_ticks() + tmo in __udelay() crossed
the 32-bit boundary, the while condition became unconditionally true and
locks the processor. Rather than patch the specific mx35 issues, simply
move everything over to the common code.

Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-mx35/
H A Dimx-regs.h816264fc6672dbb7c7b22ad9e67b8d0056873394 Tue Aug 12 14:26:01 UTC 2014 Andrew Ruder <andrew.ruder@elecsyscorp.com> arm: mx35: use common timer functions

This patch moves mx35 to the common timer functions added in commit

8dfafdd - Introduce common timer functions <Rob Herring>

The (removed) mx35 timer code (specifically __udelay()) could deadlock at
the 32-bit boundary of get_ticks(). get_ticks() returned a 32-bit value
cast up to a 64-bit value. If get_ticks() + tmo in __udelay() crossed
the 32-bit boundary, the while condition became unconditionally true and
locks the processor. Rather than patch the specific mx35 issues, simply
move everything over to the common code.

Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>