]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: mvebu: Use system controller to get the soc id when possible
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 23 Jun 2014 15:42:08 +0000 (17:42 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 23 Jun 2014 21:54:13 +0000 (21:54 +0000)
commit5639ee4808af79c098192d54a92a38f418432b92
tree2c58040682303893df33a25060ab3a2557a3f3b8
parent37215f4aabc1d79f626d1952b3248e5d456253c7
ARM: mvebu: Use system controller to get the soc id when possible

On Armada 38x it is possible to get the SoC Id and the revision
without using the PCI register. Accessing the PCI registers implies
enabling its clock and, because of the initialization issue, not
keeping them enable. So if possible it is better to avoid it.

Armada 370 and Armada XP provides the SoC ID values from the system
controller but not the revision.

Armada 375 provides both but the SoC ID value looks buggy (0x6660
instead of 0x6720).

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Link: https://lkml.kernel.org/r/1403538128-27859-1-git-send-email-gregory.clement@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/common.h
arch/arm/mach-mvebu/mvebu-soc-id.c
arch/arm/mach-mvebu/system-controller.c