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
Showing with 112 additions and 86 deletions
+112 -86
...@@ -5,14 +5,16 @@ ...@@ -5,14 +5,16 @@
*/ */
#include <assert.h> #include <assert.h>
#include <debug.h>
#include <errno.h> #include <errno.h>
#include <io_block.h>
#include <io_driver.h>
#include <io_storage.h>
#include <platform_def.h>
#include <string.h> #include <string.h>
#include <utils.h>
#include <platform_def.h>
#include <common/debug.h>
#include <drivers/io/io_block.h>
#include <drivers/io/io_driver.h>
#include <drivers/io/io_storage.h>
#include <lib/utils.h>
typedef struct { typedef struct {
io_block_dev_spec_t *dev_spec; io_block_dev_spec_t *dev_spec;
......
...@@ -5,12 +5,13 @@ ...@@ -5,12 +5,13 @@
*/ */
#include <assert.h> #include <assert.h>
#include <debug.h>
#include <io_driver.h>
#include <io_dummy.h>
#include <io_storage.h>
#include <string.h> #include <string.h>
#include <common/debug.h>
#include <drivers/io/io_driver.h>
#include <drivers/io/io_dummy.h>
#include <drivers/io/io_storage.h>
struct file_state { struct file_state {
int in_use; int in_use;
size_t size; size_t size;
......
...@@ -5,19 +5,21 @@ ...@@ -5,19 +5,21 @@
*/ */
#include <assert.h> #include <assert.h>
#include <bl_common.h>
#include <debug.h>
#include <errno.h> #include <errno.h>
#include <firmware_image_package.h>
#include <io_driver.h>
#include <io_fip.h>
#include <io_storage.h>
#include <platform.h>
#include <platform_def.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include <utils.h>
#include <uuid.h> #include <platform_def.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <drivers/io/io_driver.h>
#include <drivers/io/io_fip.h>
#include <drivers/io/io_storage.h>
#include <lib/utils.h>
#include <plat/common/platform.h>
#include <tools_share/firmware_image_package.h>
#include <tools_share/uuid.h>
#ifndef MAX_FIP_DEVICES #ifndef MAX_FIP_DEVICES
#define MAX_FIP_DEVICES 1 #define MAX_FIP_DEVICES 1
......
...@@ -5,13 +5,15 @@ ...@@ -5,13 +5,15 @@
*/ */
#include <assert.h> #include <assert.h>
#include <debug.h>
#include <io_driver.h>
#include <io_memmap.h>
#include <io_storage.h>
#include <platform_def.h>
#include <string.h> #include <string.h>
#include <utils.h>
#include <platform_def.h>
#include <common/debug.h>
#include <drivers/io/io_driver.h>
#include <drivers/io/io_memmap.h>
#include <drivers/io/io_storage.h>
#include <lib/utils.h>
/* As we need to be able to keep state for seek, only one file can be open /* As we need to be able to keep state for seek, only one file can be open
* at a time. Make this a structure and point to the entity->info. When we * at a time. Make this a structure and point to the entity->info. When we
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
*/ */
#include <assert.h> #include <assert.h>
#include <io_driver.h>
#include <io_semihosting.h>
#include <io_storage.h>
#include <platform_def.h>
#include <semihosting.h>
#include <platform_def.h>
#include <drivers/io/io_driver.h>
#include <drivers/io/io_semihosting.h>
#include <drivers/io/io_storage.h>
#include <lib/semihosting.h>
/* Identify the device type as semihosting */ /* Identify the device type as semihosting */
static io_type_t device_type_sh(void) static io_type_t device_type_sh(void)
......
...@@ -5,11 +5,12 @@ ...@@ -5,11 +5,12 @@
*/ */
#include <assert.h> #include <assert.h>
#include <io_driver.h>
#include <io_storage.h>
#include <platform_def.h>
#include <stddef.h> #include <stddef.h>
#include <platform_def.h>
#include <drivers/io/io_driver.h>
#include <drivers/io/io_storage.h>
/* Storage for a fixed maximum number of IO entities, definable by platform */ /* Storage for a fixed maximum number of IO entities, definable by platform */
static io_entity_t entity_pool[MAX_IO_HANDLES]; static io_entity_t entity_pool[MAX_IO_HANDLES];
......
...@@ -7,9 +7,10 @@ ...@@ -7,9 +7,10 @@
/* AXI to M-Bridge decoding unit driver for Marvell Armada 8K and 8K+ SoCs */ /* AXI to M-Bridge decoding unit driver for Marvell Armada 8K and 8K+ SoCs */
#include <common/debug.h>
#include <lib/mmio.h>
#include <armada_common.h> #include <armada_common.h>
#include <debug.h>
#include <mmio.h>
#include <mvebu.h> #include <mvebu.h>
#include <mvebu_def.h> #include <mvebu_def.h>
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
* https://spdx.org/licenses * https://spdx.org/licenses
*/ */
#include <drivers/delay_timer.h>
#include <drivers/marvell/aro.h>
#include <lib/mmio.h>
#include <a8k_plat_def.h> #include <a8k_plat_def.h>
#include <aro.h>
#include <delay_timer.h>
#include <mmio.h>
/* Notify bootloader on DRAM setup */ /* Notify bootloader on DRAM setup */
#define AP807_CPU_ARO_CTRL(cluster) \ #define AP807_CPU_ARO_CTRL(cluster) \
......
...@@ -9,11 +9,13 @@ ...@@ -9,11 +9,13 @@
* for Marvell SoCs in AP806, AP807, and AP810 * for Marvell SoCs in AP806, AP807, and AP810
*/ */
#include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <cache_llc.h>
#include <ccu.h> #include <arch_helpers.h>
#include <mmio.h> #include <drivers/marvell/cache_llc.h>
#include <drivers/marvell/ccu.h>
#include <lib/mmio.h>
#include <mvebu_def.h> #include <mvebu_def.h>
#define CCU_HTC_CR(ap_index) (MVEBU_CCU_BASE(ap_index) + 0x200) #define CCU_HTC_CR(ap_index) (MVEBU_CCU_BASE(ap_index) + 0x200)
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
/* CCU unit device driver for Marvell AP807, AP807 and AP810 SoCs */ /* CCU unit device driver for Marvell AP807, AP807 and AP810 SoCs */
#include <common/debug.h>
#include <drivers/marvell/ccu.h>
#include <lib/mmio.h>
#include <armada_common.h> #include <armada_common.h>
#include <ccu.h>
#include <debug.h>
#include <mmio.h>
#include <mvebu.h> #include <mvebu.h>
#include <mvebu_def.h> #include <mvebu_def.h>
......
...@@ -5,13 +5,16 @@ ...@@ -5,13 +5,16 @@
* https://spdx.org/licenses * https://spdx.org/licenses
*/ */
#include <debug.h>
#include <delay_timer.h>
#include <errno.h> #include <errno.h>
#include <mmio.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <lib/mmio.h>
#include <lib/spinlock.h>
#include <mvebu.h> #include <mvebu.h>
#include <mvebu_def.h> #include <mvebu_def.h>
#include <spinlock.h>
#include "phy-comphy-3700.h" #include "phy-comphy-3700.h"
#include "phy-comphy-common.h" #include "phy-comphy-common.h"
......
...@@ -7,12 +7,14 @@ ...@@ -7,12 +7,14 @@
/* Marvell CP110 SoC COMPHY unit driver */ /* Marvell CP110 SoC COMPHY unit driver */
#include <debug.h>
#include <delay_timer.h>
#include <errno.h> #include <errno.h>
#include <mmio.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <lib/mmio.h>
#include <lib/spinlock.h>
#include <mvebu_def.h> #include <mvebu_def.h>
#include <spinlock.h>
#include "mvebu.h" #include "mvebu.h"
#include "comphy-cp110.h" #include "comphy-cp110.h"
#include "phy-comphy-cp110.h" #include "phy-comphy-cp110.h"
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
/* GWIN unit device driver for Marvell AP810 SoC */ /* GWIN unit device driver for Marvell AP810 SoC */
#include <common/debug.h>
#include <drivers/marvell/gwin.h>
#include <lib/mmio.h>
#include <armada_common.h> #include <armada_common.h>
#include <debug.h>
#include <gwin.h>
#include <mmio.h>
#include <mvebu.h> #include <mvebu.h>
#include <mvebu_def.h> #include <mvebu_def.h>
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
/* IO Window unit device driver for Marvell AP807, AP807 and AP810 SoCs */ /* IO Window unit device driver for Marvell AP807, AP807 and AP810 SoCs */
#include <common/debug.h>
#include <drivers/marvell/io_win.h>
#include <lib/mmio.h>
#include <armada_common.h> #include <armada_common.h>
#include <debug.h>
#include <io_win.h>
#include <mmio.h>
#include <mvebu.h> #include <mvebu.h>
#include <mvebu_def.h> #include <mvebu_def.h>
......
...@@ -7,11 +7,12 @@ ...@@ -7,11 +7,12 @@
/* IOW unit device driver for Marvell CP110 and CP115 SoCs */ /* IOW unit device driver for Marvell CP110 and CP115 SoCs */
#include <armada_common.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <debug.h> #include <common/debug.h>
#include <iob.h> #include <drivers/marvell/iob.h>
#include <mmio.h> #include <lib/mmio.h>
#include <armada_common.h>
#include <mvebu.h> #include <mvebu.h>
#include <mvebu_def.h> #include <mvebu_def.h>
......
...@@ -5,10 +5,12 @@ ...@@ -5,10 +5,12 @@
* https://spdx.org/licenses * https://spdx.org/licenses
*/ */
#include <addr_map.h> #include <common/debug.h>
#include <debug.h> #include <drivers/marvell/addr_map.h>
#include <mmio.h> #include <lib/mmio.h>
#include <mvebu_def.h> #include <mvebu_def.h>
#include "mc_trustzone.h" #include "mc_trustzone.h"
#define TZ_SIZE(x) ((x) >> 13) #define TZ_SIZE(x) ((x) >> 13)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#ifndef MC_TRUSTZONE_H #ifndef MC_TRUSTZONE_H
#define MC_TRUSTZONE_H #define MC_TRUSTZONE_H
#include <addr_map.h> #include <drivers/marvell/addr_map.h>
#define MVEBU_TZ_MAX_WINS 16 #define MVEBU_TZ_MAX_WINS 16
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
/* MCI bus driver for Marvell ARMADA 8K and 8K+ SoCs */ /* MCI bus driver for Marvell ARMADA 8K and 8K+ SoCs */
#include <debug.h> #include <common/debug.h>
#include <delay_timer.h> #include <drivers/delay_timer.h>
#include <mmio.h> #include <drivers/marvell/mci.h>
#include <mci.h> #include <lib/mmio.h>
#include <mvebu.h> #include <mvebu.h>
#include <mvebu_def.h> #include <mvebu_def.h>
#include <plat_marvell.h> #include <plat_marvell.h>
......
...@@ -7,13 +7,14 @@ ...@@ -7,13 +7,14 @@
/* AP807 Marvell SoC driver */ /* AP807 Marvell SoC driver */
#include <ap_setup.h> #include <common/debug.h>
#include <cache_llc.h> #include <drivers/marvell/cache_llc.h>
#include <ccu.h> #include <drivers/marvell/ccu.h>
#include <debug.h> #include <drivers/marvell/io_win.h>
#include <io_win.h> #include <drivers/marvell/mci.h>
#include <mci.h> #include <drivers/marvell/mochi/ap_setup.h>
#include <mmio.h> #include <lib/mmio.h>
#include <mvebu_def.h> #include <mvebu_def.h>
#define SMMU_sACR (MVEBU_SMMU_BASE + 0x10) #define SMMU_sACR (MVEBU_SMMU_BASE + 0x10)
......
...@@ -7,13 +7,14 @@ ...@@ -7,13 +7,14 @@
/* AP806 Marvell SoC driver */ /* AP806 Marvell SoC driver */
#include <ap_setup.h> #include <common/debug.h>
#include <ccu.h> #include <drivers/marvell/ccu.h>
#include <cache_llc.h> #include <drivers/marvell/cache_llc.h>
#include <debug.h> #include <drivers/marvell/io_win.h>
#include <io_win.h> #include <drivers/marvell/mci.h>
#include <mci.h> #include <drivers/marvell/mochi/ap_setup.h>
#include <mmio.h> #include <lib/mmio.h>
#include <mvebu_def.h> #include <mvebu_def.h>
#define SMMU_sACR (MVEBU_SMMU_BASE + 0x10) #define SMMU_sACR (MVEBU_SMMU_BASE + 0x10)
......
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