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/rockchip/rk3328/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
/******************************* stimer ***************************************/
/******************************* stimer ***************************************/
#define TIMER_LOADE_COUNT0 0x00
#define TIMER_LOADE_COUNT0 0x00
...
@@ -110,4 +110,4 @@ enum plls_id {
...
@@ -110,4 +110,4 @@ enum plls_id {
#define GPIO2_D2_GPIO_MODE 0x30
#define GPIO2_D2_GPIO_MODE 0x30
#define GRF_GPIO2D_IOMUX 0x34
#define GRF_GPIO2D_IOMUX 0x34
#endif
/*
__
SOC_H
__
*/
#endif
/* SOC_H */
plat/rockchip/rk3328/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
MEMORY
{
MEMORY
{
PMUSRAM
(
rwx
)
:
ORIGIN
=
PMUSRAM_BASE
,
LENGTH
=
PMUSRAM_RSIZE
PMUSRAM
(
rwx
)
:
ORIGIN
=
PMUSRAM_BASE
,
LENGTH
=
PMUSRAM_RSIZE
...
@@ -34,4 +34,4 @@ SECTIONS
...
@@ -34,4 +34,4 @@ SECTIONS
}
>
PMUSRAM
}
>
PMUSRAM
}
}
#endif /*
__
ROCKCHIP_PLAT_LD_S
__
*/
#endif /* ROCKCHIP_PLAT_LD_S */
plat/rockchip/rk3328/rk3328_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
RK3328
_DEF_H
#define
__PLAT
_DEF_H
__
#define
RK3328
_DEF_H
#define MAJOR_VERSION (1)
#define MAJOR_VERSION (1)
#define MINOR_VERSION (2)
#define MINOR_VERSION (2)
...
@@ -145,4 +145,4 @@
...
@@ -145,4 +145,4 @@
#define SHARE_MEM_PAGE_NUM 15
#define SHARE_MEM_PAGE_NUM 15
#define SHARE_MEM_SIZE SIZE_K(SHARE_MEM_PAGE_NUM * 4)
#define SHARE_MEM_SIZE SIZE_K(SHARE_MEM_PAGE_NUM * 4)
#endif
/*
__PLAT
_DEF_H
__
*/
#endif
/*
RK3328
_DEF_H */
plat/rockchip/rk3368/drivers/ddr/ddr_rk3368.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
__
DDR_RK3368_H
__
#ifndef DDR_RK3368_H
#define
__
DDR_RK3368_H
__
#define DDR_RK3368_H
#define DDR_PCTL_SCFG 0x0
#define DDR_PCTL_SCFG 0x0
#define DDR_PCTL_SCTL 0x4
#define DDR_PCTL_SCTL 0x4
...
@@ -244,4 +244,4 @@ uint32_t ddr_get_resume_data_size(void);
...
@@ -244,4 +244,4 @@ uint32_t ddr_get_resume_data_size(void);
uint32_t
*
ddr_get_resume_code_base
(
void
);
uint32_t
*
ddr_get_resume_code_base
(
void
);
void
ddr_reg_save
(
uint32_t
pllpdstat
,
uint64_t
base_addr
);
void
ddr_reg_save
(
uint32_t
pllpdstat
,
uint64_t
base_addr
);
#endif
#endif
/* DDR_RK3368_H */
plat/rockchip/rk3368/drivers/pmu/pmu.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_H
__
#ifndef PMU_H
#define
__
PMU_H
__
#define PMU_H
/* Allocate sp reginon in pmusram */
/* Allocate sp reginon in pmusram */
#define PSRAM_SP_SIZE 0x80
#define PSRAM_SP_SIZE 0x80
...
@@ -204,4 +204,4 @@ enum pmu_bus_idle_st {
...
@@ -204,4 +204,4 @@ enum pmu_bus_idle_st {
#define MAX_WAIT_CONUT 1000
#define MAX_WAIT_CONUT 1000
#endif
/*
__
PMU_H
__
*/
#endif
/* PMU_H */
plat/rockchip/rk3368/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
enum
plls_id
{
enum
plls_id
{
ABPLL_ID
=
0
,
ABPLL_ID
=
0
,
...
@@ -138,4 +138,4 @@ void regs_updata_bits(uintptr_t addr, uint32_t val,
...
@@ -138,4 +138,4 @@ void regs_updata_bits(uintptr_t addr, uint32_t val,
void
soc_sleep_config
(
void
);
void
soc_sleep_config
(
void
);
void
pm_plls_resume
(
void
);
void
pm_plls_resume
(
void
);
#endif
/*
__
SOC_H
__
*/
#endif
/* SOC_H */
plat/rockchip/rk3368/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
MEMORY
{
MEMORY
{
PMUSRAM
(
rwx
)
:
ORIGIN
=
PMUSRAM_BASE
,
LENGTH
=
PMUSRAM_RSIZE
PMUSRAM
(
rwx
)
:
ORIGIN
=
PMUSRAM_BASE
,
LENGTH
=
PMUSRAM_RSIZE
...
@@ -34,4 +34,4 @@ SECTIONS
...
@@ -34,4 +34,4 @@ SECTIONS
}
>
PMUSRAM
}
>
PMUSRAM
}
}
#endif /*
__
ROCKCHIP_PLAT_LD_S
__
*/
#endif /* ROCKCHIP_PLAT_LD_S */
plat/rockchip/rk3368/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/rk3368/rk3368_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
RK3368
_DEF_H
#define
__PLAT
_DEF_H
__
#define
RK3368
_DEF_H
/* Special value used to verify platform parameters from BL2 to BL3-1 */
/* Special value used to verify platform parameters from BL2 to BL3-1 */
#define RK_BL31_PLAT_PARAM_VAL 0x0f1e2d3c4b5a6978ULL
#define RK_BL31_PLAT_PARAM_VAL 0x0f1e2d3c4b5a6978ULL
...
@@ -104,4 +104,4 @@
...
@@ -104,4 +104,4 @@
INTR_PROP_DESC(RK_IRQ_SEC_PHY_TIMER, GIC_HIGHEST_SEC_PRIORITY, \
INTR_PROP_DESC(RK_IRQ_SEC_PHY_TIMER, GIC_HIGHEST_SEC_PRIORITY, \
GICV2_INTR_GROUP1, GIC_INTR_CFG_LEVEL)
GICV2_INTR_GROUP1, GIC_INTR_CFG_LEVEL)
#endif
/*
__PLAT
_DEF_H
__
*/
#endif
/*
RK3368
_DEF_H */
plat/rockchip/rk3399/drivers/dp/cdn_dp.h
View file @
9d068f66
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef __SOC_ROCKCHIP_RK3399_DP_H__
#ifndef CDN_DP_H
#define __SOC_ROCKCHIP_RK3399_DP_H__
#define CDN_DP_H
#include <plat_private.h>
#include <plat_private.h>
enum
{
enum
{
...
@@ -44,4 +45,5 @@ uint64_t dp_hdcp_store_key(uint64_t x1,
...
@@ -44,4 +45,5 @@ uint64_t dp_hdcp_store_key(uint64_t x1,
uint64_t
x4
,
uint64_t
x4
,
uint64_t
x5
,
uint64_t
x5
,
uint64_t
x6
);
uint64_t
x6
);
#endif
#endif
/* CDN_DP_H */
plat/rockchip/rk3399/drivers/dram/dfs.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_ROCKCHIP_RK3399_
DFS_H
__
#ifndef DFS_H
#define
__SOC_ROCKCHIP_RK3399_
DFS_H
__
#define DFS_H
#include <stdint.h>
#include <stdint.h>
...
@@ -47,4 +47,4 @@ void dram_dfs_init(void);
...
@@ -47,4 +47,4 @@ void dram_dfs_init(void);
void
ddr_prepare_for_sys_suspend
(
void
);
void
ddr_prepare_for_sys_suspend
(
void
);
void
ddr_prepare_for_sys_resume
(
void
);
void
ddr_prepare_for_sys_resume
(
void
);
#endif
#endif
/* DFS_H */
plat/rockchip/rk3399/drivers/dram/dram.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_ROCKCHIP_RK3399_
DRAM_H
__
#ifndef DRAM_H
#define
__SOC_ROCKCHIP_RK3399_
DRAM_H
__
#define DRAM_H
#include <dram_regs.h>
#include <dram_regs.h>
#include <plat_private.h>
#include <plat_private.h>
...
@@ -152,4 +152,4 @@ extern __sramdata struct rk3399_sdram_params sdram_config;
...
@@ -152,4 +152,4 @@ extern __sramdata struct rk3399_sdram_params sdram_config;
void
dram_init
(
void
);
void
dram_init
(
void
);
#endif
#endif
/* DRAM_H */
plat/rockchip/rk3399/drivers/dram/dram_spec_timing.h
View file @
9d068f66
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef _DRAM_SPEC_TIMING_HEAD_
#ifndef DRAM_SPEC_TIMING_H
#define _DRAM_SPEC_TIMING_HEAD_
#define DRAM_SPEC_TIMING_H
#include <stdint.h>
#include <stdint.h>
enum
ddr3_speed_rate
{
enum
ddr3_speed_rate
{
...
@@ -503,4 +504,4 @@ struct timing_related_config {
...
@@ -503,4 +504,4 @@ struct timing_related_config {
void
dram_get_parameter
(
struct
timing_related_config
*
timing_config
,
void
dram_get_parameter
(
struct
timing_related_config
*
timing_config
,
struct
dram_timing_t
*
pdram_timing
);
struct
dram_timing_t
*
pdram_timing
);
#endif
/*
_
DRAM_SPEC_TIMING_H
EAD_
*/
#endif
/* DRAM_SPEC_TIMING_H */
plat/rockchip/rk3399/drivers/dram/suspend.h
View file @
9d068f66
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef __SOC_ROCKCHIP_RK3399_SUSPEND_H__
#ifndef SUSPEND_H
#define __SOC_ROCKCHIP_RK3399_SUSPEND_H__
#define SUSPEND_H
#include <dram.h>
#include <dram.h>
#define KHz (1000)
#define KHz (1000)
...
@@ -22,4 +23,4 @@
...
@@ -22,4 +23,4 @@
void
dmc_suspend
(
void
);
void
dmc_suspend
(
void
);
__pmusramfunc
void
dmc_resume
(
void
);
__pmusramfunc
void
dmc_resume
(
void
);
#endif
/*
__DRAM_H__
*/
#endif
/*
SUSPEND_H
*/
plat/rockchip/rk3399/drivers/m0/include/addressmap.h
View file @
9d068f66
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__ROCKCHIP_RK3399_M0_INCLUDE_SHARED_
ADDRESSMAP_H
__
#ifndef ADDRESSMAP_H
#define
__ROCKCHIP_RK3399_M0_INCLUDE_SHARED_
ADDRESSMAP_H
__
#define ADDRESSMAP_H
#include <addressmap_shared.h>
#include <addressmap_shared.h>
/* Registers base address for M0 */
/* Registers base address for M0 */
#define MMIO_BASE 0x40000000
#define MMIO_BASE 0x40000000
#endif
/*
__ROCKCHIP_RK3399_M0_INCLUDE_SHARED_
ADDRESSMAP_H
__
*/
#endif
/* ADDRESSMAP_H */
plat/rockchip/rk3399/drivers/m0/include/rk3399_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
__
RK3399_MCU_H
__
#ifndef RK3399_MCU_H
#define
__
RK3399_MCU_H
__
#define RK3399_MCU_H
#include <addressmap.h>
#include <addressmap.h>
...
@@ -29,4 +29,4 @@ void stopwatch_init_usecs_expire(unsigned int usecs);
...
@@ -29,4 +29,4 @@ void stopwatch_init_usecs_expire(unsigned int usecs);
int
stopwatch_expired
(
void
);
int
stopwatch_expired
(
void
);
void
stopwatch_reset
(
void
);
void
stopwatch_reset
(
void
);
#endif
/*
__
RK3399_MCU_H
__
*/
#endif
/* RK3399_MCU_H */
plat/rockchip/rk3399/drivers/pmu/m0_ctl.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_CTL_H
__
#ifndef M0_CTL_H
#define
__
M0_CTL_H
__
#define M0_CTL_H
#include <m0_param.h>
#include <m0_param.h>
...
@@ -25,4 +25,5 @@ extern void m0_start(void);
...
@@ -25,4 +25,5 @@ extern void m0_start(void);
extern
void
m0_stop
(
void
);
extern
void
m0_stop
(
void
);
extern
void
m0_wait_done
(
void
);
extern
void
m0_wait_done
(
void
);
extern
void
m0_configure_execute_addr
(
uintptr_t
addr
);
extern
void
m0_configure_execute_addr
(
uintptr_t
addr
);
#endif
/* __M0_CTL_H__ */
#endif
/* M0_CTL_H */
plat/rockchip/rk3399/drivers/pmu/pmu.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_H
__
#ifndef PMU_H
#define
__
PMU_H
__
#define PMU_H
#include <pmu_bits.h>
#include <pmu_bits.h>
#include <pmu_regs.h>
#include <pmu_regs.h>
...
@@ -137,4 +137,4 @@ extern uint32_t clst_warmboot_data[PLATFORM_CLUSTER_COUNT];
...
@@ -137,4 +137,4 @@ extern uint32_t clst_warmboot_data[PLATFORM_CLUSTER_COUNT];
extern
void
sram_func_set_ddrctl_pll
(
uint32_t
pll_src
);
extern
void
sram_func_set_ddrctl_pll
(
uint32_t
pll_src
);
#endif
/*
__
PMU_H
__
*/
#endif
/* PMU_H */
plat/rockchip/rk3399/drivers/pwm/pwm.h
View file @
9d068f66
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#ifndef
__
PWM_H
__
#ifndef PWM_H
#define
__
PWM_H
__
#define PWM_H
void
disable_pwms
(
void
);
void
disable_pwms
(
void
);
void
enable_pwms
(
void
);
void
enable_pwms
(
void
);
#endif
#endif
/* PWM_H */
plat/rockchip/rk3399/drivers/secure/secure.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_DRIVER_
SECURE_H
__
#ifndef SECURE_H
#define
__PLAT_ROCKCHIP_RK3399_DRIVER_
SECURE_H
__
#define SECURE_H
/**************************************************
/**************************************************
* sgrf reg, offset
* sgrf reg, offset
...
@@ -102,4 +102,4 @@ void secure_sgrf_init(void);
...
@@ -102,4 +102,4 @@ void secure_sgrf_init(void);
void
secure_sgrf_ddr_rgn_init
(
void
);
void
secure_sgrf_ddr_rgn_init
(
void
);
__pmusramfunc
void
sram_secure_timer_init
(
void
);
__pmusramfunc
void
sram_secure_timer_init
(
void
);
#endif
/*
__PLAT_ROCKCHIP_RK3399_DRIVER_
SECURE_H
__
*/
#endif
/* SECURE_H */
Prev
1
…
18
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