arch/arm/mach-axxia: Updated i2c for Simulation

Simulation updates for i2c broke Simulation; this only applies
the changes in 0b62b05ced2d04fb1a7707ff10169db580ba3eea on
hardward.

Signed-off-by: John Jacques <john.jacques@lsi.com>
Added support for ncr_read/ncr_write to access PCIe/SRIO SerDes config in 0x115 node

Signed-off-by: SangeethaRao <sangeetha.rao@lsi.com>
lsi: Add the LSI Tag to the UTS Version

scripts/setlocalversion strips out the tag if there is a match
since the Linux version is in Makefile.  Without the tag information,
there is no way to get back to the specific tag used in defect
reports etc.  This patch adds, in the LSI Axxia case, the lsi tag.

Signed-off-by: John Jacques <john.jacques@lsi.com>
Revert "arch/arm/mach-axxia: Updated i2c for Simulation"

This reverts commit 6495aa11dd2a682f2bee4ae9c2db8d94c7cd3617.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
i2c-axxia: Timeout on failed soft reset

Add a timeout condition to the soft reset code.

Currently this will time out when running on simulator since it fails to clear
the soft reset bit.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
arm/mach-axxia: Same build for HW and simlation.

Removed the config ARCH_AXXIA_SIM, that used to identify builds for simulator.
The same build can now be run on both hardware and simulation platforms, using
different DTBs.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
arm/axxia: Clock init for chip and simulator

Handle minor difference in clock config in simulator and read hardware.

Signed-off-by: Anders Berg <anders.berg@lsi.com>
arch/arm/mach-axxia: Updated Simulation Device Trees

By default, the simulator only supports 4 cores; the axm55xxsim.dts
device tree now reflects that.  It is not difficult to support all
16 cores; a device tree for that, axm55xxsim16.dts, is provided for
that as well.

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/powerpc: Turn on LOCALVERSION_AUTO for LSI Axxia Systems

Signed-off-by: John Jacques <john.jacques@lsi.com>
arch/powerpc: Turn on LOCALVERSION_AUTO for LSI Axxia Systems

Signed-off-by: John Jacques <john.jacques@lsi.com>
LSI AXM55XX/rapidio: Stability and bug fix improvements.

Add additional spinlocks/mutexes to each controller state to increase
concurrency and performance.  Fix some bound checks for full outbound
DME descriptor chains, correct a lockup/delay issue with errors in the
outbound DME chains, and remove a delay loop.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
rapidio/LSI AXM55xx: Correct some boundary checks for argument values.

Also correct formatting of platform-specific function code.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
LSI AXM55xx: Expand valid condition checks for inbound message DME chains.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
LSI AXM55xx: Validate SRIO link ready status during driver initialization.

Check whether the SRIO link ready status is valid for each driver instance.
Fix an issue with scanning/listing the set of network devices found when
multiple SRIO controller master ports are enabled.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
LSI AXM55xx: Some code optimizations for AXXIA rapidio mport driver.

Correct 'slot' argument to outb msg callback, and remove unnecessary
memory allocations.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
Fixed offset of RAB_OBDSE_XX registers

Signed-off-by: ningligong <ning.li@lsi.com>
Fixed inbound data streaming ISR handling

1. Fixed inbound data stream interrupt service routine to properly
   handle packets received by all virtual VSID.
2. Moved checking for vsid_in_use of an inbound DSE, the vsid_in_use
   is only valid when other two bits are set.
Signed-off-by: ningligong <ning.li@lsi.com>
LSI AXM55xx: Fixes for mailbox open bounds checks.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
LSI AXM55xx: Improve concurrency protection in AXXIA rapidio calls.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>
LSI AXM55xx: Fix concurrency issue for variable.

Used 'atomic' counter to track available inbound messages between
interrupt and foreground code.
Also, enable both SRIO modules by default with check for SRIO link
ready status to validated the accesses.

Signed-off-by: Michael Bringmann <michael.bringmann@lsi.com>