powerpc/fsl_rio: apply changes for RIO spec rev 3
PATCH 100/111 powerpc/fsl_rio: apply changes for RIO spec rev 3
From: Alexandre Bounine <[email protected]>
Subject: powerpc/fsl_rio: apply changes for RIO spec rev 3
- Remove check for parallel PHY
- Set LP-Serial Register Map type
[[email protected]: fix build]
[[email protected]: fix build fix]
Signed-off-by Alexandre Bounine <[email protected]>
Cc Matt Porter <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Andre van Herk <[email protected]>
Cc Barry Wood <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/powerpc/sysdev/fsl_rio.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-)
arch/powerpc/sysdev/fsl_rio.c renamed from arch/powerpc/sysdev/fsl_rio.c~powerpc-fsl_rio-apply-changes-for-rio-spec-rev-3 +2 -10
@@ -643,19 +643,11 @@ int fsl_rio_setup(struct platform_device port->ops = ops; port->priv = priv; port->phys_efptr =0x100 ; + port->phys_rmap =1 ; priv->regs_win = rio_regs_win; -/* Probe the master port phy type */ ccsr =in_be32 (priv->regs_win +RIO_CCSR + i*0x20 ); - port->phy_type = (ccsr &1 ) ?RIO_PHY_SERIAL :RIO_PHY_PARALLEL ; -if (port->phy_type ==RIO_PHY_PARALLEL ) { -dev_err (&dev->dev,"RIO: Parallel PHY type, unsupported port type!\n" ); -release_resource (&port->iores); -kfree (priv); -kfree (port); -continue ; - } -dev_info (&dev->dev,"RapidIO PHY type: Serial\n" ); +/* Checking the port training status */ if (in_be32 ((priv->regs_win +RIO_ESCSR + i*0x20 )) &1 ) { dev_err(&dev->dev, "Port %d is not ready. "
@@ -705,11 +697,9 @@ int fsl_rio_setup(struct platform_device ((i ==0 ) ?RIO_INB_ATMU_REGS_PORT1_OFFSET : RIO_INB_ATMU_REGS_PORT2_OFFSET));