sgi/mmap: Remove SGI specific MMAP functions
authorChandni Cherukuri <[email protected]>
Thu, 14 Jun 2018 11:17:43 +0000 (16:47 +0530)
committerChandni Cherukuri <[email protected]>
Fri, 15 Jun 2018 04:47:36 +0000 (10:17 +0530)
Remove the redundant SGI functions which map memory
for BL1 and BL2.

Change-Id: I651a06d0eb6d28263a56f59701bb3815f1ba93dc
Signed-off-by: Chandni Cherukuri <[email protected]>
plat/arm/css/sgi/sgi_plat.c

index 94d713d99d0192e22dfe1f5d4e095d5d04d7c354..7e1d4e207946c1cdccbff91fc2ee10e433c34f43 100644 (file)
@@ -72,50 +72,3 @@ const mmap_region_t plat_arm_mmap[] = {
 #endif
 
 ARM_CASSERT_MMAP
-
-/*
- * Set up the page tables for the generic and platform-specific memory regions.
- * The extents of the generic memory regions are specified by the function
- * arguments and consist of:
- * - Trusted SRAM seen by the BL image;
- * - Code section;
- * - Read-only data section;
- * - Coherent memory region, if applicable.
- */
-
-#if IMAGE_BL1
-void bl1_plat_arch_setup(void)
-{
-       arm_setup_page_tables(ARM_BL_RAM_BASE,
-                             ARM_BL_RAM_SIZE,
-                             BL_CODE_BASE,
-                             BL1_CODE_END,
-                             BL1_RO_DATA_BASE,
-                             BL1_RO_DATA_END
-#if USE_COHERENT_MEM
-                             , BL1_COHERENT_RAM_BASE,
-                             BL1_COHERENT_RAM_LIMIT
-#endif /* USE_COHERENT_MEM */
-                            );
-
-       enable_mmu_el3(0);
-}
-#endif /* IMAGE_BL1 */
-
-#if IMAGE_BL2
-void bl2_plat_arch_setup(void)
-{
-       arm_setup_page_tables(BL2_BASE,
-                             BL2_LIMIT-BL2_BASE,
-                             BL_CODE_BASE,
-                             BL_CODE_END,
-                             BL_RO_DATA_BASE,
-                             BL_RO_DATA_END
-#if USE_COHERENT_MEM
-                             , BL2_COHERENT_RAM_BASE,
-                             BL2_COHERENT_RAM_LIMIT
-#endif /* USE_COHERENT_MEM */
-                             );
-       enable_mmu_el1(0);
-}
-#endif /* IMAGE_BL2 */