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)
committerJason Cooper <jason@lakedaemon.net>
Tue, 14 Jan 2014 01:59:16 +0000 (01:59 +0000)
commitaf8d1c63afcbf36eea06789c92e22d4af118d2fb
tree44c51abb9f5a80b246b026743f5a9508fb896fc8
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
ARM: mvebu: Add support to get the ID and the revision of a SoC

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.

Cc: stable@vger.kernel.org # v3.12+
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>
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]