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
Hide whitespace changes
Inline
Side-by-side
plat/mediatek/mt8173/drivers/timer/mt_cpuxgpt.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
MT_CPUXGPT_H
__
#define
__
MT_CPUXGPT_H
__
#ifndef MT_CPUXGPT_H
#define MT_CPUXGPT_H
/* REG */
#define INDEX_CNT_L_INIT 0x008
...
...
@@ -13,4 +13,4 @@
void
generic_timer_backup
(
void
);
#endif
/*
__
MT_CPUXGPT_H
__
*/
#endif
/* MT_CPUXGPT_H */
plat/mediatek/mt8173/include/mcucfg.h
View file @
9d068f66
...
...
@@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
MCUCFG_H
__
#define
__
MCUCFG_H
__
#ifndef MCUCFG_H
#define MCUCFG_H
#include <mt8173_def.h>
#include <stdint.h>
...
...
@@ -216,4 +216,4 @@ enum {
ACLK_EMI_DYNAMIC_CG_EN
|
ACLK_INFRA_DYNAMIC_CG_EN
,
};
#endif
/*
__
MCUCFG_H
__
*/
#endif
/* MCUCFG_H */
plat/mediatek/mt8173/include/mt8173_def.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
MT8173_DEF_H
__
#define
__
MT8173_DEF_H
__
#ifndef MT8173_DEF_H
#define MT8173_DEF_H
#if RESET_TO_BL31
#error "MT8173 is incompatible with RESET_TO_BL31!"
...
...
@@ -149,4 +149,4 @@
mtk_make_pwrstate_lvl1(lvl1_state, lvl0_state, pwr_lvl, type))
#endif
/*
__
MT8173_DEF_H
__
*/
#endif
/* MT8173_DEF_H */
plat/mediatek/mt8173/include/plat_private.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
PLAT_PRIVATE_H
__
#define
__
PLAT_PRIVATE_H
__
#ifndef PLAT_PRIVATE_H
#define PLAT_PRIVATE_H
/*******************************************************************************
* Function and variable prototypes
...
...
@@ -24,4 +24,4 @@ void plat_cci_disable(void);
/* Declarations for plat_topology.c */
int
mt_setup_topology
(
void
);
#endif
/*
__
PLAT_PRIVATE_H
__
*/
#endif
/* PLAT_PRIVATE_H */
plat/mediatek/mt8173/include/plat_sip_calls.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
PLAT_SIP_CALLS_H
__
#define
__
PLAT_SIP_CALLS_H
__
#ifndef PLAT_SIP_CALLS_H
#define PLAT_SIP_CALLS_H
/*******************************************************************************
* Plat SiP function constants
...
...
@@ -19,4 +19,4 @@
#define MTK_SIP_CLR_HDCP_KEY 0x82000406
#define MTK_SIP_SET_HDCP_KEY_EX 0x82000407
#endif
/*
__
PLAT_SIP_CALLS_H
__
*/
#endif
/* PLAT_SIP_CALLS_H */
plat/mediatek/mt8173/include/power_tracer.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
POWER_TRACER_H
__
#define
__
POWER_TRACER_H
__
#ifndef POWER_TRACER_H
#define POWER_TRACER_H
#define CPU_UP 0
#define CPU_DOWN 1
...
...
@@ -16,4 +16,4 @@
void
trace_power_flow
(
unsigned
long
mpidr
,
unsigned
char
mode
);
#endif
#endif
/* POWER_TRACER_H */
plat/mediatek/mt8173/include/scu.h
View file @
9d068f66
...
...
@@ -4,10 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
SCU_H
__
#define
__
SCU_H
__
#ifndef SCU_H
#define SCU_H
void
disable_scu
(
unsigned
long
mpidr
);
void
enable_scu
(
unsigned
long
mpidr
);
#endif
#endif
/* SCU_H */
plat/nvidia/tegra/include/drivers/flowctrl.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
FLOWCTRL_H
__
#define
__
FLOWCTRL_H
__
#ifndef FLOWCTRL_H
#define FLOWCTRL_H
#include <mmio.h>
#include <tegra_def.h>
...
...
@@ -58,4 +58,4 @@ void tegra_fc_cpu_off(int cpu);
void
tegra_fc_lock_active_cluster
(
void
);
void
tegra_fc_reset_bpmp
(
void
);
#endif
/*
__
FLOWCTRL_H
__
*/
#endif
/* FLOWCTRL_H */
plat/nvidia/tegra/include/drivers/mce.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
MCE_H
__
#define
__
MCE_H
__
#ifndef MCE_H
#define MCE_H
#include <mmio.h>
#include <tegra_def.h>
...
...
@@ -73,4 +73,4 @@ __dead2 void mce_enter_ccplex_state(uint32_t state_idx);
void
mce_update_cstate_info
(
const
mce_cstate_info_t
*
cstate
);
void
mce_verify_firmware_version
(
void
);
#endif
/*
__
MCE_H
__
*/
#endif
/* MCE_H */
plat/nvidia/tegra/include/drivers/memctrl.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
MEMCTRL_H
__
#define
__
MEMCTRL_H
__
#ifndef MEMCTRL_H
#define MEMCTRL_H
void
tegra_memctrl_setup
(
void
);
void
tegra_memctrl_restore_settings
(
void
);
...
...
@@ -14,4 +14,4 @@ void tegra_memctrl_tzram_setup(uint64_t phys_base, uint32_t size_in_bytes);
void
tegra_memctrl_videomem_setup
(
uint64_t
phys_base
,
uint32_t
size_in_bytes
);
void
tegra_memctrl_disable_ahb_redirection
(
void
);
#endif
/*
__
MEMCTRL_H
__
*/
#endif
/* MEMCTRL_H */
plat/nvidia/tegra/include/drivers/memctrl_v1.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
MEMCTRLV1_H
__
#define
__
MEMCTRLV1_H
__
#ifndef MEMCTRL
_
V1_H
#define MEMCTRL
_
V1_H
#include <mmio.h>
#include <tegra_def.h>
...
...
@@ -53,4 +53,4 @@ static inline void tegra_mc_write_32(uint32_t off, uint32_t val)
mmio_write_32
(
TEGRA_MC_BASE
+
off
,
val
);
}
#endif
/*
__
MEMCTRLV1_H
__
*/
#endif
/* MEMCTRL
_
V1_H */
plat/nvidia/tegra/include/drivers/memctrl_v2.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
MEMCTRLV2_H
__
#define
__
MEMCTRLV2_H
__
#ifndef MEMCTRL
_
V2_H
#define MEMCTRL
_
V2_H
#include <tegra_def.h>
...
...
@@ -475,4 +475,4 @@ tegra_mc_settings_t *tegra_get_mc_settings(void);
#endif
/* __ASSMEBLY__ */
#endif
/*
__
MEMCTRLV2_H
__
*/
#endif
/* MEMCTRL
_
V2_H */
plat/nvidia/tegra/include/drivers/pmc.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
PMC_H
__
#define
__
PMC_H
__
#ifndef PMC_H
#define PMC_H
#include <mmio.h>
#include <tegra_def.h>
...
...
@@ -40,4 +40,4 @@ void tegra_pmc_lock_cpu_vectors(void);
void
tegra_pmc_cpu_on
(
int32_t
cpu
);
__dead2
void
tegra_pmc_system_reset
(
void
);
#endif
/*
__
PMC_H
__
*/
#endif
/* PMC_H */
plat/nvidia/tegra/include/drivers/smmu.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
SMMU_H
#define
__
SMMU_H
#ifndef SMMU_H
#define SMMU_H
#include <memctrl_v2.h>
#include <mmio.h>
...
...
@@ -705,4 +705,4 @@ void tegra_smmu_init(void);
void
tegra_smmu_save_context
(
uint64_t
smmu_ctx_addr
);
smmu_regs_t
*
plat_get_smmu_ctx
(
void
);
#endif
/*
__
SMMU_H */
#endif
/*
SMMU_H */
plat/nvidia/tegra/include/plat_macros.S
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
#ifndef
__
PLAT_MACROS_S
__
#define
__
PLAT_MACROS_S
__
#ifndef PLAT_MACROS_S
#define PLAT_MACROS_S
#include <tegra_def.h>
...
...
@@ -57,4 +57,4 @@ spacer:
1
:
.
endm
#endif /*
__
PLAT_MACROS_S
__
*/
#endif /* PLAT_MACROS_S */
plat/nvidia/tegra/include/platform_def.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
PLATFORM_DEF_H
__
#define
__
PLATFORM_DEF_H
__
#ifndef PLATFORM_DEF_H
#define PLATFORM_DEF_H
#include <arch.h>
#include <common_def.h>
...
...
@@ -65,4 +65,4 @@
#define CACHE_WRITEBACK_SHIFT 6
#define CACHE_WRITEBACK_GRANULE (U(1) << CACHE_WRITEBACK_SHIFT)
#endif
/*
__
PLATFORM_DEF_H
__
*/
#endif
/* PLATFORM_DEF_H */
plat/nvidia/tegra/include/t132/tegra_def.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
TEGRA_DEF_H
__
#define
__
TEGRA_DEF_H
__
#ifndef TEGRA_DEF_H
#define TEGRA_DEF_H
#include <utils_def.h>
...
...
@@ -99,4 +99,4 @@
#define TEGRA_TZRAM_BASE U(0x7C010000)
#define TEGRA_TZRAM_SIZE U(0x10000)
#endif
/*
__
TEGRA_DEF_H
__
*/
#endif
/* TEGRA_DEF_H */
plat/nvidia/tegra/include/t186/tegra_def.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
TEGRA_DEF_H
__
#define
__
TEGRA_DEF_H
__
#ifndef TEGRA_DEF_H
#define TEGRA_DEF_H
#include <utils_def.h>
...
...
@@ -247,4 +247,4 @@
#define TEGRA_TZRAM_BASE U(0x30000000)
#define TEGRA_TZRAM_SIZE U(0x40000)
#endif
/*
__
TEGRA_DEF_H
__
*/
#endif
/* TEGRA_DEF_H */
plat/nvidia/tegra/include/t210/tegra_def.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
TEGRA_DEF_H
__
#define
__
TEGRA_DEF_H
__
#ifndef TEGRA_DEF_H
#define TEGRA_DEF_H
#include <utils_def.h>
...
...
@@ -124,4 +124,4 @@
#define TEGRA_TZRAM_BASE U(0x7C010000)
#define TEGRA_TZRAM_SIZE U(0x10000)
#endif
/*
__
TEGRA_DEF_H
__
*/
#endif
/* TEGRA_DEF_H */
plat/nvidia/tegra/include/tegra_platform.h
View file @
9d068f66
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef
__
TEGRA_PLATFORM_H
__
#define
__
TEGRA_PLATFORM_H
__
#ifndef TEGRA_PLATFORM_H
#define TEGRA_PLATFORM_H
#include <cdefs.h>
...
...
@@ -31,4 +31,4 @@ uint8_t tegra_platform_is_qt(void);
uint8_t
tegra_platform_is_emulation
(
void
);
uint8_t
tegra_platform_is_fpga
(
void
);
#endif
/*
__
TEGRA_PLATFORM_H
__
*/
#endif
/* TEGRA_PLATFORM_H */
Prev
1
…
16
17
18
19
20
21
22
23
24
…
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