axxia: Updated Default Configurations for LSI Axxia Boards

Signed-off-by: John Jacques <john.jacques@lsi.com>
LSI AXM55xx: Configuration updates and bug fixes for rapidio.

Update the powerpc FDT settings for the latest AXXIA RIO code.
Update the ARM/PowerPC LSI configuration to build AXXIA RIO by default.
Add support to reset the AXXIA RIO controller when a Link Reset Request
symbol is received.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
LSI AXM55xx: Disable linkdown reset configuration.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
LSI AXM55xx: Match baseline configuration for future development.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
LSI AXM55xx: Code cleanup per standard linux checkpatch.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
LSI AXM55xx: Move datastream APIs and symbols to public header file.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
arm/axxia: Workaround for cross-cluster sev issue

In revision 1.0 of the AXM55xx device, the events signals across cluster can
get lost if multiple CPUs signals an event roughly at the same point in time.
This may lead to spin-lock deadlock as other clusters may be sitting in a wfe
instruction waiting for a lock to become free.

The workaround is to disable the wfe instruction (effectively turning it into a
NOP) by setting ACTLR[7]=1.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
Revert "LSI AXM55XX: Add GENERIC_LOCKBREAK"

This reverts commit 2340ef2f1f09c964a4139ac25653a3775bdb706a.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
Revert "LSI AXM55XX: Disable use of wfe/sev in arch spinlock"

This reverts commit ae0c53fc61475c63150beb6cddf8ef343b3903e1.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
dma: lsi-dma32: Cleanup DMA driver

Use the devm_* helpers to avoid messy error recovery and make use of the
virt-dma interface to avoid duplicated code.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
LSI FEMAC Ethernet Driver

Integrated feedback and suggestions to make driver easier to upstream.

Signed-off-by: David Mercado <david.mercado@windriver.com>
improved robustness for DDR retention
kernel/irq/manage.c: Fix irq_set_affinity to allow use with buslocks

Fix irq_set_affinity() to allow usage of buslocks with "slow bus"
IRQ controllers, such as the LSI Axxia GIC.

Signed-off-by: David Mercado <david.mercado@windriver.com>
LSI AXM55xx: Axxia GIC driver improvements (3rd gen)

Introduce the use of "slow" bus locking to allow use of Linux RPC
mechanism, remove unnecessary memory barriers, etc.

Signed-off-by: David Mercado <david.mercado@windriver.com>
mach-axxia: Split device tree into SoC/board parts

Split up the device tree into several files. The axm55xx.dtsi contains all the
SoC device nodes, the axm55<NN>-cpus.dtsi contains the CPU nodes with <NN>
number of CPU cores. The top device tree for the AXM5516 validation board (aka.
Amarillo) then includes the axm55xx.dtsi, the axm5516-cpus.dtsi and completes
the device nodes with board specific configuration.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
arm/axxia: GPIO driver for SPI chip selects

Add gpiochip driver for the 5 chip select signals provided by the SSP block.
This makes it possible to use the device tree for all SPI configuration,
instead of having it in the platform specific code.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
spi: Revert to mainline spi-pl022

Revert to the mainline version of spi-pl022. Add a new driver for the
pl022-like deivce for ACP34xx devices (ppc).

Signed-off-by: Anders Berg <anders.berg@lsi.com>
arm/axxia: Add I2C devices to lsi_defconfig

Signed-off-by: Anders Berg <anders.berg@lsi.com>
hwmon: Support new revision of LTC2974

Recognize chip id for newer revision of LTC2974.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
i2c-axxia: Use managed functions devm_*

Use the devm_ functions for resource allocation to simplify error handling.

Drop the 'bus' property from the device tree. Instead the alias nodes are used
to determine adapter numbering.

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