]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: pxa: use common timer functions
authorAndrew Ruder <andrew.ruder@elecsyscorp.com>
Wed, 12 Aug 2015 18:18:31 +0000 (13:18 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:34:42 +0000 (10:34 +0200)
commit2f843c42889f93d4d884b4de577646330b9a7b5a
treeaf7ba1bdf7287eed6674fc641100aa839ed8ff51
parent8a8bd367bf845b32a32e5cca214e42395e9b5a71
arm: pxa: use common timer functions

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

  8dfafdd - Introduce common timer functions <Rob Herring>

The (removed) pxa 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
locked the processor.  Rather than patch the specific pxa 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: Tom Rini <trini@konsuiko.com>
arch/arm/cpu/pxa/timer.c
arch/arm/include/asm/arch-pxa/config.h [new file with mode: 0644]
arch/arm/include/asm/config.h