Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
9d068f66
Unverified
Commit
9d068f66
authored
Nov 08, 2018
by
Antonio Niño Díaz
Committed by
GitHub
Nov 08, 2018
Browse files
Merge pull request #1673 from antonio-nino-diaz-arm/an/headers
Standardise header guards across codebase
parents
f5ae1b0e
c3cf06f1
Changes
508
Show whitespace changes
Inline
Side-by-side
plat/hisilicon/poplar/include/plat_private.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
PLAT_PRIVATE_H
__
#ifndef PLAT_PRIVATE_H
#define
__
PLAT_PRIVATE_H
__
#define PLAT_PRIVATE_H
#include <bl_common.h>
#include <bl_common.h>
#include "hi3798cv200.h"
#include "hi3798cv200.h"
...
@@ -33,4 +33,4 @@ void poplar_gic_init(void);
...
@@ -33,4 +33,4 @@ void poplar_gic_init(void);
void
poplar_gic_cpuif_enable
(
void
);
void
poplar_gic_cpuif_enable
(
void
);
void
poplar_gic_pcpu_init
(
void
);
void
poplar_gic_pcpu_init
(
void
);
#endif
/*
__
PLAT_PRIVATE_H
__
*/
#endif
/* PLAT_PRIVATE_H */
plat/hisilicon/poplar/include/poplar_layout.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
POPLAR_LAYOUT_H
#ifndef POPLAR_LAYOUT_H
#define
__
POPLAR_LAYOUT_H
#define POPLAR_LAYOUT_H
/*
/*
* Boot memory layout definitions for the HiSilicon Poplar board
* Boot memory layout definitions for the HiSilicon Poplar board
...
@@ -129,4 +129,4 @@
...
@@ -129,4 +129,4 @@
#define BL31_BASE (LLOADER_TEXT_BASE + BL31_OFFSET)
#define BL31_BASE (LLOADER_TEXT_BASE + BL31_OFFSET)
#define BL31_LIMIT (BL31_BASE + BL31_SIZE)
#define BL31_LIMIT (BL31_BASE + BL31_SIZE)
#endif
/*
!__
POPLAR_LAYOUT_H */
#endif
/* POPLAR_LAYOUT_H */
plat/imx/common/include/imx8_iomux.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX8_IOMUX_H
__
#ifndef IMX8_IOMUX_H
#define
__
IMX8_IOMUX_H
__
#define IMX8_IOMUX_H
#define PADRING_IFMUX_EN_SHIFT 31
#define PADRING_IFMUX_EN_SHIFT 31
#define PADRING_IFMUX_EN_MASK (1 << PADRING_IFMUX_EN_SHIFT)
#define PADRING_IFMUX_EN_MASK (1 << PADRING_IFMUX_EN_SHIFT)
...
@@ -22,4 +22,4 @@
...
@@ -22,4 +22,4 @@
#define PADRING_DSE_SHIFT 0
#define PADRING_DSE_SHIFT 0
#define PADRING_DSE_MASK (0x7 << PADRING_DSE_SHIFT)
#define PADRING_DSE_MASK (0x7 << PADRING_DSE_SHIFT)
#endif
/*
__
IMX8_IOMUX_H
__
*/
#endif
/* IMX8_IOMUX_H */
plat/imx/common/include/imx8_lpuart.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX_LPUART_H
__
#ifndef IMX
8
_LPUART_H
#define
__
IMX_LPUART_H
__
#define IMX
8
_LPUART_H
#include <console.h>
#include <console.h>
...
@@ -63,4 +63,4 @@ int console_lpuart_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
...
@@ -63,4 +63,4 @@ int console_lpuart_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
console_lpuart_t
*
console
);
console_lpuart_t
*
console
);
#endif
/*__ASSEMBLY__*/
#endif
/*__ASSEMBLY__*/
#endif
/*
__
IMX_LPUART_H
__
*/
#endif
/* IMX
8
_LPUART_H
*/
plat/imx/common/include/imx8qm_pads.h
View file @
9d068f66
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
* Header file used to configure SoC pad list.
* Header file used to configure SoC pad list.
*/
*/
#ifndef
SC
_PADS_H
#ifndef
IMX8QM
_PADS_H
#define
SC
_PADS_H
#define
IMX8QM
_PADS_H
/* Includes */
/* Includes */
...
@@ -290,4 +290,4 @@
...
@@ -290,4 +290,4 @@
#define SC_P_COMP_CTL_GPIO_1V8_3V3_ENET_ENETA 268
/* */
#define SC_P_COMP_CTL_GPIO_1V8_3V3_ENET_ENETA 268
/* */
/*@}*/
/*@}*/
#endif
/* SC
_PADS_H */
#endif
/* IMX8QM
_PADS_H */
plat/imx/common/include/imx8qx_pads.h
View file @
9d068f66
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
* Header file used to configure SoC pad list.
* Header file used to configure SoC pad list.
*/
*/
#ifndef
SC
_PADS_H
#ifndef
IMX8QX
_PADS_H
#define
SC
_PADS_H
#define
IMX8QX
_PADS_H
/* Includes */
/* Includes */
...
@@ -195,4 +195,4 @@
...
@@ -195,4 +195,4 @@
#define SC_P_COMP_CTL_GPIO_1V8_3V3_QSPI0B 173
/* */
#define SC_P_COMP_CTL_GPIO_1V8_3V3_QSPI0B 173
/* */
/*@}*/
/*@}*/
#endif
/* SC
_PADS_H */
#endif
/* IMX8QX
_PADS_H */
plat/imx/common/include/imx_aips.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX_AIPS_H
__
#ifndef IMX_AIPS_H
#define
__
IMX_AIPS_H
__
#define IMX_AIPS_H
#include <stdint.h>
#include <stdint.h>
...
@@ -19,4 +19,4 @@ struct aipstz_regs {
...
@@ -19,4 +19,4 @@ struct aipstz_regs {
void
imx_aips_init
(
void
);
void
imx_aips_init
(
void
);
#endif
/*
__
IMX_AIPS_H
__
*/
#endif
/* IMX_AIPS_H */
plat/imx/common/include/imx_caam.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX_CAAM_H
__
#ifndef IMX_CAAM_H
#define
__
IMX_CAAM_H
__
#define IMX_CAAM_H
#include <stdint.h>
#include <stdint.h>
#include <arch.h>
#include <arch.h>
...
@@ -66,4 +66,4 @@ struct caam_ctrl {
...
@@ -66,4 +66,4 @@ struct caam_ctrl {
/* Declare CAAM API */
/* Declare CAAM API */
void
imx_caam_init
(
void
);
void
imx_caam_init
(
void
);
#endif
/*
__
IMX_CAAM_H
__
*/
#endif
/* IMX_CAAM_H */
plat/imx/common/include/imx_clock.h
View file @
9d068f66
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX_CLOCK_H
__
#ifndef IMX_CLOCK_H
#define
__
IMX_CLOCK_H
__
#define IMX_CLOCK_H
#include <stdint.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdbool.h>
...
@@ -999,4 +999,4 @@ void imx_clock_enable_usb(unsigned int usb_id);
...
@@ -999,4 +999,4 @@ void imx_clock_enable_usb(unsigned int usb_id);
void
imx_clock_disable_usb
(
unsigned
int
usb_id
);
void
imx_clock_disable_usb
(
unsigned
int
usb_id
);
void
imx_clock_set_usb_clk_root_bits
(
uint32_t
usb_clk_root_en_bits
);
void
imx_clock_set_usb_clk_root_bits
(
uint32_t
usb_clk_root_en_bits
);
#endif
/*
__
IMX_CLOCK_H
__
*/
#endif
/* IMX_CLOCK_H */
plat/imx/common/include/imx_csu.h
View file @
9d068f66
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX_CSU_H
__
#ifndef IMX_CSU_H
#define
__
IMX_CSU_H
__
#define IMX_CSU_H
#include <arch.h>
#include <arch.h>
...
@@ -41,4 +41,4 @@
...
@@ -41,4 +41,4 @@
CSU_CSL_SUR_S2)
CSU_CSL_SUR_S2)
void
imx_csu_init
(
void
);
void
imx_csu_init
(
void
);
#endif
/*
__
IMX_CSU_H
__
*/
#endif
/* IMX_CSU_H */
plat/imx/common/include/imx_hab.h
View file @
9d068f66
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX_HAB_H
__
#ifndef IMX_HAB_H
#define
__
IMX_HAB_H
__
#define IMX_HAB_H
#include <imx_hab_arch.h>
#include <imx_hab_arch.h>
#include <imx_regs.h>
#include <imx_regs.h>
...
@@ -30,4 +30,4 @@
...
@@ -30,4 +30,4 @@
#define HAB_ROM_VECTOR_TABLE_REPORT_STATUS (HAB_ROM_VECTOR_BASE + 0x24)
#define HAB_ROM_VECTOR_TABLE_REPORT_STATUS (HAB_ROM_VECTOR_BASE + 0x24)
#define HAB_ROM_VECTOR_TABLE_FAILSAFE (HAB_ROM_VECTOR_BASE + 0x28)
#define HAB_ROM_VECTOR_TABLE_FAILSAFE (HAB_ROM_VECTOR_BASE + 0x28)
#endif
/*
__
IMX_HAB_H
__
*/
#endif
/* IMX_HAB_H */
plat/imx/common/include/imx_io_mux.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX_IO_MUX_H
__
#ifndef IMX_IO_MUX_H
#define
__
IMX_IO_MUX_H
__
#define IMX_IO_MUX_H
#include <stdint.h>
#include <stdint.h>
...
@@ -606,4 +606,4 @@
...
@@ -606,4 +606,4 @@
void
imx_io_muxc_set_pad_alt_function
(
uint32_t
pad_mux_offset
,
uint32_t
alt_function
);
void
imx_io_muxc_set_pad_alt_function
(
uint32_t
pad_mux_offset
,
uint32_t
alt_function
);
void
imx_io_muxc_set_pad_features
(
uint32_t
pad_feature_offset
,
uint32_t
pad_features
);
void
imx_io_muxc_set_pad_features
(
uint32_t
pad_feature_offset
,
uint32_t
pad_features
);
#endif
/*
__
IMX_IO_MUX_H
__
*/
#endif
/* IMX_IO_MUX_H */
plat/imx/common/include/imx_snvs.h
View file @
9d068f66
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX_SNVS_H
__
#ifndef IMX_SNVS_H
#define
__
IMX_SNVS_H
__
#define IMX_SNVS_H
#include <stdint.h>
#include <stdint.h>
#include <arch.h>
#include <arch.h>
...
@@ -79,4 +79,4 @@ struct snvs {
...
@@ -79,4 +79,4 @@ struct snvs {
void
imx_snvs_init
(
void
);
void
imx_snvs_init
(
void
);
#endif
/*
__
IMX_SNVS_H
__
*/
#endif
/* IMX_SNVS_H */
plat/imx/common/include/imx_wdog.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
IMX_WDOG_H
__
#ifndef IMX_WDOG_H
#define
__
IMX_WDOG_H
__
#define IMX_WDOG_H
#include <arch.h>
#include <arch.h>
#include <stdint.h>
#include <stdint.h>
...
@@ -58,4 +58,4 @@ static inline int wicr_calc_wict(int sec, int half_sec)
...
@@ -58,4 +58,4 @@ static inline int wicr_calc_wict(int sec, int half_sec)
/* External facing API */
/* External facing API */
void
imx_wdog_init
(
void
);
void
imx_wdog_init
(
void
);
#endif
/*
__
IMX_WDOG_H
__
*/
#endif
/* IMX_WDOG_H */
plat/imx/common/include/plat_imx8.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
PLAT_IMX8_H
__
#ifndef PLAT_IMX8_H
#define
__
PLAT_IMX8_H
__
#define PLAT_IMX8_H
#include <gicv3.h>
#include <gicv3.h>
#include <psci.h>
#include <psci.h>
...
@@ -23,4 +23,5 @@ void __dead2 imx_system_reset(void);
...
@@ -23,4 +23,5 @@ void __dead2 imx_system_reset(void);
int
imx_validate_power_state
(
unsigned
int
power_state
,
int
imx_validate_power_state
(
unsigned
int
power_state
,
psci_power_state_t
*
req_state
);
psci_power_state_t
*
req_state
);
void
imx_get_sys_suspend_power_state
(
psci_power_state_t
*
req_state
);
void
imx_get_sys_suspend_power_state
(
psci_power_state_t
*
req_state
);
#endif
/*__PLAT_IMX8_H__ */
#endif
/* PLAT_IMX8_H */
plat/imx/common/include/sci/sci.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
_SC_
SCI_H
#ifndef SCI_H
#define
_SC_
SCI_H
#define SCI_H
/* Defines */
/* Defines */
...
@@ -16,4 +16,4 @@
...
@@ -16,4 +16,4 @@
#include <sci/svc/pm/sci_pm_api.h>
#include <sci/svc/pm/sci_pm_api.h>
#include <sci/svc/rm/sci_rm_api.h>
#include <sci/svc/rm/sci_rm_api.h>
#endif
/*
_SC_
SCI_H */
#endif
/* SCI_H */
plat/imx/common/include/sci/sci_ipc.h
View file @
9d068f66
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
* Header file for the IPC implementation.
* Header file for the IPC implementation.
*/
*/
#ifndef SC_IPC_H
#ifndef SC
I
_IPC_H
#define SC_IPC_H
#define SC
I
_IPC_H
/* Includes */
/* Includes */
...
@@ -64,4 +64,4 @@ void sc_ipc_write(sc_ipc_t ipc, void *data);
...
@@ -64,4 +64,4 @@ void sc_ipc_write(sc_ipc_t ipc, void *data);
sc_ipc_t
ipc_handle
;
sc_ipc_t
ipc_handle
;
#endif
/* SC_IPC_H */
#endif
/* SC
I
_IPC_H */
plat/imx/common/include/sci/sci_rpc.h
View file @
9d068f66
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
* Header file for the RPC implementation.
* Header file for the RPC implementation.
*/
*/
#ifndef SC_RPC_H
#ifndef SC
I
_RPC_H
#define SC_RPC_H
#define SC
I
_RPC_H
/* Includes */
/* Includes */
...
@@ -124,4 +124,4 @@ void sc_rpc_dispatch(sc_rsrc_t mu, sc_rpc_msg_t *msg);
...
@@ -124,4 +124,4 @@ void sc_rpc_dispatch(sc_rsrc_t mu, sc_rpc_msg_t *msg);
*/
*/
void
sc_rpc_xlate
(
sc_ipc_t
ipc
,
sc_rpc_msg_t
*
msg
);
void
sc_rpc_xlate
(
sc_ipc_t
ipc
,
sc_rpc_msg_t
*
msg
);
#endif
/* SC_RPC_H */
#endif
/* SC
I
_RPC_H */
plat/imx/common/include/sci/sci_scfw.h
View file @
9d068f66
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
_
SC_SCFW_H
#ifndef SC
I
_SCFW_H
#define
_
SC_SCFW_H
#define SC
I
_SCFW_H
/* Includes */
/* Includes */
...
@@ -33,5 +33,4 @@ typedef uint64_t sc_ipc_t;
...
@@ -33,5 +33,4 @@ typedef uint64_t sc_ipc_t;
typedef
uint64_t
sc_ipc_id_t
;
typedef
uint64_t
sc_ipc_id_t
;
#endif
/* _SC_SCFW_H */
#endif
/* SCI_SCFW_H */
plat/imx/common/include/sci/sci_types.h
View file @
9d068f66
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
* Header file containing types used across multiple service APIs.
* Header file containing types used across multiple service APIs.
*/
*/
#ifndef SC_TYPES_H
#ifndef SC
I
_TYPES_H
#define SC_TYPES_H
#define SC
I
_TYPES_H
/* Includes */
/* Includes */
...
@@ -846,4 +846,4 @@ typedef __UINT32_TYPE__ uint32_t;
...
@@ -846,4 +846,4 @@ typedef __UINT32_TYPE__ uint32_t;
typedef
__UINT64_TYPE__
uint64_t
;
typedef
__UINT64_TYPE__
uint64_t
;
#endif
#endif
#endif
/* SC_TYPES_H */
#endif
/* SC
I
_TYPES_H */
Prev
1
…
12
13
14
15
16
17
18
19
20
…
26
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment