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>
net: femac: Avoid panic in skb_put()

On very rare occations the femac_rx_packet() will overrun the sk_buff causuing
skb_put() to panic. To current date, we have only had one reported case which
makes it hard to diagnose. This patch is not a proper solution, it is a step on
the way to get some more information on the real issue. To avoid painc from
skb_put(), we make sure there is tailroom in the skb before adding more data to
it, and emit an error log if the buffer was full.

Signed-off-by: Anders Berg <anders.berg@avagotech.com>
arch/powerpc: Removed Axxia Specific Changes

All modifications for Axxia (CONFIG_ACP) have been removed.

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/powerpc: Add a Work Around for Axxia 3500 Resets

The work around is to switch the PPCs back to the reference
clock before issuing a reset.  As described in the defect:

The reset_system issue is caused since the 6
counters are **NOT** reset by reset_system, but the
PLL and clock switch that controls the counters
**IS**.  Workaround for this: switch clk_ppc to
clk_ref before a reset_system or reset_chip. This
logically should work, BUT no STA work has been done
to validate this. Empirically, this seems to work.

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm: Add ioremap_cache() (same functionality as ioremap_cached())

Both are used by some drivers.

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm/mach-axxia: Fix Compiler Warnings

Signed-off-by: John Jacques <john.jacques@lsi.com>
drivers/spi: Fix Compiler Warnings

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm/mach-axxia: Fix Build Warnings

Signed-off-by: John Jacques <john.jacques@lsi.com>
drivers/net/ethernet/lsi: Fix Compiler Warnings

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm/mach-axxia: Added a Device Tree for Simulation

This simulation device tree supports virtio and mmc.

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm/mach-axxia: Fixed affinity error on IRQ migration

This patch redesigned the gic_set_affinity function and added
a system work queue to process the affinity requests that are
needed to be processed via the IPI. The reason for the workqueue
is to insure that all interrupts get migrated. When code relies
on and interrupt to be updated and that interrupt is being migrated,
problems arose.

This patch also adds a choice to hotplug. There are two ways to
power down the cpu, either to a low power mode or completely off.
If the power off mode is selected then the a new option is available
to power off the L2 cache as well.

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/arm/mach-axxia: Updated Default Configuration Files

Include options for power-management.

Signed-off-by: John Jacques <john.jacques@lsi.com>
drivers/misc/lsi-smmon.c:

Updated smmon driver such that uncorrectable errors causes
machine_restart instead of kernel panic. Also, setting
persistent register (0xdc) bit 3 to indicate
uncorrectable errors. Updated kconfig such that if EDAC
driver is enabled in Kernel config then smmon driver will
be disabled by default.

Signed-off-by: SangeethaRao <sangeetha.rao@lsi.com>
arch/arm/mach-axxia:
machine_restart() related change to axxia_restart()

Signed-off-by: SangeethaRao <sangeetha.rao@lsi.com>