summaryrefslogtreecommitdiff
path: root/board/mpc8641hpcn/init.S
diff options
context:
space:
mode:
authorJohn Traill <john.traill@freescale.com>2006-08-09 14:33:50 +0100
committerJon Loeliger <jdl@freescale.com>2006-08-09 11:20:30 -0500
commit8fc8bd2cc479b6cd188fdede4010e0e052970b8a (patch)
tree38fa0ac96ffc225e7ed42d3393d4a88a587f4f9b /board/mpc8641hpcn/init.S
parent91a414c7d1fb0eac912592cd995b30c9f23045c9 (diff)
downloadu-boot-imx-8fc8bd2cc479b6cd188fdede4010e0e052970b8a.zip
u-boot-imx-8fc8bd2cc479b6cd188fdede4010e0e052970b8a.tar.gz
u-boot-imx-8fc8bd2cc479b6cd188fdede4010e0e052970b8a.tar.bz2
Add Rapidio support for the MPC8641HPCN
Signed-off-by: John Traill <john.traill@freescale.com>
Diffstat (limited to 'board/mpc8641hpcn/init.S')
-rw-r--r--board/mpc8641hpcn/init.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/mpc8641hpcn/init.S b/board/mpc8641hpcn/init.S
index 69954a8..c6ea55e 100644
--- a/board/mpc8641hpcn/init.S
+++ b/board/mpc8641hpcn/init.S
@@ -84,6 +84,9 @@
#define LAWAR8 ((LAWAR_TRGT_IF_DDR2 | (LAWAR_SIZE & LAWAR_SIZE_512M)) & ~LAWAR_EN)
#endif
+#define LAWBAR9 ((CFG_RIO_MEM_BASE>>12) & 0xfffff)
+#define LAWAR9 (LAWAR_EN | LAWAR_TRGT_IF_RIO | (LAWAR_SIZE & LAWAR_SIZE_512M))
+
.section .bootpg, "ax"
.globl law_entry
law_entry:
@@ -164,5 +167,14 @@ law_entry:
ori r6,r6,LAWAR8@l
stwu r6, 0x20(r5)
+ /* LAWBAR9, LAWAR9 */
+ lis r6,LAWBAR9@h
+ ori r6,r6,LAWBAR9@l
+ stwu r6, 0x20(r4)
+
+ lis r6,LAWAR9@h
+ ori r6,r6,LAWAR9@l
+ stwu r6, 0x20(r5)
+
blr