]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: mx35: use common timer functions
authorAndrew Ruder <andrew.ruder@elecsyscorp.com>
Tue, 12 Aug 2014 14:26:01 +0000 (09:26 -0500)
committerStefano Babic <sbabic@denx.de>
Tue, 16 Sep 2014 10:53:09 +0000 (12:53 +0200)
commit816264fc6672dbb7c7b22ad9e67b8d0056873394
tree7b34c0a35ea48fd8cef36d34c0e38215a22ff91b
parent93a0ea501e1eca1ae5d7d2624906b656c765e5e8
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>
arch/arm/cpu/arm1136/mx35/timer.c
arch/arm/include/asm/arch-mx35/imx-regs.h