aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_rio.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev/fsl_rio.c')
-rw-r--r--arch/powerpc/sysdev/fsl_rio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c
index d2d14708e714..14c106cf4aa2 100644
--- a/arch/powerpc/sysdev/fsl_rio.c
+++ b/arch/powerpc/sysdev/fsl_rio.c
@@ -1007,6 +1007,12 @@ int fsl_rio_setup(struct of_device *dev)
1007 rio_register_mport(port); 1007 rio_register_mport(port);
1008 1008
1009 priv->regs_win = ioremap(regs.start, regs.end - regs.start + 1); 1009 priv->regs_win = ioremap(regs.start, regs.end - regs.start + 1);
1010
1011 port->sys_size = (in_be32((priv->regs_win + RIO_PEF_CAR))
1012 & RIO_PEF_CTLS) >> 4;
1013 dev_info(&dev->dev, "RapidIO Common Transport System size: %d\n",
1014 port->sys_size ? 65536 : 256);
1015
1010 priv->atmu_regs = (struct rio_atmu_regs *)(priv->regs_win 1016 priv->atmu_regs = (struct rio_atmu_regs *)(priv->regs_win
1011 + RIO_ATMU_REGS_OFFSET); 1017 + RIO_ATMU_REGS_OFFSET);
1012 priv->maint_atmu_regs = priv->atmu_regs + 1; 1018 priv->maint_atmu_regs = priv->atmu_regs + 1;