From: Chandni Cherukuri Date: Thu, 14 Jun 2018 11:17:43 +0000 (+0530) Subject: sgi/mmap: Remove SGI specific MMAP functions X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=649b43f82df9aa6a0ff97e1a622a75591db755a1;p=project%2Fbcm63xx%2Fatf.git sgi/mmap: Remove SGI specific MMAP functions Remove the redundant SGI functions which map memory for BL1 and BL2. Change-Id: I651a06d0eb6d28263a56f59701bb3815f1ba93dc Signed-off-by: Chandni Cherukuri --- diff --git a/plat/arm/css/sgi/sgi_plat.c b/plat/arm/css/sgi/sgi_plat.c index 94d713d9..7e1d4e20 100644 --- a/plat/arm/css/sgi/sgi_plat.c +++ b/plat/arm/css/sgi/sgi_plat.c @@ -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 */