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

Merge pull request #1673 from antonio-nino-diaz-arm/an/headers

Standardise header guards across codebase
parents f5ae1b0e c3cf06f1
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __SPM_SVC_H__ #ifndef SPM_SVC_H
#define __SPM_SVC_H__ #define SPM_SVC_H
#include <utils_def.h> #include <utils_def.h>
...@@ -79,4 +79,4 @@ uint64_t spm_sp_call(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3); ...@@ -79,4 +79,4 @@ uint64_t spm_sp_call(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3);
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* __SPM_SVC_H__ */ #endif /* SPM_SVC_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __STD_SVC_H__ #ifndef STD_SVC_H
#define __STD_SVC_H__ #define STD_SVC_H
/* SMC function IDs for Standard Service queries */ /* SMC function IDs for Standard Service queries */
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
*/ */
uintptr_t get_arm_std_svc_args(unsigned int svc_mask); uintptr_t get_arm_std_svc_args(unsigned int svc_mask);
#endif /* __STD_SVC_H__ */ #endif /* STD_SVC_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __FIRMWARE_IMAGE_PACKAGE_H__ #ifndef FIRMWARE_IMAGE_PACKAGE_H
#define __FIRMWARE_IMAGE_PACKAGE_H__ #define FIRMWARE_IMAGE_PACKAGE_H
#include <stdint.h> #include <stdint.h>
#include <uuid.h> #include <uuid.h>
...@@ -88,4 +88,4 @@ typedef struct fip_toc_entry { ...@@ -88,4 +88,4 @@ typedef struct fip_toc_entry {
uint64_t flags; uint64_t flags;
} fip_toc_entry_t; } fip_toc_entry_t;
#endif /* __FIRMWARE_IMAGE_PACKAGE_H__ */ #endif /* FIRMWARE_IMAGE_PACKAGE_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __TBBR_OID_H__ #ifndef TBBR_OID_H
#define __TBBR_OID_H__ #define TBBR_OID_H
/* /*
* The following is a list of OID values defined and reserved by ARM, which * The following is a list of OID values defined and reserved by ARM, which
...@@ -145,4 +145,4 @@ ...@@ -145,4 +145,4 @@
/* NonTrustedFirmwareConfigHash - NT_FW_CONFIG */ /* NonTrustedFirmwareConfigHash - NT_FW_CONFIG */
#define NON_TRUSTED_FW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.1202" #define NON_TRUSTED_FW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.1202"
#endif /* __TBBR_OID_H__ */ #endif /* TBBR_OID_H */
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
* All rights reserved. * All rights reserved.
*/ */
#ifndef _SYS_UUID_H_ #ifndef UUID_H
#define _SYS_UUID_H_ #define UUID_H
/* Length of a node address (an IEEE 802 address). */ /* Length of a node address (an IEEE 802 address). */
#define _UUID_NODE_LEN 6 #define _UUID_NODE_LEN 6
...@@ -59,4 +59,4 @@ struct uuid { ...@@ -59,4 +59,4 @@ struct uuid {
/* XXX namespace pollution? */ /* XXX namespace pollution? */
typedef struct uuid uuid_t; typedef struct uuid uuid_t;
#endif /* _SYS_UUID_H_ */ #endif /* UUID_H */
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
*/ */
/* This driver provides I2C support for Allwinner sunXi SoCs */ /* This driver provides I2C support for Allwinner sunXi SoCs */
#ifndef SUNXI_I2C_H #ifndef MENTOR_I2C_PLAT_H
#define SUNXI_I2C_H #define MENTOR_I2C_PLAT_H
#define CONFIG_SYS_TCLK 24000000 #define CONFIG_SYS_TCLK 24000000
#define CONFIG_SYS_I2C_SPEED 100000 #define CONFIG_SYS_I2C_SPEED 100000
...@@ -25,4 +25,4 @@ struct mentor_i2c_regs { ...@@ -25,4 +25,4 @@ struct mentor_i2c_regs {
uint32_t soft_reset; uint32_t soft_reset;
}; };
#endif #endif /* MENTOR_I2C_PLAT_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLAT_MACROS_S__ #ifndef PLAT_MACROS_S
#define __PLAT_MACROS_S__ #define PLAT_MACROS_S
#include <arm_macros.S> #include <arm_macros.S>
#include <sunxi_mmap.h> #include <sunxi_mmap.h>
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
arm_print_gic_regs arm_print_gic_regs
.endm .endm
#endif /* __PLAT_MACROS_S__ */ #endif /* PLAT_MACROS_S */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __SUNXI_DEF_H__ #ifndef SUNXI_DEF_H
#define __SUNXI_DEF_H__ #define SUNXI_DEF_H
/* Clock configuration */ /* Clock configuration */
#define SUNXI_OSC24M_CLK_IN_HZ 24000000 #define SUNXI_OSC24M_CLK_IN_HZ 24000000
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
#define SUNXI_SOC_H5 0x1718 #define SUNXI_SOC_H5 0x1718
#define SUNXI_SOC_H6 0x1728 #define SUNXI_SOC_H6 0x1728
#endif /* __SUNXI_DEF_H__ */ #endif /* SUNXI_DEF_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __SUNXI_CPUCFG_H__ #ifndef SUNXI_CPUCFG_H
#define __SUNXI_CPUCFG_H__ #define SUNXI_CPUCFG_H
#include <sunxi_mmap.h> #include <sunxi_mmap.h>
...@@ -33,4 +33,4 @@ ...@@ -33,4 +33,4 @@
#define SUNXI_R_CPUCFG_SS_ENTRY_REG (SUNXI_R_CPUCFG_BASE + 0x01a8) #define SUNXI_R_CPUCFG_SS_ENTRY_REG (SUNXI_R_CPUCFG_BASE + 0x01a8)
#define SUNXI_R_CPUCFG_HP_FLAG_REG (SUNXI_R_CPUCFG_BASE + 0x01ac) #define SUNXI_R_CPUCFG_HP_FLAG_REG (SUNXI_R_CPUCFG_BASE + 0x01ac)
#endif /* __SUNXI_CPUCFG_H__ */ #endif /* SUNXI_CPUCFG_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __SUNXI_MMAP_H__ #ifndef SUNXI_MMAP_H
#define __SUNXI_MMAP_H__ #define SUNXI_MMAP_H
/* Memory regions */ /* Memory regions */
#define SUNXI_ROM_BASE 0x00000000 #define SUNXI_ROM_BASE 0x00000000
...@@ -71,4 +71,4 @@ ...@@ -71,4 +71,4 @@
#define SUNXI_R_RSB_BASE 0x01f03400 #define SUNXI_R_RSB_BASE 0x01f03400
#define SUNXI_R_PWM_BASE 0x01f03800 #define SUNXI_R_PWM_BASE 0x01f03800
#endif /* __SUNXI_MMAP_H__ */ #endif /* SUNXI_MMAP_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __SUNXI_CPUCFG_H__ #ifndef SUNXI_CPUCFG_H
#define __SUNXI_CPUCFG_H__ #define SUNXI_CPUCFG_H
#include <sunxi_mmap.h> #include <sunxi_mmap.h>
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
#define SUNXI_CPU_POWER_CLAMP_REG(c, n) (SUNXI_R_CPUCFG_BASE + 0x0050 + \ #define SUNXI_CPU_POWER_CLAMP_REG(c, n) (SUNXI_R_CPUCFG_BASE + 0x0050 + \
(c) * 0x10 + (n) * 4) (c) * 0x10 + (n) * 4)
#endif /* __SUNXI_CPUCFG_H__ */ #endif /* SUNXI_CPUCFG_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __SUNXI_MMAP_H__ #ifndef SUNXI_MMAP_H
#define __SUNXI_MMAP_H__ #define SUNXI_MMAP_H
/* Memory regions */ /* Memory regions */
#define SUNXI_ROM_BASE 0x00000000 #define SUNXI_ROM_BASE 0x00000000
...@@ -58,4 +58,4 @@ ...@@ -58,4 +58,4 @@
#define SUNXI_R_UART_BASE 0x07080000 #define SUNXI_R_UART_BASE 0x07080000
#define SUNXI_R_PIO_BASE 0x07022000 #define SUNXI_R_PIO_BASE 0x07022000
#endif /* __SUNXI_MMAP_H__ */ #endif /* SUNXI_MMAP_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __FVP_PRIVATE_H__ #ifndef FVP_PRIVATE_H
#define __FVP_PRIVATE_H__ #define FVP_PRIVATE_H
#include <plat_arm.h> #include <plat_arm.h>
...@@ -21,4 +21,4 @@ void fvp_interconnect_disable(void); ...@@ -21,4 +21,4 @@ void fvp_interconnect_disable(void);
void tsp_early_platform_setup(void); void tsp_early_platform_setup(void);
#endif /* __FVP_PRIVATE_H__ */ #endif /* FVP_PRIVATE_H */
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLAT_LD_S__ #ifndef PLAT_LD_S
#define __PLAT_LD_S__ #define PLAT_LD_S
#include <arm_tzc_dram.ld.S> #include <arm_tzc_dram.ld.S>
#include <arm_reclaim_init.ld.S> #include <arm_reclaim_init.ld.S>
#endif /* __PLAT_LD_S__ */ #endif /* PLAT_LD_S */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLAT_MACROS_S__ #ifndef PLAT_MACROS_S
#define __PLAT_MACROS_S__ #define PLAT_MACROS_S
#include <arm_macros.S> #include <arm_macros.S>
#include <v2m_def.h> #include <v2m_def.h>
...@@ -40,4 +40,4 @@ print_gic_regs: ...@@ -40,4 +40,4 @@ print_gic_regs:
arm_print_gic_regs arm_print_gic_regs
.endm .endm
#endif /* __PLAT_MACROS_S__ */ #endif /* PLAT_MACROS_S */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLAT_MACROS_S__ #ifndef PLAT_MACROS_S
#define __PLAT_MACROS_S__ #define PLAT_MACROS_S
#include <cci_macros.S> #include <cci_macros.S>
#include <css_macros.S> #include <css_macros.S>
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
print_cci_regs print_cci_regs
.endm .endm
#endif /* __PLAT_MACROS_S__ */ #endif /* PLAT_MACROS_S */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __JUNO_DECL_H__ #ifndef JUNO_DECL_H
#define __JUNO_DECL_H__ #define JUNO_DECL_H
int juno_getentropy(void *buf, size_t len); int juno_getentropy(void *buf, size_t len);
#endif /* __JUNO_DECL_H__ */ #endif /* JUNO_DECL_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __JUNO_TZMP1_DEF_H__ #ifndef JUNO_TZMP1_DEF_H
#define __JUNO_TZMP1_DEF_H__ #define JUNO_TZMP1_DEF_H
#include <plat_arm.h> #include <plat_arm.h>
...@@ -82,4 +82,4 @@ ...@@ -82,4 +82,4 @@
/* config to PROTCTRL register */ /* config to PROTCTRL register */
#define V550_PROTCTRL_CONFIG 0xa8700000 #define V550_PROTCTRL_CONFIG 0xa8700000
#endif /* __JUNO_TZMP1_DEF_H__ */ #endif /* JUNO_TZMP1_DEF_H */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLAT_MACROS_S__ #ifndef PLAT_MACROS_S
#define __PLAT_MACROS_S__ #define PLAT_MACROS_S
#include <css_macros.S> #include <css_macros.S>
...@@ -20,4 +20,5 @@ ...@@ -20,4 +20,5 @@
*/ */
.macro plat_crash_print_regs .macro plat_crash_print_regs
.endm .endm
#endif /* __PLAT_MACROS_S__ */
#endif /* PLAT_MACROS_S */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __PLATFORM_DEF_H__ #ifndef PLATFORM_DEF_H
#define __PLATFORM_DEF_H__ #define PLATFORM_DEF_H
#include <arm_def.h> #include <arm_def.h>
#include <board_css_def.h> #include <board_css_def.h>
...@@ -68,4 +68,5 @@ ...@@ -68,4 +68,5 @@
/* Platform ID address */ /* Platform ID address */
#define SSC_VERSION (SSC_REG_BASE + SSC_VERSION_OFFSET) #define SSC_VERSION (SSC_REG_BASE + SSC_VERSION_OFFSET)
#endif /* __PLATFORM_DEF_H__ */
#endif /* PLATFORM_DEF_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