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
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef STM32MP1_RCC_H #ifndef STM32MP1_RCC_H
#define STM32MP1_RCC_H #define STM32MP1_RCC_H
#include <utils_def.h> #include <lib/utils_def.h>
#define RCC_TZCR U(0x00) #define RCC_TZCR U(0x00)
#define RCC_OCENSETR U(0x0C) #define RCC_OCENSETR U(0x0C)
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#ifndef STPMU1_H #ifndef STPMU1_H
#define STPMU1_H #define STPMU1_H
#include <stm32_i2c.h> #include <drivers/st/stm32_i2c.h>
#include <utils_def.h> #include <lib/utils_def.h>
#define TURN_ON_REG 0x1U #define TURN_ON_REG 0x1U
#define TURN_OFF_REG 0x2U #define TURN_OFF_REG 0x2U
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef DW_MMC_H #ifndef DW_MMC_H
#define DW_MMC_H #define DW_MMC_H
#include <mmc.h> #include <drivers/mmc.h>
typedef struct dw_mmc_params { typedef struct dw_mmc_params {
uintptr_t reg_base; uintptr_t reg_base;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef UART_16550_H #ifndef UART_16550_H
#define UART_16550_H #define UART_16550_H
#include <console.h> #include <drivers/console.h>
/* UART16550 Registers */ /* UART16550 Registers */
#define UARTTX 0x0 #define UARTTX 0x0
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef UFS_H #ifndef UFS_H
#define UFS_H #define UFS_H
#include <utils_def.h> #include <lib/utils_def.h>
/* register map of UFSHCI */ /* register map of UFSHCI */
/* Controller Capabilities */ /* Controller Capabilities */
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
#include <cdefs.h> #include <cdefs.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <utils_def.h>
#include <lib/utils_def.h>
/***************************************************************************** /*****************************************************************************
* Internal helpers used by the bakery lock implementation. * Internal helpers used by the bakery lock implementation.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef CORTEX_A57_H #ifndef CORTEX_A57_H
#define CORTEX_A57_H #define CORTEX_A57_H
#include <utils_def.h> #include <lib/utils_def.h>
/* Cortex-A57 midr for revision 0 */ /* Cortex-A57 midr for revision 0 */
#define CORTEX_A57_MIDR 0x410FD070 #define CORTEX_A57_MIDR 0x410FD070
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
#ifndef CORTEX_A72_H #ifndef CORTEX_A72_H
#define CORTEX_A72_H #define CORTEX_A72_H
#include <utils_def.h>
#include <lib/utils_def.h>
/* Cortex-A72 midr for revision 0 */ /* Cortex-A72 midr for revision 0 */
#define CORTEX_A72_MIDR 0x410FD080 #define CORTEX_A72_MIDR 0x410FD080
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#define CPU_MACROS_S #define CPU_MACROS_S
#include <arch.h> #include <arch.h>
#include <errata_report.h> #include <lib/cpus/errata_report.h>
#if defined(IMAGE_BL1) || defined(IMAGE_BL32) || (defined(IMAGE_BL2) && BL2_AT_EL3) #if defined(IMAGE_BL1) || defined(IMAGE_BL32) || (defined(IMAGE_BL2) && BL2_AT_EL3)
#define IMAGE_AT_EL3 #define IMAGE_AT_EL3
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
#ifndef CORTEX_A57_H #ifndef CORTEX_A57_H
#define CORTEX_A57_H #define CORTEX_A57_H
#include <utils_def.h>
#include <lib/utils_def.h>
/* Cortex-A57 midr for revision 0 */ /* Cortex-A57 midr for revision 0 */
#define CORTEX_A57_MIDR U(0x410FD070) #define CORTEX_A57_MIDR U(0x410FD070)
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
#ifndef CORTEX_A72_H #ifndef CORTEX_A72_H
#define CORTEX_A72_H #define CORTEX_A72_H
#include <utils_def.h>
#include <lib/utils_def.h>
/* Cortex-A72 midr for revision 0 */ /* Cortex-A72 midr for revision 0 */
#define CORTEX_A72_MIDR 0x410FD080 #define CORTEX_A72_MIDR 0x410FD080
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef CORTEX_A75_H #ifndef CORTEX_A75_H
#define CORTEX_A75_H #define CORTEX_A75_H
#include <utils_def.h> #include <lib/utils_def.h>
/* Cortex-A75 MIDR */ /* Cortex-A75 MIDR */
#define CORTEX_A75_MIDR U(0x410fd0a0) #define CORTEX_A75_MIDR U(0x410fd0a0)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef CORTEX_ARES_H #ifndef CORTEX_ARES_H
#define CORTEX_ARES_H #define CORTEX_ARES_H
#include <utils_def.h> #include <lib/utils_def.h>
/* Cortex-ARES MIDR for revision 0 */ /* Cortex-ARES MIDR for revision 0 */
#define CORTEX_ARES_MIDR U(0x410fd0c0) #define CORTEX_ARES_MIDR U(0x410fd0c0)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#define CPU_MACROS_S #define CPU_MACROS_S
#include <arch.h> #include <arch.h>
#include <errata_report.h> #include <lib/cpus/errata_report.h>
#define CPU_IMPL_PN_MASK (MIDR_IMPL_MASK << MIDR_IMPL_SHIFT) | \ #define CPU_IMPL_PN_MASK (MIDR_IMPL_MASK << MIDR_IMPL_SHIFT) | \
(MIDR_PN_MASK << MIDR_PN_SHIFT) (MIDR_PN_MASK << MIDR_PN_SHIFT)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef DSU_DEF_H #ifndef DSU_DEF_H
#define DSU_DEF_H #define DSU_DEF_H
#include <utils_def.h> #include <lib/utils_def.h>
/******************************************************************** /********************************************************************
* DSU control registers definitions * * DSU control registers definitions *
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include <arch.h> #include <arch.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <spinlock.h> #include <lib/spinlock.h>
#include <utils_def.h> #include <lib/utils_def.h>
#if DEBUG #if DEBUG
void print_errata_status(void); void print_errata_status(void);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef CONTEXT_H #ifndef CONTEXT_H
#define CONTEXT_H #define CONTEXT_H
#include <utils_def.h> #include <lib/utils_def.h>
/******************************************************************************* /*******************************************************************************
* Constants that allow assembler code to access members of and the 'regs' * Constants that allow assembler code to access members of and the 'regs'
...@@ -26,9 +26,10 @@ ...@@ -26,9 +26,10 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <cassert.h>
#include <stdint.h> #include <stdint.h>
#include <lib/cassert.h>
/* /*
* Common constants to help define the 'cpu_context' structure and its * Common constants to help define the 'cpu_context' structure and its
* members below. * members below.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef CONTEXT_H #ifndef CONTEXT_H
#define CONTEXT_H #define CONTEXT_H
#include <utils_def.h> #include <lib/utils_def.h>
/******************************************************************************* /*******************************************************************************
* Constants that allow assembler code to access members of and the 'gp_regs' * Constants that allow assembler code to access members of and the 'gp_regs'
...@@ -180,10 +180,12 @@ ...@@ -180,10 +180,12 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <cassert.h>
#include <platform_def.h> /* for CACHE_WRITEBACK_GRANULE */
#include <stdint.h> #include <stdint.h>
#include <platform_def.h> /* for CACHE_WRITEBACK_GRANULE */
#include <lib/cassert.h>
/* /*
* Common constants to help define the 'cpu_context' structure and its * Common constants to help define the 'cpu_context' structure and its
* members below. * members below.
......
...@@ -7,11 +7,12 @@ ...@@ -7,11 +7,12 @@
#ifndef CONTEXT_MGMT_H #ifndef CONTEXT_MGMT_H
#define CONTEXT_MGMT_H #define CONTEXT_MGMT_H
#include <arch.h>
#include <assert.h> #include <assert.h>
#include <context.h> #include <context.h>
#include <stdint.h> #include <stdint.h>
#include <arch.h>
/******************************************************************************* /*******************************************************************************
* Forward declarations * Forward declarations
******************************************************************************/ ******************************************************************************/
......
...@@ -7,9 +7,10 @@ ...@@ -7,9 +7,10 @@
#ifndef CPU_DATA_H #ifndef CPU_DATA_H
#define CPU_DATA_H #define CPU_DATA_H
#include <ehf.h>
#include <platform_def.h> /* CACHE_WRITEBACK_GRANULE required */ #include <platform_def.h> /* CACHE_WRITEBACK_GRANULE required */
#include <bl31/ehf.h>
#ifdef AARCH32 #ifdef AARCH32
#if CRASH_REPORTING #if CRASH_REPORTING
...@@ -51,9 +52,9 @@ ...@@ -51,9 +52,9 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <arch_helpers.h> #include <arch_helpers.h>
#include <cassert.h> #include <lib/cassert.h>
#include <lib/psci/psci.h>
#include <platform_def.h> #include <platform_def.h>
#include <psci.h>
#include <stdint.h> #include <stdint.h>
/* Offsets for the cpu_data structure */ /* Offsets for the cpu_data structure */
......
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