LSI AXM55xx RapidIO: Fixed a rare case of missing a RIO interrupt

This happens during multiple mailbox messaging.

Removed the redundant serdes register (ncr) read for
link status check, as the driver checks the status
using the sRIO registers.

Signed-off-by: Palani <palaniappan.ramanathan@lsi.com>
arch/arm/mach-axxia: Clean Up Compatible Names

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm/mach-axxia: Make Sure SRIO is Enabled Before Accessing

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm: New Device Trees for Axxia Simulation Targets

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/powerpc: Update the Axxia NAND Driver for 3500

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm: Default Configuration for a Guest OS Example (Axxia)

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/powerpc: Reset Updates for Axxia

There is a hardware issue on the 3500 that requires resets to be
issued using the system control register instead of dbcr0.  This
patch implements that work around when the PVR is 0x7ff520c1.

Signed-off-by: John Jacques <john.jacques@lsi.com>
Checking in AXM5500 EDAC driver support

Signed-off-by: SangeethaRao <sangeetha.rao@lsi.com>
Checking in EDAC support for AXM55xx preempt_rt

Signed-off-by: SangeethaRao <sangeetha.rao@lsi.com>
arch/arm/mach-axxia: Updated AXM55xx DTS and EDAC driver

Using correct Dickens config memory map

Signed-off-by: SangeethaRao <sangeetha.rao@lsi.com>
LSI AXM55xx RapidIO: Added support for variable segment size

Added support for variable segment size during the mailbox
transmission, depending on the message length.

The spinlock is acquired only when multiple
mailboxes are opened on a single OBDME, to reduce the effect
of spinlocks during single mailbox operation. Further
optimised the mailbox handling.

Signed-off-by: Palani <palaniappan.ramanathan@lsi.com>
drivers/edac/axxia_edac.c: Updated EDAC driver to set pscratch reg bit 3

Set pscratch reg bit 3 to indicate uncorrectable errors

Signed-off-by: SangeethaRao <sangeetha.rao@lsi.com>
arch/arm/mach-axxia: Support for CPU Hotplug

This includes powering down a cluster when all four cores are
off and powering up the cluster when one of the cores gets
re-enabled.

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm/mach-axxia: Check Status and Add Locks to NCR Accesses

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/powerpc/boot/dts: Checking in DTS files for ACP34xx/AXM3500

Signed-off-by: SangeethaRao <sangeetha.rao@lsi.com>
LSI AXM55xx RapidIO: Added support for periodic timer handlers

Added support for periodic timer handlers in place of interrupt
handlers for mailbox messages to reduce the interrupt handling overhead.

The Outbound mailbox message completions are handled by the periodic
timer handler. Support has been added to handle inbound message
completions by either interrupt or timer handlers, selected using
kernel parameters,
  "axm_srio_tmr_mode" to  specify srio controllers using timer mode.
  "axm_srio_int_mode" to specify srio controller using interrupt mode.
  "axm_srio_tmr_period" to specify the period for periodic timer handler.

Enabled the DME timeout feature for the mailbox messages.
Increased the maintenance window size in the config to access the srio
switch's implementation specific registers.

Signed-off-by: Palani <palaniappan.ramanathan@lsi.com>
arm/axxia: pci: Add missing calls to release_resource

Release io-resource in a couple of failure cases, this used to cause oopses
when cat:nig /proc/ioports

Signed-off-by: Fredrik Markström <fredrik.markstrom@gmail.com>
Signed-off-by: Anders Berg <anders.berg@avagotech.com>
ARM: axxia: Remove unused files

Signed-off-by: Anders Berg <anders.berg@avagotech.com>
gpio: pl061: specify gpio base via device tree

Use DT alias to allow the gpio base to be selected. This solves compatibility
with user-space programs that expects a fixed numbering scheme from non-DT
system. If an alias for the device node is not defined in device tree, the
fallback is to use the dynamically allocated number.

Signed-off-by: Anders Berg <anders.berg@avagotech.com>
arm: axxia: Remove GPIO platform data

Use DT based config for GPIO and drop the platform data setup.

Signed-off-by: Anders Berg <anders.berg@avagotech.com>