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 __HI6220_REGS_PMCTRL_H__ #ifndef HI6220_REGS_PMCTRL_H
#define __HI6220_REGS_PMCTRL_H__ #define HI6220_REGS_PMCTRL_H
#define PMCTRL_BASE 0xF7032000 #define PMCTRL_BASE 0xF7032000
...@@ -98,4 +98,4 @@ ...@@ -98,4 +98,4 @@
#define SOC_PMCTRL_ACPUSYSPLLCFG_acpu_syspll_clken_stat_START (20) #define SOC_PMCTRL_ACPUSYSPLLCFG_acpu_syspll_clken_stat_START (20)
#define SOC_PMCTRL_ACPUSYSPLLCFG_acpu_syspll_clken_stat_END (20) #define SOC_PMCTRL_ACPUSYSPLLCFG_acpu_syspll_clken_stat_END (20)
#endif /* __HI6220_REGS_PMCTRL_H__ */ #endif /* HI6220_REGS_PMCTRL_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HI6553_H__ #ifndef HI6553_H
#define __HI6553_H__ #define HI6553_H
#include <hi6220.h> #include <hi6220.h>
#include <mmio.h> #include <mmio.h>
...@@ -78,4 +78,4 @@ ...@@ -78,4 +78,4 @@
#define PMU_HI6552_V300 0x30 #define PMU_HI6552_V300 0x30
#define PMU_HI6552_V310 0x31 #define PMU_HI6552_V310 0x31
#endif /* __HI6553_H__ */ #endif /* HI6553_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HIKEY_DEF_H__ #ifndef HIKEY_DEF_H
#define __HIKEY_DEF_H__ #define HIKEY_DEF_H
/* Always assume DDR is 1GB size. */ /* Always assume DDR is 1GB size. */
#define DDR_BASE 0x0 #define DDR_BASE 0x0
...@@ -104,4 +104,4 @@ ...@@ -104,4 +104,4 @@
#define IRQ_SEC_SGI_7 15 #define IRQ_SEC_SGI_7 15
#define IRQ_SEC_SGI_8 16 #define IRQ_SEC_SGI_8 16
#endif /* __HIKEY_DEF_H__ */ #endif /* HIKEY_DEF_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HIKEY_LAYOUT_H #ifndef HIKEY_LAYOUT_H
#define __HIKEY_LAYOUT_H #define HIKEY_LAYOUT_H
/* /*
* Platform memory map related constants * Platform memory map related constants
...@@ -119,4 +119,4 @@ ...@@ -119,4 +119,4 @@
#endif /* SPD_none */ #endif /* SPD_none */
#endif #endif
#endif /* !__HIKEY_LAYOUT_H */ #endif /* HIKEY_LAYOUT_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HISI_IPC_H__ #ifndef HISI_IPC_H
#define __HISI_IPC_H__ #define HISI_IPC_H
#define HISI_IPC_CORE_ACPU 0x0 #define HISI_IPC_CORE_ACPU 0x0
...@@ -43,4 +43,4 @@ void hisi_ipc_cluster_suspend(unsigned int cpu, unsigned int cluster); ...@@ -43,4 +43,4 @@ void hisi_ipc_cluster_suspend(unsigned int cpu, unsigned int cluster);
void hisi_ipc_psci_system_off(void); void hisi_ipc_psci_system_off(void);
int hisi_ipc_init(void); int hisi_ipc_init(void);
#endif /* __HISI_IPC_H__ */ #endif /* HISI_IPC_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HISI_MCU_H__ #ifndef HISI_MCU_H
#define __HISI_MCU_H__ #define HISI_MCU_H
#include <stdint.h> #include <stdint.h>
...@@ -13,4 +13,4 @@ extern void hisi_mcu_enable_sram(void); ...@@ -13,4 +13,4 @@ extern void hisi_mcu_enable_sram(void);
extern void hisi_mcu_start_run(void); extern void hisi_mcu_start_run(void);
extern int hisi_mcu_load_image(uintptr_t image_base, uint32_t image_size); extern int hisi_mcu_load_image(uintptr_t image_base, uint32_t image_size);
#endif /* __HISI_MCU_H__ */ #endif /* HISI_MCU_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HISI_PWRC_H__ #ifndef HISI_PWRC_H
#define __HISI_PWRC_H__ #define HISI_PWRC_H
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
...@@ -19,4 +19,4 @@ int hisi_pwrc_setup(void); ...@@ -19,4 +19,4 @@ int hisi_pwrc_setup(void);
#endif /*__ASSEMBLY__*/ #endif /*__ASSEMBLY__*/
#endif /* __HISI_PWRC_H__ */ #endif /* HISI_PWRC_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HISI_SIP_SVC_H__ #ifndef HISI_SIP_SVC_H
#define __HISI_SIP_SVC_H__ #define HISI_SIP_SVC_H
/* SMC function IDs for SiP Service queries */ /* SMC function IDs for SiP Service queries */
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
#define HISI_SIP_SVC_VERSION_MAJOR 0x0 #define HISI_SIP_SVC_VERSION_MAJOR 0x0
#define HISI_SIP_SVC_VERSION_MINOR 0x1 #define HISI_SIP_SVC_VERSION_MINOR 0x1
#endif /* __ARM_SIP_SVC_H__ */ #endif /* HISI_SIP_SVC_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HISI_SRAM_MAP_H__ #ifndef HISI_SRAM_MAP_H
#define __HISI_SRAM_MAP_H__ #define HISI_SRAM_MAP_H
/* /*
* SRAM Memory Region Layout * SRAM Memory Region Layout
...@@ -324,4 +324,4 @@ ...@@ -324,4 +324,4 @@
#define PWRCTRL_AXI_RESERVED_ADDR (ACPU_MASTER_CORE_STATE_ADDR + ACPU_MASTER_CORE_STATE_SIZE) #define PWRCTRL_AXI_RESERVED_ADDR (ACPU_MASTER_CORE_STATE_ADDR + ACPU_MASTER_CORE_STATE_SIZE)
#endif /* __HISI_SRAM_MAP_H__ */ #endif /* HISI_SRAM_MAP_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 <cci.h> #include <cci.h>
#include <gicv2.h> #include <gicv2.h>
...@@ -75,4 +75,4 @@ cci_iface_regs: ...@@ -75,4 +75,4 @@ cci_iface_regs:
bl str_in_crash_buf_print bl str_in_crash_buf_print
.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 __HISI_PWRC_H__ #ifndef HISI_PWRC_H
#define __HISI_PWRC_H__ #define HISI_PWRC_H
#include <hi3660.h> #include <hi3660.h>
#include <hi3660_crg.h> #include <hi3660_crg.h>
...@@ -54,4 +54,4 @@ void hisi_powerup_cluster(unsigned int cluster, unsigned int core); ...@@ -54,4 +54,4 @@ void hisi_powerup_cluster(unsigned int cluster, unsigned int core);
void hisi_powerdn_cluster(unsigned int cluster, unsigned int core); void hisi_powerdn_cluster(unsigned int cluster, unsigned int core);
unsigned int hisi_test_cpu_down(unsigned int cluster, unsigned int core); unsigned int hisi_test_cpu_down(unsigned int cluster, unsigned int core);
#endif /* __HISI_PWRC_H__ */ #endif /* HISI_PWRC_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HIKEY960_DEF_H__ #ifndef HIKEY960_DEF_H
#define __HIKEY960_DEF_H__ #define HIKEY960_DEF_H
#include <common_def.h> #include <common_def.h>
#include <tbbr_img_def.h> #include <tbbr_img_def.h>
...@@ -53,4 +53,4 @@ ...@@ -53,4 +53,4 @@
#define HIKEY960_UFS_DATA_BASE 0x10000000 #define HIKEY960_UFS_DATA_BASE 0x10000000
#define HIKEY960_UFS_DATA_SIZE 0x0A000000 /* 160MB */ #define HIKEY960_UFS_DATA_SIZE 0x0A000000 /* 160MB */
#endif /* __HIKEY960_DEF_H__ */ #endif /* HIKEY960_DEF_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HIKEY960_PRIVATE_H__ #ifndef HIKEY960_PRIVATE_H
#define __HIKEY960_PRIVATE_H__ #define HIKEY960_PRIVATE_H
#include <bl_common.h> #include <bl_common.h>
...@@ -38,4 +38,4 @@ void clr_retention_ticks(unsigned int val); ...@@ -38,4 +38,4 @@ void clr_retention_ticks(unsigned int val);
void clr_ex(void); void clr_ex(void);
void nop(void); void nop(void);
#endif /* __HIKEY960_PRIVATE_H__ */ #endif /* HIKEY960_PRIVATE_H */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HI3660_H__ #ifndef HI3660_H
#define __HI3660_H__ #define HI3660_H
#include <hi3660_crg.h> #include <hi3660_crg.h>
#include <hi3660_hkadc.h> #include <hi3660_hkadc.h>
...@@ -366,4 +366,4 @@ ...@@ -366,4 +366,4 @@
/* GPIO219: PD interrupt. pull up */ /* GPIO219: PD interrupt. pull up */
#define IOCG_AO_043_REG (IOCG_AO_REG_BASE + 0x030) #define IOCG_AO_043_REG (IOCG_AO_REG_BASE + 0x030)
#endif /* __HI3660_H__ */ #endif /* HI3660_H */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HI3660_CRG_H__ #ifndef HI3660_CRG_H
#define __HI3660_CRG_H__ #define HI3660_CRG_H
#define CRG_REG_BASE 0xFFF35000 #define CRG_REG_BASE 0xFFF35000
...@@ -176,4 +176,4 @@ ...@@ -176,4 +176,4 @@
#define SC_DIV_AO_HISE_MASK 3 #define SC_DIV_AO_HISE_MASK 3
#define SC_DIV_AO_HISE(x) ((x) & 0x3) #define SC_DIV_AO_HISE(x) ((x) & 0x3)
#endif /* __HI3660_CRG_H__ */ #endif /* HI3660_CRG_H */
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HI3660_HKADC_H__ #ifndef HI3660_HKADC_H
#define __HI3660_HKADC_H__ #define HI3660_HKADC_H
#define HKADC_SSI_REG_BASE 0xE82B8000 #define HKADC_SSI_REG_BASE 0xE82B8000
...@@ -58,4 +58,4 @@ ...@@ -58,4 +58,4 @@
#define START_DELAY_TIMEOUT 2000 #define START_DELAY_TIMEOUT 2000
#define HKADC_WR_NUM_VALUE 4 #define HKADC_WR_NUM_VALUE 4
#endif /* __HI3660_HKADC_H__ */ #endif /* HI3660_HKADC_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HI3660_MEM_MAP__ #ifndef HI3660_MEM_MAP_H
#define __HI3660_MEM_MAP__ #define HI3660_MEM_MAP_H
#define HISI_DATA_HEAD_BASE (0x89C44400) #define HISI_DATA_HEAD_BASE (0x89C44400)
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
#define HISI_DATA1_BASE (0x89C93480) #define HISI_DATA1_BASE (0x89C93480)
#define HISI_DATA1_SIZE (0x00002D00) #define HISI_DATA1_SIZE (0x00002D00)
#endif /* __HI3660_MEM_MAP__ */ #endif /* HI3660_MEM_MAP_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __HISI_IPC_H__ #ifndef HISI_IPC_H
#define __HISI_IPC_H__ #define HISI_IPC_H
enum pm_mode { enum pm_mode {
PM_ON = 0, PM_ON = 0,
...@@ -21,4 +21,4 @@ void hisi_ipc_psci_system_reset(unsigned int core, unsigned int cluster, ...@@ -21,4 +21,4 @@ void hisi_ipc_psci_system_reset(unsigned int core, unsigned int cluster,
unsigned int cmd_id); unsigned int cmd_id);
int hisi_ipc_init(void); int hisi_ipc_init(void);
#endif /* __HISI_IPC_H__ */ #endif /* HISI_IPC_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 <cci.h> #include <cci.h>
#include <gicv2.h> #include <gicv2.h>
...@@ -75,4 +75,4 @@ cci_iface_regs: ...@@ -75,4 +75,4 @@ cci_iface_regs:
bl str_in_crash_buf_print bl str_in_crash_buf_print
.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 __HI3798cv200_H__ #ifndef HI3798CV200_H
#define __HI3798cv200_H__ #define HI3798CV200_H
#include <utils_def.h> #include <utils_def.h>
...@@ -102,4 +102,4 @@ ...@@ -102,4 +102,4 @@
#define HISI_TZPC_BASE (0xF8A80000) #define HISI_TZPC_BASE (0xF8A80000)
#define HISI_TZPC_SEC_ATTR_CTRL (HISI_TZPC_BASE + 0x10) #define HISI_TZPC_SEC_ATTR_CTRL (HISI_TZPC_BASE + 0x10)
#endif /* __HI3798cv200_H__ */ #endif /* HI3798CV200_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