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

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

Sanitise includes across codebase
parents 3f99f7e4 8e7b27a4
...@@ -4,11 +4,13 @@ ...@@ -4,11 +4,13 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <bl_common.h>
#include <desc_image_load.h>
#include <platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <debug.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <common/desc_image_load.h>
#include <plat/common/platform.h>
#include <ls_def.h> #include <ls_def.h>
/******************************************************************************* /*******************************************************************************
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
*/ */
#include <asm_macros.S> #include <asm_macros.S>
#include <console.h> #include <drivers/console.h>
#include <platform_def.h> #include <platform_def.h>
.weak plat_my_core_pos .weak plat_my_core_pos
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef LS_16550_H #ifndef LS_16550_H
#define LS_16550_H #define LS_16550_H
#include <console.h> #include <drivers/console.h>
/* UART16550 Registers */ /* UART16550 Registers */
#define UARTTX 0x0 #define UARTTX 0x0
......
...@@ -7,9 +7,10 @@ ...@@ -7,9 +7,10 @@
#ifndef PLAT_LS_H #ifndef PLAT_LS_H
#define PLAT_LS_H #define PLAT_LS_H
#include <cpu_data.h>
#include <stdint.h> #include <stdint.h>
#include <lib/el3_runtime/cpu_data.h>
/* BL1 utility functions */ /* BL1 utility functions */
void ls_bl1_platform_setup(void); void ls_bl1_platform_setup(void);
void ls_bl1_early_platform_setup(void); void ls_bl1_early_platform_setup(void);
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <debug.h> #include <common/debug.h>
#include "ls_16550.h" #include "ls_16550.h"
#include "plat_ls.h" #include "plat_ls.h"
#include "../../../bl1/bl1_private.h" #include "../../../bl1/bl1_private.h"
......
...@@ -5,8 +5,10 @@ ...@@ -5,8 +5,10 @@
*/ */
#include <assert.h> #include <assert.h>
#include <bl_common.h>
#include <desc_image_load.h> #include <common/bl_common.h>
#include <common/desc_image_load.h>
#include "ls_16550.h" #include "ls_16550.h"
#include "plat_ls.h" #include "plat_ls.h"
#include "ls_def.h" #include "ls_def.h"
......
...@@ -5,11 +5,12 @@ ...@@ -5,11 +5,12 @@
*/ */
#include <assert.h> #include <assert.h>
#include <bl_common.h>
#include <console.h> #include <common/bl_common.h>
#include <gicv2.h> #include <common/interrupt_props.h>
#include <interrupt_props.h> #include <drivers/arm/gicv2.h>
#include <mmio.h> #include <drivers/console.h>
#include <lib/mmio.h>
#include "ls_16550.h" #include "ls_16550.h"
#include "plat_ls.h" #include "plat_ls.h"
......
...@@ -3,13 +3,16 @@ ...@@ -3,13 +3,16 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <assert.h>
#include <platform_def.h>
#include <arch.h> #include <arch.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <xlat_tables_v2.h> #include <common/debug.h>
#include <assert.h> #include <lib/mmio.h>
#include <debug.h> #include <lib/xlat_tables/xlat_tables_v2.h>
#include <mmio.h>
#include "platform_def.h"
const mmap_region_t *plat_ls_get_mmap(void); const mmap_region_t *plat_ls_get_mmap(void);
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <desc_image_load.h> #include <common/desc_image_load.h>
#include "ls_def.h" #include "ls_def.h"
/******************************************************************************* /*******************************************************************************
......
...@@ -3,14 +3,17 @@ ...@@ -3,14 +3,17 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <assert.h> #include <assert.h>
#include <debug.h>
#include <firmware_image_package.h> #include <platform_def.h>
#include <io_driver.h>
#include <io_fip.h> #include <common/debug.h>
#include <io_memmap.h> #include <drivers/io/io_driver.h>
#include <io_storage.h> #include <drivers/io/io_fip.h>
#include "platform_def.h" #include <drivers/io/io_memmap.h>
#include <drivers/io/io_storage.h>
#include <tools_share/firmware_image_package.h>
/* IO devices */ /* IO devices */
static const io_dev_connector_t *fip_dev_con; static const io_dev_connector_t *fip_dev_con;
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <mmio.h>
#include <delay_timer.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <drivers/delay_timer.h>
#include <lib/mmio.h>
#define TIMER_BASE_ADDR 0x02B00000 #define TIMER_BASE_ADDR 0x02B00000
......
...@@ -4,10 +4,13 @@ ...@@ -4,10 +4,13 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <debug.h>
#include <mmio.h>
#include <endian.h> #include <endian.h>
#include "platform_def.h"
#include <platform_def.h>
#include <common/debug.h>
#include <lib/mmio.h>
#include "soc_tzasc.h" #include "soc_tzasc.h"
int tzc380_set_region(unsigned int tzasc_base, unsigned int region_id, int tzc380_set_region(unsigned int tzasc_base, unsigned int region_id,
......
...@@ -4,11 +4,14 @@ ...@@ -4,11 +4,14 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <mmio.h>
#include <endian.h> #include <endian.h>
#include <debug.h>
#include <platform_def.h>
#include <common/debug.h>
#include <lib/mmio.h>
#include "ns_access.h" #include "ns_access.h"
#include "platform_def.h"
static void enable_devices_ns_access(struct csu_ns_dev *ns_dev, uint32_t num) static void enable_devices_ns_access(struct csu_ns_dev *ns_dev, uint32_t num)
{ {
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <debug.h> #include <common/debug.h>
#include <gicv2.h> #include <common/interrupt_props.h>
#include <interrupt_props.h> #include <drivers/arm/gicv2.h>
#include "ls_16550.h" #include "ls_16550.h"
#include "plat_ls.h" #include "plat_ls.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
* https://spdx.org/licenses * https://spdx.org/licenses
*/ */
#include <a3700_pm.h> #include <a3700_pm.h>
#include <plat_marvell.h> #include <plat_marvell.h>
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
* https://spdx.org/licenses * https://spdx.org/licenses
*/ */
#include <lib/mmio.h>
#include <armada_common.h> #include <armada_common.h>
#include <dram_win.h> #include <dram_win.h>
#include <io_addr_dec.h> #include <io_addr_dec.h>
#include <mmio.h>
#include <marvell_plat_priv.h> #include <marvell_plat_priv.h>
#include <plat_marvell.h> #include <plat_marvell.h>
......
...@@ -84,14 +84,12 @@ MARVELL_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ ...@@ -84,14 +84,12 @@ 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 \ ATF_INCLUDES := -Iinclude/common/tbbr
-Iinclude/drivers
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) \
-Iinclude/drivers/marvell/uart \
-I$/drivers/arm/gic/common/ \ -I$/drivers/arm/gic/common/ \
$(ATF_INCLUDES) $(ATF_INCLUDES)
......
...@@ -5,11 +5,13 @@ ...@@ -5,11 +5,13 @@
* https://spdx.org/licenses * https://spdx.org/licenses
*/ */
#include <debug.h> #include <common/debug.h>
#include <common/runtime_svc.h>
#include <lib/smccc.h>
#include <marvell_plat_priv.h> #include <marvell_plat_priv.h>
#include <plat_marvell.h> #include <plat_marvell.h>
#include <runtime_svc.h>
#include <smccc.h>
#include "comphy/phy-comphy-3700.h" #include "comphy/phy-comphy-3700.h"
/* Comphy related FID's */ /* Comphy related FID's */
......
...@@ -5,12 +5,14 @@ ...@@ -5,12 +5,14 @@
* https://spdx.org/licenses * https://spdx.org/licenses
*/ */
#include <string.h>
#include <lib/mmio.h>
#include <dram_win.h> #include <dram_win.h>
#include <marvell_plat_priv.h> #include <marvell_plat_priv.h>
#include <mmio.h>
#include <mvebu.h> #include <mvebu.h>
#include <plat_marvell.h> #include <plat_marvell.h>
#include <string.h>
/* Armada 3700 has 5 configurable windows */ /* Armada 3700 has 5 configurable windows */
#define MV_CPU_WIN_NUM 5 #define MV_CPU_WIN_NUM 5
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
#ifndef DRAM_WIN_H #ifndef DRAM_WIN_H
#define DRAM_WIN_H #define DRAM_WIN_H
#include <bl_common.h> #include <common/bl_common.h>
#include <io_addr_dec.h> #include <io_addr_dec.h>
void dram_win_map_build(struct dram_win_map *win_map); void dram_win_map_build(struct dram_win_map *win_map);
......
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