Unverified Commit a45ccf13 authored by Antonio Niño Díaz's avatar Antonio Niño Díaz Committed by GitHub
Browse files

Merge pull request #1804 from antonio-nino-diaz-arm/an/cleanup

Minor cleanup
parents 49dd0481 5e447816
...@@ -38,7 +38,7 @@ work_statistics_t tsp_stats[PLATFORM_CORE_COUNT]; ...@@ -38,7 +38,7 @@ work_statistics_t tsp_stats[PLATFORM_CORE_COUNT];
* linker symbol __BL32_END__. Use these addresses to compute the TSP image * linker symbol __BL32_END__. Use these addresses to compute the TSP image
* size. * size.
******************************************************************************/ ******************************************************************************/
#define BL32_TOTAL_LIMIT (unsigned long)(&__BL32_END__) #define BL32_TOTAL_LIMIT BL32_END
#define BL32_TOTAL_SIZE (BL32_TOTAL_LIMIT - (unsigned long) BL32_BASE) #define BL32_TOTAL_SIZE (BL32_TOTAL_LIMIT - (unsigned long) BL32_BASE)
static tsp_args_t *set_smc_args(uint64_t arg0, static tsp_args_t *set_smc_args(uint64_t arg0,
......
...@@ -103,20 +103,13 @@ File : platform\_def.h [mandatory] ...@@ -103,20 +103,13 @@ File : platform\_def.h [mandatory]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Each platform must ensure that a header file of this name is in the system Each platform must ensure that a header file of this name is in the system
include path with the following constants defined. This may require updating the include path with the following constants defined. This will require updating
list of ``PLAT_INCLUDES`` in the ``platform.mk`` file. In the Arm development the list of ``PLAT_INCLUDES`` in the ``platform.mk`` file.
platforms, this file is found in ``plat/arm/board/<plat_name>/include/``.
Platform ports may optionally use the file `include/plat/common/common\_def.h`_, Platform ports may optionally use the file `include/plat/common/common\_def.h`_,
which provides typical values for some of the constants below. These values are which provides typical values for some of the constants below. These values are
likely to be suitable for all platform ports. likely to be suitable for all platform ports.
Platform ports that want to be aligned with standard Arm platforms (for example
FVP and Juno) may also use `include/plat/arm/common/arm\_def.h`_, which provides
standard values for some of the constants below. However, this requires the
platform port to define additional platform porting constants in
``platform_def.h``. These additional constants are not documented here.
- **#define : PLATFORM\_LINKER\_FORMAT** - **#define : PLATFORM\_LINKER\_FORMAT**
Defines the linker format used by the platform, for example Defines the linker format used by the platform, for example
......
...@@ -69,13 +69,13 @@ ...@@ -69,13 +69,13 @@
* BL images * BL images
*/ */
#if SEPARATE_CODE_AND_RODATA #if SEPARATE_CODE_AND_RODATA
IMPORT_SYM(unsigned long, __TEXT_START__, BL_CODE_BASE); IMPORT_SYM(uintptr_t, __TEXT_START__, BL_CODE_BASE);
IMPORT_SYM(unsigned long, __TEXT_END__, BL_CODE_END); IMPORT_SYM(uintptr_t, __TEXT_END__, BL_CODE_END);
IMPORT_SYM(unsigned long, __RODATA_START__, BL_RO_DATA_BASE); IMPORT_SYM(uintptr_t, __RODATA_START__, BL_RO_DATA_BASE);
IMPORT_SYM(unsigned long, __RODATA_END__, BL_RO_DATA_END); IMPORT_SYM(uintptr_t, __RODATA_END__, BL_RO_DATA_END);
#else #else
IMPORT_SYM(unsigned long, __RO_START__, BL_CODE_BASE); IMPORT_SYM(uintptr_t, __RO_START__, BL_CODE_BASE);
IMPORT_SYM(unsigned long, __RO_END__, BL_CODE_END); IMPORT_SYM(uintptr_t, __RO_END__, BL_CODE_END);
#endif #endif
#if defined(IMAGE_BL1) #if defined(IMAGE_BL1)
...@@ -84,25 +84,22 @@ IMPORT_SYM(uintptr_t, __BL1_ROM_END__, BL1_ROM_END); ...@@ -84,25 +84,22 @@ IMPORT_SYM(uintptr_t, __BL1_ROM_END__, BL1_ROM_END);
IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE); IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE);
IMPORT_SYM(uintptr_t, __BL1_RAM_END__, BL1_RAM_LIMIT); IMPORT_SYM(uintptr_t, __BL1_RAM_END__, BL1_RAM_LIMIT);
#elif defined(IMAGE_BL2) #elif defined(IMAGE_BL2)
IMPORT_SYM(unsigned long, __BL2_END__, BL2_END); IMPORT_SYM(uintptr_t, __BL2_END__, BL2_END);
#elif defined(IMAGE_BL2U) #elif defined(IMAGE_BL2U)
IMPORT_SYM(unsigned long, __BL2U_END__, BL2U_END); IMPORT_SYM(uintptr_t, __BL2U_END__, BL2U_END);
#elif defined(IMAGE_BL31) #elif defined(IMAGE_BL31)
IMPORT_SYM(unsigned long, __BL31_START__, BL31_START); IMPORT_SYM(uintptr_t, __BL31_START__, BL31_START);
IMPORT_SYM(unsigned long, __BL31_END__, BL31_END); IMPORT_SYM(uintptr_t, __BL31_END__, BL31_END);
#elif defined(IMAGE_BL32) #elif defined(IMAGE_BL32)
IMPORT_SYM(unsigned long, __BL32_END__, BL32_END); IMPORT_SYM(uintptr_t, __BL32_END__, BL32_END);
#endif /* IMAGE_BLX */ #endif /* IMAGE_BLX */
/* The following symbols are only exported from the BL2 at EL3 linker script. */ /* The following symbols are only exported from the BL2 at EL3 linker script. */
#if BL2_IN_XIP_MEM && defined(IMAGE_BL2) #if BL2_IN_XIP_MEM && defined(IMAGE_BL2)
extern uintptr_t __BL2_ROM_END__; IMPORT_SYM(uintptr_t, __BL2_ROM_END__, BL2_ROM_END);
#define BL2_ROM_END (uintptr_t)(&__BL2_ROM_END__)
extern uintptr_t __BL2_RAM_START__; IMPORT_SYM(uintptr_t, __BL2_RAM_START__, BL2_RAM_BASE);
extern uintptr_t __BL2_RAM_END__; IMPORT_SYM(uintptr_t, __BL2_RAM_END__, BL2_RAM_END);
#define BL2_RAM_BASE (uintptr_t)(&__BL2_RAM_START__)
#define BL2_RAM_LIMIT (uintptr_t)(&__BL2_RAM_END__)
#endif /* BL2_IN_XIP_MEM */ #endif /* BL2_IN_XIP_MEM */
/* /*
...@@ -113,8 +110,8 @@ extern uintptr_t __BL2_RAM_END__; ...@@ -113,8 +110,8 @@ extern uintptr_t __BL2_RAM_END__;
* page-aligned addresses. * page-aligned addresses.
*/ */
#if USE_COHERENT_MEM #if USE_COHERENT_MEM
IMPORT_SYM(unsigned long, __COHERENT_RAM_START__, BL_COHERENT_RAM_BASE); IMPORT_SYM(uintptr_t, __COHERENT_RAM_START__, BL_COHERENT_RAM_BASE);
IMPORT_SYM(unsigned long, __COHERENT_RAM_END__, BL_COHERENT_RAM_END); IMPORT_SYM(uintptr_t, __COHERENT_RAM_END__, BL_COHERENT_RAM_END);
#endif #endif
/******************************************************************************* /*******************************************************************************
......
...@@ -86,9 +86,10 @@ ...@@ -86,9 +86,10 @@
.endm .endm
/* /*
* Define MMU-enabling functions for EL1 and EL3: * Define MMU-enabling functions for EL1, EL2 and EL3:
* *
* enable_mmu_direct_el1 * enable_mmu_direct_el1
* enable_mmu_direct_el2
* enable_mmu_direct_el3 * enable_mmu_direct_el3
*/ */
define_mmu_enable_func 1 define_mmu_enable_func 1
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include <drivers/console.h> #include <drivers/console.h>
#include <plat/arm/common/plat_arm.h> #include <plat/arm/common/plat_arm.h>
#define BL32_END (unsigned long)(&__BL32_END__)
/* Weak definitions may be overridden in specific ARM standard platform */ /* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak tsp_early_platform_setup #pragma weak tsp_early_platform_setup
#pragma weak tsp_platform_setup #pragma weak tsp_platform_setup
......
...@@ -15,23 +15,6 @@ ...@@ -15,23 +15,6 @@
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <services/secure_partition.h> #include <services/secure_partition.h>
#if USE_COHERENT_MEM
/*
* The next 2 constants identify the extents of the coherent memory region.
* These addresses are used by the MMU setup code and therefore they must be
* page-aligned. It is the responsibility of the linker script to ensure that
* __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols
* refer to page-aligned addresses.
*/
#define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
#define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
#define BL2_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
#define BL2_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
#define BL31_COHERENT_RAM_BASE (uintptr_t)(&__COHERENT_RAM_START__)
#define BL31_COHERENT_RAM_LIMIT (uintptr_t)(&__COHERENT_RAM_END__)
#endif
#define SGI_MAP_FLASH0_RO MAP_REGION_FLAT(V2M_FLASH0_BASE,\ #define SGI_MAP_FLASH0_RO MAP_REGION_FLAT(V2M_FLASH0_BASE,\
V2M_FLASH0_SIZE, \ V2M_FLASH0_SIZE, \
MT_DEVICE | MT_RO | MT_SECURE) MT_DEVICE | MT_RO | MT_SECURE)
......
...@@ -29,26 +29,7 @@ ...@@ -29,26 +29,7 @@
#include <hisi_sram_map.h> #include <hisi_sram_map.h>
#include "hikey_private.h" #include "hikey_private.h"
/* #define BL2_RW_BASE (BL_CODE_END)
* The next 2 constants identify the extents of the code & RO data region.
* These addresses are used by the MMU setup code and therefore they must be
* page-aligned. It is the responsibility of the linker script to ensure that
* __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses.
*/
#define BL2_RO_BASE (unsigned long)(&__RO_START__)
#define BL2_RO_LIMIT (unsigned long)(&__RO_END__)
#define BL2_RW_BASE (BL2_RO_LIMIT)
/*
* The next 2 constants identify the extents of the coherent memory region.
* These addresses are used by the MMU setup code and therefore they must be
* page-aligned. It is the responsibility of the linker script to ensure that
* __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to
* page-aligned addresses.
*/
#define BL2_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
#define BL2_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
static meminfo_t bl2_el3_tzram_layout; static meminfo_t bl2_el3_tzram_layout;
static console_pl011_t console; static console_pl011_t console;
...@@ -295,10 +276,10 @@ void bl2_el3_plat_arch_setup(void) ...@@ -295,10 +276,10 @@ void bl2_el3_plat_arch_setup(void)
{ {
hikey_init_mmu_el3(bl2_el3_tzram_layout.total_base, hikey_init_mmu_el3(bl2_el3_tzram_layout.total_base,
bl2_el3_tzram_layout.total_size, bl2_el3_tzram_layout.total_size,
BL2_RO_BASE, BL_CODE_BASE,
BL2_RO_LIMIT, BL_CODE_END,
BL2_COHERENT_RAM_BASE, BL_COHERENT_RAM_BASE,
BL2_COHERENT_RAM_LIMIT); BL_COHERENT_RAM_END);
} }
void bl2_platform_setup(void) void bl2_platform_setup(void)
......
...@@ -25,25 +25,6 @@ ...@@ -25,25 +25,6 @@
#include "hikey_private.h" #include "hikey_private.h"
/*
* The next 2 constants identify the extents of the code & RO data region.
* These addresses are used by the MMU setup code and therefore they must be
* page-aligned. It is the responsibility of the linker script to ensure that
* __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses.
*/
#define BL31_RO_BASE (unsigned long)(&__RO_START__)
#define BL31_RO_LIMIT (unsigned long)(&__RO_END__)
/*
* The next 2 constants identify the extents of the coherent memory region.
* These addresses are used by the MMU setup code and therefore they must be
* page-aligned. It is the responsibility of the linker script to ensure that
* __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to
* page-aligned addresses.
*/
#define BL31_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
#define BL31_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
static entry_point_info_t bl32_ep_info; static entry_point_info_t bl32_ep_info;
static entry_point_info_t bl33_ep_info; static entry_point_info_t bl33_ep_info;
static console_pl011_t console; static console_pl011_t console;
...@@ -135,10 +116,10 @@ void bl31_plat_arch_setup(void) ...@@ -135,10 +116,10 @@ void bl31_plat_arch_setup(void)
{ {
hikey_init_mmu_el3(BL31_BASE, hikey_init_mmu_el3(BL31_BASE,
BL31_LIMIT - BL31_BASE, BL31_LIMIT - BL31_BASE,
BL31_RO_BASE, BL_CODE_BASE,
BL31_RO_LIMIT, BL_CODE_END,
BL31_COHERENT_RAM_BASE, BL_COHERENT_RAM_BASE,
BL31_COHERENT_RAM_LIMIT); BL_COHERENT_RAM_END);
} }
/* Initialize EDMAC controller with non-secure mode. */ /* Initialize EDMAC controller with non-secure mode. */
......
...@@ -45,8 +45,7 @@ endif ...@@ -45,8 +45,7 @@ endif
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
PLAT_INCLUDES := -Iinclude/common/tbbr \ PLAT_INCLUDES := -Iplat/hisilicon/hikey/include
-Iplat/hisilicon/hikey/include
PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/aarch64/pl011_console.S \ PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/aarch64/pl011_console.S \
lib/xlat_tables/aarch64/xlat_tables.c \ lib/xlat_tables/aarch64/xlat_tables.c \
......
...@@ -28,26 +28,7 @@ ...@@ -28,26 +28,7 @@
#include "hikey960_def.h" #include "hikey960_def.h"
#include "hikey960_private.h" #include "hikey960_private.h"
/* #define BL2_RW_BASE (BL_CODE_END)
* The next 2 constants identify the extents of the code & RO data region.
* These addresses are used by the MMU setup code and therefore they must be
* page-aligned. It is the responsibility of the linker script to ensure that
* __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses.
*/
#define BL2_RO_BASE (unsigned long)(&__RO_START__)
#define BL2_RO_LIMIT (unsigned long)(&__RO_END__)
#define BL2_RW_BASE (BL2_RO_LIMIT)
/*
* The next 2 constants identify the extents of the coherent memory region.
* These addresses are used by the MMU setup code and therefore they must be
* page-aligned. It is the responsibility of the linker script to ensure that
* __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to
* page-aligned addresses.
*/
#define BL2_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
#define BL2_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
static meminfo_t bl2_el3_tzram_layout; static meminfo_t bl2_el3_tzram_layout;
static console_pl011_t console; static console_pl011_t console;
...@@ -312,10 +293,10 @@ void bl2_el3_plat_arch_setup(void) ...@@ -312,10 +293,10 @@ void bl2_el3_plat_arch_setup(void)
{ {
hikey960_init_mmu_el3(bl2_el3_tzram_layout.total_base, hikey960_init_mmu_el3(bl2_el3_tzram_layout.total_base,
bl2_el3_tzram_layout.total_size, bl2_el3_tzram_layout.total_size,
BL2_RO_BASE, BL_CODE_BASE,
BL2_RO_LIMIT, BL_CODE_END,
BL2_COHERENT_RAM_BASE, BL_COHERENT_RAM_BASE,
BL2_COHERENT_RAM_LIMIT); BL_COHERENT_RAM_END);
} }
void bl2_platform_setup(void) void bl2_platform_setup(void)
......
...@@ -27,25 +27,6 @@ ...@@ -27,25 +27,6 @@
#include "hikey960_def.h" #include "hikey960_def.h"
#include "hikey960_private.h" #include "hikey960_private.h"
/*
* The next 2 constants identify the extents of the code & RO data region.
* These addresses are used by the MMU setup code and therefore they must be
* page-aligned. It is the responsibility of the linker script to ensure that
* __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses.
*/
#define BL31_RO_BASE (unsigned long)(&__RO_START__)
#define BL31_RO_LIMIT (unsigned long)(&__RO_END__)
/*
* The next 2 constants identify the extents of the coherent memory region.
* These addresses are used by the MMU setup code and therefore they must be
* page-aligned. It is the responsibility of the linker script to ensure that
* __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to
* page-aligned addresses.
*/
#define BL31_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
#define BL31_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
static entry_point_info_t bl32_ep_info; static entry_point_info_t bl32_ep_info;
static entry_point_info_t bl33_ep_info; static entry_point_info_t bl33_ep_info;
static console_pl011_t console; static console_pl011_t console;
...@@ -140,10 +121,10 @@ void bl31_plat_arch_setup(void) ...@@ -140,10 +121,10 @@ void bl31_plat_arch_setup(void)
{ {
hikey960_init_mmu_el3(BL31_BASE, hikey960_init_mmu_el3(BL31_BASE,
BL31_LIMIT - BL31_BASE, BL31_LIMIT - BL31_BASE,
BL31_RO_BASE, BL_CODE_BASE,
BL31_RO_LIMIT, BL_CODE_END,
BL31_COHERENT_RAM_BASE, BL_COHERENT_RAM_BASE,
BL31_COHERENT_RAM_LIMIT); BL_COHERENT_RAM_END);
} }
static void hikey960_edma_init(void) static void hikey960_edma_init(void)
......
...@@ -40,8 +40,7 @@ endif ...@@ -40,8 +40,7 @@ endif
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
PLAT_INCLUDES := -Iinclude/common/tbbr \ PLAT_INCLUDES := -Iplat/hisilicon/hikey960/include
-Iplat/hisilicon/hikey960/include
PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/aarch64/pl011_console.S \ PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/aarch64/pl011_console.S \
drivers/delay_timer/delay_timer.c \ drivers/delay_timer/delay_timer.c \
......
...@@ -24,14 +24,6 @@ ...@@ -24,14 +24,6 @@
#include "hi3798cv200.h" #include "hi3798cv200.h"
#include "plat_private.h" #include "plat_private.h"
/* Memory ranges for code and read only data sections */
#define BL2_RO_BASE (unsigned long)(&__RO_START__)
#define BL2_RO_LIMIT (unsigned long)(&__RO_END__)
/* Memory ranges for coherent memory section */
#define BL2_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
#define BL2_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
static meminfo_t bl2_tzram_layout __aligned(CACHE_WRITEBACK_GRANULE); static meminfo_t bl2_tzram_layout __aligned(CACHE_WRITEBACK_GRANULE);
static console_pl011_t console; static console_pl011_t console;
...@@ -206,10 +198,10 @@ void bl2_plat_arch_setup(void) ...@@ -206,10 +198,10 @@ void bl2_plat_arch_setup(void)
{ {
plat_configure_mmu_el1(bl2_tzram_layout.total_base, plat_configure_mmu_el1(bl2_tzram_layout.total_base,
bl2_tzram_layout.total_size, bl2_tzram_layout.total_size,
BL2_RO_BASE, BL_CODE_BASE,
BL2_RO_LIMIT, BL_CODE_END,
BL2_COHERENT_RAM_BASE, BL_COHERENT_RAM_BASE,
BL2_COHERENT_RAM_LIMIT); BL_COHERENT_RAM_END);
} }
void bl2_platform_setup(void) void bl2_platform_setup(void)
......
...@@ -25,14 +25,6 @@ ...@@ -25,14 +25,6 @@
#include "hi3798cv200.h" #include "hi3798cv200.h"
#include "plat_private.h" #include "plat_private.h"
/* Memory ranges for code and RO data sections */
#define BL31_RO_BASE (unsigned long)(&__RO_START__)
#define BL31_RO_LIMIT (unsigned long)(&__RO_END__)
/* Memory ranges for coherent memory section */
#define BL31_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
#define BL31_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
#define TZPC_SEC_ATTR_CTRL_VALUE (0x9DB98D45) #define TZPC_SEC_ATTR_CTRL_VALUE (0x9DB98D45)
static entry_point_info_t bl32_image_ep_info; static entry_point_info_t bl32_image_ep_info;
...@@ -133,10 +125,10 @@ void bl31_plat_arch_setup(void) ...@@ -133,10 +125,10 @@ void bl31_plat_arch_setup(void)
{ {
plat_configure_mmu_el3(BL31_BASE, plat_configure_mmu_el3(BL31_BASE,
(BL31_LIMIT - BL31_BASE), (BL31_LIMIT - BL31_BASE),
BL31_RO_BASE, BL_CODE_BASE,
BL31_RO_LIMIT, BL_CODE_END,
BL31_COHERENT_RAM_BASE, BL_COHERENT_RAM_BASE,
BL31_COHERENT_RAM_LIMIT); BL_COHERENT_RAM_END);
INFO("Boot BL33 from 0x%lx for %lu Bytes\n", INFO("Boot BL33 from 0x%lx for %lu Bytes\n",
bl33_image_ep_info.pc, bl33_image_ep_info.args.arg2); bl33_image_ep_info.pc, bl33_image_ep_info.args.arg2);
......
...@@ -53,8 +53,7 @@ PLAT_PL061_MAX_GPIOS := 104 ...@@ -53,8 +53,7 @@ PLAT_PL061_MAX_GPIOS := 104
$(eval $(call add_define,PLAT_PL061_MAX_GPIOS)) $(eval $(call add_define,PLAT_PL061_MAX_GPIOS))
PLAT_INCLUDES := -Iplat/hisilicon/poplar/include \ PLAT_INCLUDES := -Iplat/hisilicon/poplar/include \
-Iplat/hisilicon/poplar \ -Iplat/hisilicon/poplar
-Iinclude/common/tbbr
PLAT_BL_COMMON_SOURCES := \ PLAT_BL_COMMON_SOURCES := \
lib/xlat_tables/aarch64/xlat_tables.c \ lib/xlat_tables/aarch64/xlat_tables.c \
......
...@@ -21,7 +21,6 @@ endif ...@@ -21,7 +21,6 @@ endif
# Platform # Platform
PLAT_INCLUDES := -Idrivers/imx/uart \ PLAT_INCLUDES := -Idrivers/imx/uart \
-Iinclude/common/tbbr \
-Iplat/imx/common/include/ \ -Iplat/imx/common/include/ \
-Iplat/imx/imx7/warp7/include \ -Iplat/imx/imx7/warp7/include \
-Idrivers/imx/timer \ -Idrivers/imx/timer \
......
...@@ -23,8 +23,6 @@ LS1043_SECURITY_SOURCES := plat/layerscape/common/ls_tzc380.c \ ...@@ -23,8 +23,6 @@ LS1043_SECURITY_SOURCES := plat/layerscape/common/ls_tzc380.c \
PLAT_INCLUDES := -Iplat/layerscape/board/ls1043/include \ PLAT_INCLUDES := -Iplat/layerscape/board/ls1043/include \
-Iplat/layerscape/common/include \ -Iplat/layerscape/common/include \
-Iinclude/lib
PLAT_BL_COMMON_SOURCES := plat/layerscape/common/aarch64/ls_console.S PLAT_BL_COMMON_SOURCES := plat/layerscape/common/aarch64/ls_console.S
......
...@@ -15,8 +15,6 @@ SEPARATE_CODE_AND_RODATA := 1 ...@@ -15,8 +15,6 @@ SEPARATE_CODE_AND_RODATA := 1
COLD_BOOT_SINGLE_CPU := 1 COLD_BOOT_SINGLE_CPU := 1
PLAT_INCLUDES += -Iinclude/common/tbbr
PLAT_BL_COMMON_SOURCES += plat/layerscape/common/${ARCH}/ls_helpers.S \ PLAT_BL_COMMON_SOURCES += plat/layerscape/common/${ARCH}/ls_helpers.S \
plat/layerscape/common/ls_common.c plat/layerscape/common/ls_common.c
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <common/interrupt_props.h> #include <common/interrupt_props.h>
#include <drivers/arm/gicv2.h> #include <drivers/arm/gicv2.h>
...@@ -12,8 +13,6 @@ ...@@ -12,8 +13,6 @@
#include "plat_ls.h" #include "plat_ls.h"
#include "soc.h" #include "soc.h"
#define BL32_END (unsigned long)(&__BL32_END__)
static const interrupt_prop_t g0_interrupt_props[] = { static const interrupt_prop_t g0_interrupt_props[] = {
INTR_PROP_DESC(9, GIC_HIGHEST_SEC_PRIORITY, INTR_PROP_DESC(9, GIC_HIGHEST_SEC_PRIORITY,
GICV2_INTR_GROUP0, GIC_INTR_CFG_LEVEL), GICV2_INTR_GROUP0, GIC_INTR_CFG_LEVEL),
......
...@@ -84,14 +84,11 @@ MARVELL_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ ...@@ -84,14 +84,11 @@ MARVELL_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
plat/common/plat_gicv3.c \ plat/common/plat_gicv3.c \
drivers/arm/gic/v3/gic500.c drivers/arm/gic/v3/gic500.c
ATF_INCLUDES := -Iinclude/common/tbbr
PLAT_INCLUDES := -I$(PLAT_FAMILY_BASE)/$(PLAT) \ PLAT_INCLUDES := -I$(PLAT_FAMILY_BASE)/$(PLAT) \
-I$(PLAT_COMMON_BASE)/include \ -I$(PLAT_COMMON_BASE)/include \
-I$(PLAT_INCLUDE_BASE)/common \ -I$(PLAT_INCLUDE_BASE)/common \
-I$(MARVELL_DRV_BASE) \ -I$(MARVELL_DRV_BASE) \
-I$/drivers/arm/gic/common/ \ -I$/drivers/arm/gic/common/
$(ATF_INCLUDES)
PLAT_BL_COMMON_SOURCES := $(PLAT_COMMON_BASE)/aarch64/a3700_common.c \ PLAT_BL_COMMON_SOURCES := $(PLAT_COMMON_BASE)/aarch64/a3700_common.c \
$(MARVELL_COMMON_BASE)/marvell_cci.c \ $(MARVELL_COMMON_BASE)/marvell_cci.c \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment