summaryrefslogtreecommitdiff
path: root/board/socrates/socrates.c
diff options
context:
space:
mode:
authorSergei Poselenov <sposelenov@emcraft.com>2008-06-06 15:42:41 +0200
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-06-11 00:30:09 -0500
commit59abd15b43cab7a4d19de4ba0943837d9555f7ba (patch)
tree3cac646776cda715f7bc54c7c7566f9e7d5965db /board/socrates/socrates.c
parent740280e68ccc0b971e613face7eaaa8bd1382b8c (diff)
downloadu-boot-imx-59abd15b43cab7a4d19de4ba0943837d9555f7ba.zip
u-boot-imx-59abd15b43cab7a4d19de4ba0943837d9555f7ba.tar.gz
u-boot-imx-59abd15b43cab7a4d19de4ba0943837d9555f7ba.tar.bz2
Socrates: Added FPGA mapping. LAWs and TLBs cleanup.
Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
Diffstat (limited to 'board/socrates/socrates.c')
-rw-r--r--board/socrates/socrates.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c
index 3c1e826..a75e0c3 100644
--- a/board/socrates/socrates.c
+++ b/board/socrates/socrates.c
@@ -37,6 +37,9 @@
#include <fdt_support.h>
#include <asm/io.h>
+#if defined(CFG_FPGA_BASE)
+#include "upm_table.h"
+#endif
DECLARE_GLOBAL_DATA_PTR;
extern flash_info_t flash_info[]; /* FLASH chips info */
@@ -76,7 +79,10 @@ int checkboard (void)
* Initialize local bus.
*/
local_bus_init ();
-
+#if defined(CFG_FPGA_BASE)
+ /* Init UPMA for FPGA access */
+ upmconfig(UPMA, (uint *)UPMTableA, sizeof(UPMTableA)/sizeof(int));
+#endif
return 0;
}