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/hikey/include/hi6220_regs_pmctrl.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
__
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 */
plat/hisilicon/hikey/include/hi6553.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
__
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 */
plat/hisilicon/hikey/include/hikey_def.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
__
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 */
plat/hisilicon/hikey/include/hikey_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
__
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 */
plat/hisilicon/hikey/include/hisi_ipc.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
__
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 */
plat/hisilicon/hikey/include/hisi_mcu.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
__
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 */
plat/hisilicon/hikey/include/hisi_pwrc.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
__
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 */
plat/hisilicon/hikey/include/hisi_sip_svc.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
__
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 */
plat/hisilicon/hikey/include/hisi_sram_map.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
__
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 */
plat/hisilicon/hikey/include/plat_macros.S
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_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 */
plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.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
__
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 */
plat/hisilicon/hikey960/hikey960_def.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
__
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 */
plat/hisilicon/hikey960/hikey960_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
__
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 */
plat/hisilicon/hikey960/include/hi3660.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
__
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 */
plat/hisilicon/hikey960/include/hi3660_crg.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
__
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 */
plat/hisilicon/hikey960/include/hi3660_hkadc.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
__
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 */
plat/hisilicon/hikey960/include/hi3660_mem_map.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
__
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
*/
plat/hisilicon/hikey960/include/hisi_ipc.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
__
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 */
plat/hisilicon/hikey960/include/plat_macros.S
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_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 */
plat/hisilicon/poplar/include/hi3798cv200.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
__
HI3798
cv
200_H
__
#ifndef HI3798
CV
200_H
#define
__
HI3798
cv
200_H
__
#define HI3798
CV
200_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
/*
__
HI3798
cv
200_H
__
*/
#endif
/* HI3798
CV
200_H */
Prev
1
…
11
12
13
14
15
16
17
18
19
…
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