summaryrefslogtreecommitdiff
path: root/cleopatre/u-boot-1.1.6/common
diff options
context:
space:
mode:
authordraskovic2009-09-18 16:18:56 +0000
committerdraskovic2009-09-18 16:18:56 +0000
commitafc6457dcbfc001efde3ff4afc7bcba842aa106b (patch)
tree5d1d5b8ee933496c7ed3bd4f7194e2a359710877 /cleopatre/u-boot-1.1.6/common
parentec096367e833830d5ff2e3dda0002178ee13aa21 (diff)
[CLEO][SPK300G][U-BOOT] Correced compilation wornings by re-defining MMU switch on function.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5616 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cleopatre/u-boot-1.1.6/common')
-rw-r--r--cleopatre/u-boot-1.1.6/common/cmd_mmuon.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/cleopatre/u-boot-1.1.6/common/cmd_mmuon.c b/cleopatre/u-boot-1.1.6/common/cmd_mmuon.c
index 17c5772216..421d8fe611 100644
--- a/cleopatre/u-boot-1.1.6/common/cmd_mmuon.c
+++ b/cleopatre/u-boot-1.1.6/common/cmd_mmuon.c
@@ -391,8 +391,7 @@ void readFAR(void)
}
-/* putting it all together */
-int do_mmuon (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+void enable_mmu(void)
{
/* WARNING this command is used during SPC300 board_init before uart
* was configured, so printf can't be used */
@@ -411,7 +410,7 @@ int do_mmuon (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
/* Part 2 filling page tables with translation & attribute data */
mmuMapRegion(&wholeRegion); /* background region */
- //mmuMapRegion(&spiRegion); /* Map spiRegion MasterPT */
+ //mmuMapRegion(&spiRegion); /* Map spiRegion MasterPT */
mmuMapRegion(&pageTableRegion); /* Map pagetableRegion (one part of SDRAM) MasterPT */
mmuMapRegion(&ubootRegion); /* Map ubootRegion (rest of SDRAM) MasterPT */
mmuMapRegion(&peripheralRegion); /* Map peripheralRegion MasterPT */
@@ -431,10 +430,14 @@ int do_mmuon (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
controlSet(enable, change); /* enable cache and MMU */
-// printf ("MMU and caches turned on.\n");
+ //printf ("MMU and caches turned on.\n");
//memset ((char*)0x40100000, 0xff, 20);
-
+}
+/* putting it all together */
+int do_mmuon (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+{
+ enable_mmu();
return 0;
}