From: Zhang Wei <wei.zhang@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 3/3] Add RapidIO support to MPC8641HPCN, MPC8548CDS, MPC8568MDS boards.
Date: Thu, 10 Jan 2008 19:38:02 +0800 [thread overview]
Message-ID: <11999650841086-git-send-email-wei.zhang@freescale.com> (raw)
In-Reply-To: <11999650831630-git-send-email-wei.zhang@freescale.com>
Signed-off-by: Zhang Wei <wei.zhang@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
next prev parent reply other threads:[~2008-01-10 11:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-10 11:38 [U-Boot-Users] [PATCH 1/3] Add the RapidIO framework for U-Boot Zhang Wei
2008-01-10 11:38 ` [U-Boot-Users] [PATCH 2/3] Fixed the error in immap RapidIO definition Zhang Wei
2008-01-10 11:38 ` Zhang Wei [this message]
2008-01-10 14:43 ` [U-Boot-Users] [PATCH 1/3] Add the RapidIO framework for U-Boot Kumar Gala
2008-01-11 2:10 ` Zhang Wei
2008-01-11 4:41 ` Kumar Gala
2008-01-11 5:06 ` Zhang Wei
2008-01-11 5:40 ` Kumar Gala
2008-01-11 9:27 ` Zhang Wei
2008-01-11 15:38 ` Kumar Gala
2008-01-12 20:06 ` Wolfgang Denk
2008-01-12 20:11 ` Wolfgang Denk
2008-01-12 23:07 ` Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11999650841086-git-send-email-wei.zhang@freescale.com \
--to=wei.zhang@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox