ARM: mvebu: Add support to get the ID and the revision of a SoC
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 2 Jan 2014 14:08:59 +0000 (15:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:34:06 +0000 (11:34 -0800)
commit1aed03315395bc36aaafbc50e36841520c41abee
treec764ff37aa27b9b4d280002ea1345368b5ec7877
parent33e02be955a04b0b1f137db77a94761986892825
ARM: mvebu: Add support to get the ID and the revision of a SoC

commit af8d1c63afcbf36eea06789c92e22d4af118d2fb upstream.

All the mvebu SoCs have information related to their variant and
revision that can be read from the PCI control register.

This patch adds support for Armada XP and Armada 370. This reading of
the revision and the ID are done before the PCI initialization to
avoid any conflicts. Once these data are retrieved, the resources are
freed to let the PCI subsystem use it.

Fixes: 930ab3d403ae (i2c: mv64xxx: Add I2C Transaction Generator support)
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-mvebu/Makefile
arch/arm/mach-mvebu/mvebu-soc-id.c [new file with mode: 0644]
arch/arm/mach-mvebu/mvebu-soc-id.h [new file with mode: 0644]