ARM: SPRD: fix build warnings for sc8830
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / cpu / armv7 / sc8830 / mmu.c
index 8c4d12b..828af8a 100644 (file)
@@ -1,6 +1,7 @@
 
 #include <asm/arch/sci_types.h>
 extern void MMU_EnableIDCM (void);
+extern void MMU_InvalideICACHEALL(void);
 /**********************************************************************
   Section Descriptor:
   31                   20 19        12 11 10  9  8   5  4  3  2  1  0
@@ -52,7 +53,7 @@ void MMU_Init (unsigned pageBaseAddr)
     int i;
 
     // 15Mb physical addr for page table
-    g_mmu_page_table = const_MMUTableStartAddr;
+    g_mmu_page_table = (unsigned int *)const_MMUTableStartAddr;
 
     // Create page table 1mb entries
     for (i = 0; i < 0x1000; i++)