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/rockchip/rk3399/drivers/soc/soc.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
__
SOC_H
__
#ifndef SOC_H
#define
__
SOC_H
__
#define SOC_H
#include <utils.h>
#include <utils.h>
...
@@ -281,4 +281,4 @@ void set_pmu_rsthold(void);
...
@@ -281,4 +281,4 @@ void set_pmu_rsthold(void);
void
pmu_sgrf_rst_hld
(
void
);
void
pmu_sgrf_rst_hld
(
void
);
__pmusramfunc
void
pmu_sgrf_rst_hld_release
(
void
);
__pmusramfunc
void
pmu_sgrf_rst_hld_release
(
void
);
__pmusramfunc
void
restore_pmu_rsthold
(
void
);
__pmusramfunc
void
restore_pmu_rsthold
(
void
);
#endif
/*
__
SOC_H
__
*/
#endif
/* SOC_H */
plat/rockchip/rk3399/include/addressmap.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
__ROCKCHIP_RK3399_INCLUDE_
ADDRESSMAP_H
__
#ifndef ADDRESSMAP_H
#define
__ROCKCHIP_RK3399_INCLUDE_
ADDRESSMAP_H
__
#define ADDRESSMAP_H
#include <addressmap_shared.h>
#include <addressmap_shared.h>
...
@@ -16,4 +16,4 @@
...
@@ -16,4 +16,4 @@
#define DEV_RNG0_BASE MMIO_BASE
#define DEV_RNG0_BASE MMIO_BASE
#define DEV_RNG0_SIZE SIZE_M(125)
#define DEV_RNG0_SIZE SIZE_M(125)
#endif
/*
__ROCKCHIP_RK3399_INCLUDE_
ADDRESSMAP_H
__
*/
#endif
/* ADDRESSMAP_H */
plat/rockchip/rk3399/include/plat.ld.S
View file @
9d068f66
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
*
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
*/
#ifndef
__
ROCKCHIP_PLAT_LD_S
__
#ifndef ROCKCHIP_PLAT_LD_S
#define
__
ROCKCHIP_PLAT_LD_S
__
#define ROCKCHIP_PLAT_LD_S
#include <xlat_tables_defs.h>
#include <xlat_tables_defs.h>
...
@@ -95,4 +95,4 @@ SECTIONS
...
@@ -95,4 +95,4 @@ SECTIONS
}
>
PMUSRAM
}
>
PMUSRAM
}
}
#endif /*
__
ROCKCHIP_PLAT_LD_S
__
*/
#endif /* ROCKCHIP_PLAT_LD_S */
plat/rockchip/rk3399/include/plat_sip_calls.h
View file @
9d068f66
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
PLAT_SIP_CALLS_H
__
#ifndef PLAT_SIP_CALLS_H
#define
__
PLAT_SIP_CALLS_H
__
#define PLAT_SIP_CALLS_H
#define RK_PLAT_SIP_NUM_CALLS 0
#define RK_PLAT_SIP_NUM_CALLS 0
#endif
/*
__
PLAT_SIP_CALLS_H
__
*/
#endif
/* PLAT_SIP_CALLS_H */
plat/rockchip/rk3399/include/shared/addressmap_shared.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
__ROCKCHIP_RK3399_INCLUDE_SHARED_
ADDRESSMAP_SHARED_H
__
#ifndef ADDRESSMAP_SHARED_H
#define
__ROCKCHIP_RK3399_INCLUDE_SHARED_
ADDRESSMAP_SHARED_H
__
#define ADDRESSMAP_SHARED_H
#define SIZE_K(n) ((n) * 1024)
#define SIZE_K(n) ((n) * 1024)
#define SIZE_M(n) ((n) * 1024 * 1024)
#define SIZE_M(n) ((n) * 1024 * 1024)
...
@@ -101,4 +101,4 @@
...
@@ -101,4 +101,4 @@
#define MSCH_BASE(ch) (SERVICE_NOC_1_BASE + (ch) * 0x8000)
#define MSCH_BASE(ch) (SERVICE_NOC_1_BASE + (ch) * 0x8000)
#endif
/*
__ROCKCHIP_RK3399_INCLUDE_SHARED_
ADDRESSMAP_SHARED_H
__
*/
#endif
/* ADDRESSMAP_SHARED_H */
plat/rockchip/rk3399/include/shared/bl31_param.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_ROCKCHIP_RK3399_INCLUDE_SHARED_
BL31_PARAM_H
__
#ifndef BL31_PARAM_H
#define
__PLAT_ROCKCHIP_RK3399_INCLUDE_SHARED_
BL31_PARAM_H
__
#define BL31_PARAM_H
/*******************************************************************************
/*******************************************************************************
* Platform memory map related constants
* Platform memory map related constants
...
@@ -18,9 +18,9 @@
...
@@ -18,9 +18,9 @@
* BL31 specific defines.
* BL31 specific defines.
******************************************************************************/
******************************************************************************/
/*
/*
* Put BL3
-
1 at the top of the Trusted RAM
* Put BL31 at the top of the Trusted RAM
*/
*/
#define BL31_BASE (TZRAM_BASE + 0x1000)
#define BL31_BASE (TZRAM_BASE + 0x1000)
#define BL31_LIMIT (TZRAM_BASE + TZRAM_SIZE)
#define BL31_LIMIT (TZRAM_BASE + TZRAM_SIZE)
#endif
/*
__PLAT_ROCKCHIP_RK3399_INCLUDE_SHARED_
BL31_PARAM_H
__
*/
#endif
/*
BL31_PARAM_H
*/
plat/rockchip/rk3399/include/shared/dram_regs.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
__
DRAM_REGS_H
__
#ifndef DRAM_REGS_H
#define
__
DRAM_REGS_H
__
#define DRAM_REGS_H
#define CTL_REG_NUM 332
#define CTL_REG_NUM 332
#define PHY_REG_NUM 959
#define PHY_REG_NUM 959
...
@@ -97,4 +97,4 @@
...
@@ -97,4 +97,4 @@
#define DDR_STRIDE(n) mmio_write_32(SGRF_BASE + SGRF_SOC_CON3_7(4), \
#define DDR_STRIDE(n) mmio_write_32(SGRF_BASE + SGRF_SOC_CON3_7(4), \
(0x1f<<(10+16))|((n)<<10))
(0x1f<<(10+16))|((n)<<10))
#endif
/*
__
DRAM_REGS_H
__
*/
#endif
/* DRAM_REGS_H */
plat/rockchip/rk3399/include/shared/m0_param.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
__
M0_PARAM_H
__
#ifndef M0_PARAM_H
#define
__
M0_PARAM_H
__
#define M0_PARAM_H
#define PARAM_ADDR 0xc0
#define PARAM_ADDR 0xc0
...
@@ -22,4 +22,4 @@
...
@@ -22,4 +22,4 @@
#define PARAM_M0_SIZE 0x28
#define PARAM_M0_SIZE 0x28
#define M0_DONE_FLAG 0xf59ec39a
#define M0_DONE_FLAG 0xf59ec39a
#endif
/*
__
M0_PARAM_H
__
*/
#endif
/*
M0_PARAM_H
*/
plat/rockchip/rk3399/include/shared/misc_regs.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
__ROCKCHIP_RK3399_INCLUDE_SHARED_
MISC_REGS_H
__
#ifndef MISC_REGS_H
#define
__ROCKCHIP_RK3399_INCLUDE_SHARED_
MISC_REGS_H
__
#define MISC_REGS_H
/* CRU */
/* CRU */
#define CRU_DPLL_CON0 0x40
#define CRU_DPLL_CON0 0x40
...
@@ -24,4 +24,4 @@
...
@@ -24,4 +24,4 @@
/* PMU CRU */
/* PMU CRU */
#define PMU_CRU_GATEDIS_CON0 0x130
#define PMU_CRU_GATEDIS_CON0 0x130
#endif
/*
__ROCKCHIP_RK3399_INCLUDE_SHARED_
MISC_REGS_H
__
*/
#endif
/* MISC_REGS_H */
plat/rockchip/rk3399/include/shared/pmu_bits.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
__
PMU_BITS_H
__
#ifndef PMU_BITS_H
#define
__
PMU_BITS_H
__
#define PMU_BITS_H
enum
pmu_powerdomain_id
{
enum
pmu_powerdomain_id
{
PD_CPUL0
=
0
,
PD_CPUL0
=
0
,
...
@@ -694,4 +694,4 @@ enum pmu_core_pwr_st {
...
@@ -694,4 +694,4 @@ enum pmu_core_pwr_st {
STANDBY_BY_WFIL2_CLUSTER_B
,
STANDBY_BY_WFIL2_CLUSTER_B
,
};
};
#endif
/*
__
PMU_BITS_H
__
*/
#endif
/* PMU_BITS_H */
plat/rockchip/rk3399/include/shared/pmu_regs.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
__
PMU_REGS_H
__
#ifndef PMU_REGS_H
#define
__
PMU_REGS_H
__
#define PMU_REGS_H
#define PMU_WKUP_CFG0 0x00
#define PMU_WKUP_CFG0 0x00
#define PMU_WKUP_CFG1 0x04
#define PMU_WKUP_CFG1 0x04
...
@@ -145,4 +145,4 @@
...
@@ -145,4 +145,4 @@
#define GRF_GPIO4C_P 0xe068
#define GRF_GPIO4C_P 0xe068
#define GRF_GPIO4D_P 0xe06C
#define GRF_GPIO4D_P 0xe06C
#endif
/*
__
PMU_REGS_H
__
*/
#endif
/* PMU_REGS_H */
plat/rockchip/rk3399/rk3399_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
__PLAT
_DEF_H
__
#ifndef
RK3399
_DEF_H
#define
__PLAT
_DEF_H
__
#define
RK3399
_DEF_H
#include <addressmap.h>
#include <addressmap.h>
...
@@ -62,4 +62,4 @@
...
@@ -62,4 +62,4 @@
INTR_PROP_DESC(ARM_IRQ_SEC_SGI_6, GIC_HIGHEST_SEC_PRIORITY, \
INTR_PROP_DESC(ARM_IRQ_SEC_SGI_6, GIC_HIGHEST_SEC_PRIORITY, \
INTR_GROUP0, GIC_INTR_CFG_LEVEL)
INTR_GROUP0, GIC_INTR_CFG_LEVEL)
#endif
/*
__PLAT
_DEF_H
__
*/
#endif
/*
RK3399
_DEF_H */
plat/rpi3/include/platform_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
__
PLATFORM_DEF_H
__
#ifndef PLATFORM_DEF_H
#define
__
PLATFORM_DEF_H
__
#define PLATFORM_DEF_H
#include <arch.h>
#include <arch.h>
#include <common_def.h>
#include <common_def.h>
...
@@ -236,4 +236,4 @@
...
@@ -236,4 +236,4 @@
*/
*/
#define SYS_COUNTER_FREQ_IN_TICKS ULL(19200000)
#define SYS_COUNTER_FREQ_IN_TICKS ULL(19200000)
#endif
/*
__
PLATFORM_DEF_H
__
*/
#endif
/* PLATFORM_DEF_H */
plat/rpi3/rpi3_hw.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
__
RPI3_HW_
_
#ifndef RPI3_HW_
H
#define
__
RPI3_HW_
_
#define RPI3_HW_
H
#include <utils_def.h>
#include <utils_def.h>
...
@@ -95,4 +95,4 @@
...
@@ -95,4 +95,4 @@
#define RPI3_INTC_PENDING_FIQ_OFFSET ULL(0x00000070)
#define RPI3_INTC_PENDING_FIQ_OFFSET ULL(0x00000070)
#define RPI3_INTC_PENDING_FIQ_MBOX3 ULL(0x00000080)
#define RPI3_INTC_PENDING_FIQ_MBOX3 ULL(0x00000080)
#endif
/*
__
RPI3_HW_
_
*/
#endif
/* RPI3_HW_
H
*/
plat/rpi3/rpi3_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
__
RPI3_PRIVATE_H
__
#ifndef RPI3_PRIVATE_H
#define
__
RPI3_PRIVATE_H
__
#define RPI3_PRIVATE_H
#include <stdint.h>
#include <stdint.h>
...
@@ -39,4 +39,4 @@ void rpi3_rng_read(void *buf, size_t len);
...
@@ -39,4 +39,4 @@ void rpi3_rng_read(void *buf, size_t len);
/* VideoCore firmware commands */
/* VideoCore firmware commands */
int
rpi3_vc_hardware_get_board_revision
(
uint32_t
*
revision
);
int
rpi3_vc_hardware_get_board_revision
(
uint32_t
*
revision
);
#endif
/*
__
RPI3_PRIVATE_H
__
*/
#endif
/*
RPI3_PRIVATE_H */
plat/socionext/synquacer/drivers/mhu/sq_mhu.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
__
SQ_MHU_H
__
#ifndef SQ_MHU_H
#define
__
SQ_MHU_H
__
#define SQ_MHU_H
#include <stdint.h>
#include <stdint.h>
...
@@ -16,4 +16,4 @@ void mhu_secure_message_end(unsigned int slot_id);
...
@@ -16,4 +16,4 @@ void mhu_secure_message_end(unsigned int slot_id);
void
mhu_secure_init
(
void
);
void
mhu_secure_init
(
void
);
#endif
/*
__
SQ_MHU_H
__
*/
#endif
/* SQ_MHU_H */
plat/socionext/synquacer/drivers/scpi/sq_scpi.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
__
SQ_SCPI_H
__
#ifndef SQ_SCPI_H
#define
__
SQ_SCPI_H
__
#define SQ_SCPI_H
#include <stddef.h>
#include <stddef.h>
#include <stdint.h>
#include <stdint.h>
...
@@ -79,4 +79,4 @@ extern void scpi_set_sq_power_state(unsigned int mpidr,
...
@@ -79,4 +79,4 @@ extern void scpi_set_sq_power_state(unsigned int mpidr,
scpi_power_state_t
css_state
);
scpi_power_state_t
css_state
);
uint32_t
scpi_sys_power_state
(
scpi_system_state_t
system_state
);
uint32_t
scpi_sys_power_state
(
scpi_system_state_t
system_state
);
#endif
/*
__
SQ_SCPI_H
__
*/
#endif
/* SQ_SCPI_H */
plat/socionext/synquacer/include/plat_macros.S
View file @
9d068f66
...
@@ -4,12 +4,13 @@
...
@@ -4,12 +4,13 @@
*
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
/*
/*
*
Print
CCN
registers
*
Print
CCN
registers
*/
*/
.
macro
plat_crash_print_regs
.
macro
plat_crash_print_regs
.
endm
.
endm
#endif /* __PLAT_MACROS_S__ */
#endif /* PLAT_MACROS_S */
plat/socionext/synquacer/include/sq_common.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
__
SQ_COMMON_H
__
#ifndef SQ_COMMON_H
#define
__
SQ_COMMON_H
__
#define SQ_COMMON_H
#include <stdint.h>
#include <stdint.h>
#include <xlat_tables_v2.h>
#include <xlat_tables_v2.h>
...
@@ -40,4 +40,4 @@ void sq_gic_pcpu_init(void);
...
@@ -40,4 +40,4 @@ void sq_gic_pcpu_init(void);
void
sq_mmap_setup
(
uintptr_t
total_base
,
size_t
total_size
,
void
sq_mmap_setup
(
uintptr_t
total_base
,
size_t
total_size
,
const
struct
mmap_region
*
mmap
);
const
struct
mmap_region
*
mmap
);
#endif
/*
__
SQ_COMMON_H
__
*/
#endif
/* SQ_COMMON_H */
plat/socionext/uniphier/include/plat_macros.S
View file @
9d068f66
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
*
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
.
macro
plat_crash_print_regs
.
macro
plat_crash_print_regs
.
endm
.
endm
#endif /*
__
PLAT_MACROS_S
__
*/
#endif /* PLAT_MACROS_S */
Prev
1
…
19
20
21
22
23
24
25
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