arm: marvell: Rework timer.c to make it usable for other MVEBU platforms
authorStefan Roese <sr@denx.de>
Wed, 22 Oct 2014 10:13:08 +0000 (12:13 +0200)
committerTom Rini <trini@ti.com>
Thu, 23 Oct 2014 13:59:20 +0000 (09:59 -0400)
commit22700dc6fb7df443deb8d2a1bd5ab3aaecb63910
tree92b60160e6c143850090f3ce23a9e26d07d229ff
parent3e972cb9bad534d0b1a7d2cd3d3f6ad15aa7a4fd
arm: marvell: Rework timer.c to make it usable for other MVEBU platforms

This patch does the following:
- Rename defines and registers to not use kirkwood
- Remove unused defines
- Use clrsetbits() accessor functions
- Coding style cleanup
- Clear 25MHZ bit in timer controller register init for Armada XP

There is no functional change for kirkwood. At least not intentionally.

This will be used by the upcoming Armada XP support.

Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Luka Perkov <luka@openwrt.org>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
arch/arm/include/asm/arch-kirkwood/soc.h
arch/arm/mvebu-common/timer.c