[U-Boot-Users] [PATCH 3/3] Add RapidIO support to MPC8641HPCN, MPC8548CDS, MPC8568MDS boards.

Zhang Wei wei.zhang at freescale.com
Thu Jan 10 12:38:02 CET 2008


Signed-off-by: Zhang Wei <wei.zhang at freescale.com>
---
 board/freescale/mpc8548cds/mpc8548cds.c   |    8 ++++++++
 board/freescale/mpc8568mds/mpc8568mds.c   |    9 +++++++++
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |    9 +++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
index 47e2dd8..fe0ff27 100644
--- a/board/freescale/mpc8548cds/mpc8548cds.c
+++ b/board/freescale/mpc8548cds/mpc8548cds.c
@@ -24,6 +24,7 @@
 
 #include <common.h>
 #include <pci.h>
+#include <rio.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_fsl_pci.h>
@@ -517,6 +518,13 @@ int last_stage_init(void)
 	return 0;
 }
 
+#ifdef CONFIG_RAPIDIO
+void rio_init_board()
+{
+	volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
+	fsl_rio_init(&immap->im_rio, 0);
+}
+#endif
 
 #if defined(CONFIG_OF_BOARD_SETUP)
 void
diff --git a/board/freescale/mpc8568mds/mpc8568mds.c b/board/freescale/mpc8568mds/mpc8568mds.c
index 3c3726b..239cf2a 100644
--- a/board/freescale/mpc8568mds/mpc8568mds.c
+++ b/board/freescale/mpc8568mds/mpc8568mds.c
@@ -24,6 +24,7 @@
 
 #include <common.h>
 #include <pci.h>
+#include <rio.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_fsl_pci.h>
@@ -534,6 +535,14 @@ pci_init_board(void)
 }
 #endif /* CONFIG_PCI */
 
+#ifdef CONFIG_RAPIDIO
+void rio_init_board()
+{
+	volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
+	fsl_rio_init(&immap->im_rio, 0);
+}
+#endif
+
 #if defined(CONFIG_OF_BOARD_SETUP)
 void
 ft_board_setup(void *blob, bd_t *bd)
diff --git a/board/freescale/mpc8641hpcn/mpc8641hpcn.c b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
index 8278789..cc7c8be 100644
--- a/board/freescale/mpc8641hpcn/mpc8641hpcn.c
+++ b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
@@ -22,6 +22,7 @@
 
 #include <common.h>
 #include <pci.h>
+#include <rio.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>
 #include <asm/immap_fsl_pci.h>
@@ -321,6 +322,14 @@ void pci_init_board(void)
 
 }
 
+#ifdef CONFIG_RAPIDIO
+void rio_init_board()
+{
+	volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
+	fsl_rio_init(&immap->im_rio, 0);
+}
+#endif
+
 #if defined(CONFIG_OF_BOARD_SETUP)
 void
 ft_board_setup(void *blob, bd_t *bd)
-- 
1.5.2





More information about the U-Boot mailing list