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

Merge pull request #1784 from antonio-nino-diaz-arm/an/includes-arm

plat/arm: Cleanup of includes and drivers
parents bc153881 560293bb
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include "../../../../../include/plat/arm/board/common/board_arm_oid.h"
#include <plat/arm/board/common/board_arm_oid.h>
/* /*
* Required platform OIDs * Required platform OIDs
......
...@@ -9,14 +9,13 @@ ...@@ -9,14 +9,13 @@
#include <drivers/arm/tzc400.h> #include <drivers/arm/tzc400.h>
#include <drivers/arm/tzc_common.h> #include <drivers/arm/tzc_common.h>
#include <plat/arm/board/common/board_css_def.h>
#include <plat/arm/board/common/v2m_def.h>
#include <plat/arm/common/arm_def.h>
#include <plat/arm/css/common/css_def.h>
#include <plat/arm/soc/common/soc_css_def.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
#include <arm_def.h>
#include <board_css_def.h>
#include <css_def.h>
#include <soc_css_def.h>
#include <v2m_def.h>
/* CPU topology */ /* CPU topology */
#define PLAT_ARM_CLUSTER_COUNT 1 #define PLAT_ARM_CLUSTER_COUNT 1
#define PLAT_ARM_CLUSTER_CORE_COUNT 8 #define PLAT_ARM_CLUSTER_CORE_COUNT 8
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/arm/soc/common/soc_css.h>
#include <plat_arm.h>
#include <sgm_plat_config.h> #include <sgm_plat_config.h>
#include <soc_css.h>
void bl1_early_platform_setup(void) void bl1_early_platform_setup(void)
{ {
......
...@@ -6,13 +6,12 @@ ...@@ -6,13 +6,12 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/css/css_mhu_doorbell.h>
#include <drivers/arm/css/scmi.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
#include <sgm_plat_config.h> #include <sgm_plat_config.h>
#include "../../css/drivers/scmi/scmi.h"
#include "../../css/drivers/mhu/css_mhu_doorbell.h"
static scmi_channel_plat_info_t sgm775_scmi_plat_info = { static scmi_channel_plat_info_t sgm775_scmi_plat_info = {
.scmi_mbx_mem = CSS_SCMI_PAYLOAD_BASE, .scmi_mbx_mem = CSS_SCMI_PAYLOAD_BASE,
.db_reg_addr = PLAT_CSS_MHU_BASE + CSS_SCMI_MHU_DB_REG_OFF, .db_reg_addr = PLAT_CSS_MHU_BASE + CSS_SCMI_MHU_DB_REG_OFF,
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
#include <sgm_variant.h> #include <sgm_variant.h>
/* /*
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#include <platform_def.h> #include <platform_def.h>
#include <common/debug.h> #include <common/debug.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
#include <sgm_plat_config.h> #include <sgm_plat_config.h>
#include <sgm_variant.h> #include <sgm_variant.h>
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/tzc_dmc500.h> #include <drivers/arm/tzc_dmc500.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/arm/soc/common/soc_css.h>
#include <plat_arm.h>
#include <sgm_variant.h> #include <sgm_variant.h>
#include <soc_css.h>
/* Is populated with the DMC-500 controllers base addresses */ /* Is populated with the DMC-500 controllers base addresses */
static tzc_dmc500_driver_data_t plat_driver_data; static tzc_dmc500_driver_data_t plat_driver_data;
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <plat_arm.h> #include <plat/arm/common/plat_arm.h>
#include <sgm_plat_config.h> #include <sgm_plat_config.h>
/******************************************************************************* /*******************************************************************************
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <plat_arm.h> #include <plat/arm/common/plat_arm.h>
#include <sgm_plat_config.h> #include <sgm_plat_config.h>
void tsp_early_platform_setup(void) void tsp_early_platform_setup(void)
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# #
PLAT_INCLUDES += -Iinclude/plat/arm/soc/common/
#PLAT_BL_COMMON_SOURCES += #PLAT_BL_COMMON_SOURCES +=
BL1_SOURCES += plat/arm/soc/common/soc_css_security.c BL1_SOURCES += plat/arm/soc/common/soc_css_security.c
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
#include <drivers/arm/nic_400.h> #include <drivers/arm/nic_400.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <plat/arm/soc/common/soc_css.h>
#include <soc_css.h>
void soc_css_init_nic400(void) void soc_css_init_nic400(void)
{ {
......
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
#include <drivers/console.h> #include <drivers/console.h>
#include <drivers/generic_delay_timer.h> #include <drivers/generic_delay_timer.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <mcucfg.h> #include <mcucfg.h>
#include <mtcmos.h> #include <mtcmos.h>
#include <mtk_plat_common.h> #include <mtk_plat_common.h>
#include <plat_arm.h>
#include <plat_private.h> #include <plat_private.h>
#include <spm.h> #include <spm.h>
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
#include <lib/bakery_lock.h> #include <lib/bakery_lock.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
#include <plat/arm/common/plat_arm.h>
#include <mcucfg.h> #include <mcucfg.h>
#include <mt8173_def.h> #include <mt8173_def.h>
#include <mt_cpuxgpt.h> /* generic_timer_backup() */ #include <mt_cpuxgpt.h> /* generic_timer_backup() */
#include <plat_arm.h>
#include <plat_private.h> #include <plat_private.h>
#include <power_tracer.h> #include <power_tracer.h>
#include <rtc.h> #include <rtc.h>
......
...@@ -9,7 +9,6 @@ MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT} ...@@ -9,7 +9,6 @@ MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
PLAT_INCLUDES := -I${MTK_PLAT}/common/ \ PLAT_INCLUDES := -I${MTK_PLAT}/common/ \
-I${MTK_PLAT}/common/drivers/uart/ \ -I${MTK_PLAT}/common/drivers/uart/ \
-Iinclude/plat/arm/common \
-Iinclude/plat/arm/common/aarch64 \ -Iinclude/plat/arm/common/aarch64 \
-I${MTK_PLAT_SOC}/drivers/crypt/ \ -I${MTK_PLAT_SOC}/drivers/crypt/ \
-I${MTK_PLAT_SOC}/drivers/mtcmos/ \ -I${MTK_PLAT_SOC}/drivers/mtcmos/ \
......
...@@ -11,10 +11,11 @@ ...@@ -11,10 +11,11 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/console.h> #include <drivers/console.h>
#include <plat_arm.h> #include <plat/arm/common/plat_arm.h>
#include <plat_private.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_private.h>
#define BL31_END (unsigned long)(&__BL31_END__) #define BL31_END (unsigned long)(&__BL31_END__)
static entry_point_info_t bl32_image_ep_info; static entry_point_info_t bl32_image_ep_info;
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
#include <drivers/arm/gicv2.h> #include <drivers/arm/gicv2.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
#include <plat_private.h> #include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h> #include <plat_private.h>
#include "pm_api_sys.h" #include "pm_api_sys.h"
#include "pm_client.h" #include "pm_client.h"
......
...@@ -45,8 +45,7 @@ ifdef ZYNQMP_WDT_RESTART ...@@ -45,8 +45,7 @@ ifdef ZYNQMP_WDT_RESTART
$(eval $(call add_define,ZYNQMP_WDT_RESTART)) $(eval $(call add_define,ZYNQMP_WDT_RESTART))
endif endif
PLAT_INCLUDES := -Iinclude/plat/arm/common/ \ PLAT_INCLUDES := -Iinclude/plat/arm/common/aarch64/ \
-Iinclude/plat/arm/common/aarch64/ \
-Iplat/xilinx/common/include/ \ -Iplat/xilinx/common/include/ \
-Iplat/xilinx/zynqmp/include/ \ -Iplat/xilinx/zynqmp/include/ \
-Iplat/xilinx/zynqmp/pm_service/ \ -Iplat/xilinx/zynqmp/pm_service/ \
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/console.h> #include <drivers/console.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
#include <plat_private.h> #include <plat_private.h>
#include <platform_tsp.h> #include <platform_tsp.h>
......
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