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
73a96051
Unverified
Commit
73a96051
authored
Feb 28, 2018
by
davidcunado-arm
Committed by
GitHub
Feb 28, 2018
Browse files
Merge pull request #1282 from robertovargas-arm/misra-changes
Misra changes
parents
fd50c18a
fd116b9f
Changes
75
Hide whitespace changes
Inline
Side-by-side
include/plat/common/platform.h
View file @
73a96051
...
@@ -301,7 +301,7 @@ struct entry_point_info *bl31_plat_get_next_image_ep_info(uint32_t type);
...
@@ -301,7 +301,7 @@ struct entry_point_info *bl31_plat_get_next_image_ep_info(uint32_t type);
* Mandatory PSCI functions (BL31)
* Mandatory PSCI functions (BL31)
******************************************************************************/
******************************************************************************/
int
plat_setup_psci_ops
(
uintptr_t
sec_entrypoint
,
int
plat_setup_psci_ops
(
uintptr_t
sec_entrypoint
,
const
struct
plat_psci_ops
**
);
const
struct
plat_psci_ops
**
psci_ops
);
const
unsigned
char
*
plat_get_power_domain_tree_desc
(
void
);
const
unsigned
char
*
plat_get_power_domain_tree_desc
(
void
);
/*******************************************************************************
/*******************************************************************************
...
@@ -311,7 +311,7 @@ void plat_psci_stat_accounting_start(const psci_power_state_t *state_info);
...
@@ -311,7 +311,7 @@ void plat_psci_stat_accounting_start(const psci_power_state_t *state_info);
void
plat_psci_stat_accounting_stop
(
const
psci_power_state_t
*
state_info
);
void
plat_psci_stat_accounting_stop
(
const
psci_power_state_t
*
state_info
);
u_register_t
plat_psci_stat_get_residency
(
unsigned
int
lvl
,
u_register_t
plat_psci_stat_get_residency
(
unsigned
int
lvl
,
const
psci_power_state_t
*
state_info
,
const
psci_power_state_t
*
state_info
,
int
last_cpu_i
nde
x
);
int
last_cpu_i
d
x
);
plat_local_state_t
plat_get_target_pwr_state
(
unsigned
int
lvl
,
plat_local_state_t
plat_get_target_pwr_state
(
unsigned
int
lvl
,
const
plat_local_state_t
*
states
,
const
plat_local_state_t
*
states
,
unsigned
int
ncpu
);
unsigned
int
ncpu
);
...
@@ -386,12 +386,14 @@ int platform_setup_pm(const plat_pm_ops_t **);
...
@@ -386,12 +386,14 @@ int platform_setup_pm(const plat_pm_ops_t **);
unsigned
int
plat_get_aff_count
(
unsigned
int
,
unsigned
long
);
unsigned
int
plat_get_aff_count
(
unsigned
int
,
unsigned
long
);
unsigned
int
plat_get_aff_state
(
unsigned
int
,
unsigned
long
);
unsigned
int
plat_get_aff_state
(
unsigned
int
,
unsigned
long
);
#else
/* __ENABLE_PLAT_COMPAT__ */
#else
/* __ENABLE_PLAT_COMPAT__ */
/*
/*
* The below function enable Trusted Firmware components like SPDs which
* The below function enable Trusted Firmware components like SPDs which
* haven't migrated to the new platform API to compile on platforms which
* haven't migrated to the new platform API to compile on platforms which
* have the compatibility layer disabled.
* have the compatibility layer disabled.
*/
*/
unsigned
int
platform_core_pos_helper
(
unsigned
long
mpidr
);
unsigned
int
platform_get_core_pos
(
unsigned
long
mpidr
)
__deprecated
;
unsigned
int
platform_get_core_pos
(
unsigned
long
mpidr
)
__deprecated
;
#endif
/* __ENABLE_PLAT_COMPAT__ */
#endif
/* __ENABLE_PLAT_COMPAT__ */
...
...
lib/extensions/spe/spe.c
View file @
73a96051
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
#include <arch.h>
#include <arch.h>
#include <arch_helpers.h>
#include <arch_helpers.h>
#include <pubsub.h>
#include <pubsub.h>
#include <spe.h>
/*
/*
* The assembler does not yet understand the psb csync mnemonic
* The assembler does not yet understand the psb csync mnemonic
...
...
lib/psci/psci_private.h
View file @
73a96051
/*
/*
* Copyright (c) 2013-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -218,7 +218,7 @@ void psci_acquire_pwr_domain_locks(unsigned int end_pwrlvl,
...
@@ -218,7 +218,7 @@ void psci_acquire_pwr_domain_locks(unsigned int end_pwrlvl,
void
psci_release_pwr_domain_locks
(
unsigned
int
end_pwrlvl
,
void
psci_release_pwr_domain_locks
(
unsigned
int
end_pwrlvl
,
unsigned
int
cpu_idx
);
unsigned
int
cpu_idx
);
int
psci_validate_suspend_req
(
const
psci_power_state_t
*
state_info
,
int
psci_validate_suspend_req
(
const
psci_power_state_t
*
state_info
,
unsigned
int
is_power_down_state
_req
);
unsigned
int
is_power_down_state
);
unsigned
int
psci_find_max_off_lvl
(
const
psci_power_state_t
*
state_info
);
unsigned
int
psci_find_max_off_lvl
(
const
psci_power_state_t
*
state_info
);
unsigned
int
psci_find_target_suspend_lvl
(
const
psci_power_state_t
*
state_info
);
unsigned
int
psci_find_target_suspend_lvl
(
const
psci_power_state_t
*
state_info
);
void
psci_set_pwr_domains_to_run
(
unsigned
int
end_pwrlvl
);
void
psci_set_pwr_domains_to_run
(
unsigned
int
end_pwrlvl
);
...
@@ -248,7 +248,7 @@ int psci_do_cpu_off(unsigned int end_pwrlvl);
...
@@ -248,7 +248,7 @@ int psci_do_cpu_off(unsigned int end_pwrlvl);
void
psci_cpu_suspend_start
(
entry_point_info_t
*
ep
,
void
psci_cpu_suspend_start
(
entry_point_info_t
*
ep
,
unsigned
int
end_pwrlvl
,
unsigned
int
end_pwrlvl
,
psci_power_state_t
*
state_info
,
psci_power_state_t
*
state_info
,
unsigned
int
is_power_down_state
_req
);
unsigned
int
is_power_down_state
);
void
psci_cpu_suspend_finish
(
unsigned
int
cpu_idx
,
void
psci_cpu_suspend_finish
(
unsigned
int
cpu_idx
,
psci_power_state_t
*
state_info
);
psci_power_state_t
*
state_info
);
...
...
lib/stdlib/abort.c
View file @
73a96051
/*
/*
* Copyright (c) 2013-201
4
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <debug.h>
#include <debug.h>
#include <stdlib.h>
/*
/*
* This is a basic implementation. This could be improved.
* This is a basic implementation. This could be improved.
...
...
lib/stdlib/exit.c
View file @
73a96051
/*
/*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <debug.h>
#include <debug.h>
#include <stdlib.h>
void
exit
(
int
v
)
void
exit
(
int
v
)
{
{
...
...
lib/stdlib/sscanf.c
View file @
73a96051
/*
/*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <stdio.h>
#include <sys/cdefs.h>
#include <sys/cdefs.h>
/*
/*
...
...
lib/xlat_tables_v2/xlat_tables_internal.c
View file @
73a96051
...
@@ -115,7 +115,7 @@ static uint64_t *xlat_table_get_empty(xlat_ctx_t *ctx)
...
@@ -115,7 +115,7 @@ static uint64_t *xlat_table_get_empty(xlat_ctx_t *ctx)
/*
/*
* Returns a block/page table descriptor for the given level and attributes.
* Returns a block/page table descriptor for the given level and attributes.
*/
*/
uint64_t
xlat_desc
(
const
xlat_ctx_t
*
ctx
,
mmap_attr_t
attr
,
static
uint64_t
xlat_desc
(
const
xlat_ctx_t
*
ctx
,
mmap_attr_t
attr
,
unsigned
long
long
addr_pa
,
int
level
)
unsigned
long
long
addr_pa
,
int
level
)
{
{
uint64_t
desc
;
uint64_t
desc
;
...
...
lib/xlat_tables_v2/xlat_tables_private.h
View file @
73a96051
/*
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -83,7 +83,7 @@ unsigned long long xlat_arch_get_max_supported_pa(void);
...
@@ -83,7 +83,7 @@ unsigned long long xlat_arch_get_max_supported_pa(void);
/* Enable MMU and configure it to use the specified translation tables. */
/* Enable MMU and configure it to use the specified translation tables. */
void
enable_mmu_arch
(
unsigned
int
flags
,
uint64_t
*
base_table
,
void
enable_mmu_arch
(
unsigned
int
flags
,
uint64_t
*
base_table
,
unsigned
long
long
pa
,
uintptr_t
max_va
);
unsigned
long
long
max_
pa
,
uintptr_t
max_va
);
/*
/*
* Return 1 if the MMU of the translation regime managed by the given xlat_ctx_t
* Return 1 if the MMU of the translation regime managed by the given xlat_ctx_t
...
...
plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.h
View file @
73a96051
/*
/*
* Copyright (c) 2013-201
6
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -40,13 +40,13 @@
...
@@ -40,13 +40,13 @@
/*******************************************************************************
/*******************************************************************************
* Function & variable prototypes
* Function & variable prototypes
******************************************************************************/
******************************************************************************/
void
fvp_pwrc_write_pcoffr
(
u_register_t
);
void
fvp_pwrc_write_pcoffr
(
u_register_t
mpidr
);
void
fvp_pwrc_write_ppoffr
(
u_register_t
);
void
fvp_pwrc_write_ppoffr
(
u_register_t
mpidr
);
void
fvp_pwrc_write_pponr
(
u_register_t
);
void
fvp_pwrc_write_pponr
(
u_register_t
mpidr
);
void
fvp_pwrc_set_wen
(
u_register_t
);
void
fvp_pwrc_set_wen
(
u_register_t
mpidr
);
void
fvp_pwrc_clr_wen
(
u_register_t
);
void
fvp_pwrc_clr_wen
(
u_register_t
mpidr
);
unsigned
int
fvp_pwrc_read_psysr
(
u_register_t
);
unsigned
int
fvp_pwrc_read_psysr
(
u_register_t
mpidr
);
unsigned
int
fvp_pwrc_get_cpu_wkr
(
u_register_t
);
unsigned
int
fvp_pwrc_get_cpu_wkr
(
u_register_t
mpidr
);
#endif
/*__ASSEMBLY__*/
#endif
/*__ASSEMBLY__*/
...
...
plat/arm/board/fvp/fvp_bl1_setup.c
View file @
73a96051
/*
/*
* Copyright (c) 2013-201
6
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <plat_arm.h>
#include <plat_arm.h>
#include <platform.h>
#include <tbbr_img_def.h>
#include <tbbr_img_def.h>
#include "fvp_private.h"
#include "fvp_private.h"
...
...
plat/arm/board/fvp/fvp_bl2u_setup.c
View file @
73a96051
/*
/*
* Copyright (c) 2013-201
5
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <plat_arm.h>
#include <plat_arm.h>
#include <platform.h>
#include "fvp_def.h"
#include "fvp_def.h"
#include "fvp_private.h"
#include "fvp_private.h"
...
...
plat/arm/board/fvp/fvp_common.c
View file @
73a96051
/*
/*
* Copyright (c) 2013-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include <secure_partition.h>
#include <secure_partition.h>
#include <v2m_def.h>
#include <v2m_def.h>
#include "../fvp_def.h"
#include "../fvp_def.h"
#include "fvp_private.h"
/* Defines for GIC Driver build time selection */
/* Defines for GIC Driver build time selection */
#define FVP_GICV2 1
#define FVP_GICV2 1
...
...
plat/arm/board/fvp/fvp_err.c
View file @
73a96051
/*
/*
* Copyright (c) 2015-201
6
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#include <debug.h>
#include <debug.h>
#include <errno.h>
#include <errno.h>
#include <norflash.h>
#include <norflash.h>
#include <platform.h>
#include <stdint.h>
#include <stdint.h>
/*
/*
...
...
plat/arm/board/fvp/fvp_pm.c
View file @
73a96051
/*
/*
* Copyright (c) 2013-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
#include <psci.h>
#include <psci.h>
#include <spe.h>
#include <spe.h>
#include <v2m_def.h>
#include <v2m_def.h>
#include "../../../../drivers/arm/gic/v3/gicv3_private.h"
#include "drivers/pwrc/fvp_pwrc.h"
#include "drivers/pwrc/fvp_pwrc.h"
#include "fvp_def.h"
#include "fvp_def.h"
#include "fvp_private.h"
#include "fvp_private.h"
...
@@ -74,10 +75,10 @@ static void fvp_cluster_pwrdwn_common(void)
...
@@ -74,10 +75,10 @@ static void fvp_cluster_pwrdwn_common(void)
* support SYSTEM_SUSPEND and it is `faked` in firmware. Hence, for wake up
* support SYSTEM_SUSPEND and it is `faked` in firmware. Hence, for wake up
* from `fake` system suspend the GIC must not be powered off.
* from `fake` system suspend the GIC must not be powered off.
*/
*/
void
arm_gicv3_distif_pre_save
(
unsigned
int
proc_num
)
void
arm_gicv3_distif_pre_save
(
unsigned
int
rdist_
proc_num
)
{}
{}
void
arm_gicv3_distif_post_restore
(
unsigned
int
proc_num
)
void
arm_gicv3_distif_post_restore
(
unsigned
int
rdist_
proc_num
)
{}
{}
static
void
fvp_power_domain_on_finish_common
(
const
psci_power_state_t
*
target_state
)
static
void
fvp_power_domain_on_finish_common
(
const
psci_power_state_t
*
target_state
)
...
@@ -123,7 +124,7 @@ static void fvp_power_domain_on_finish_common(const psci_power_state_t *target_s
...
@@ -123,7 +124,7 @@ static void fvp_power_domain_on_finish_common(const psci_power_state_t *target_s
/*******************************************************************************
/*******************************************************************************
* FVP handler called when a CPU is about to enter standby.
* FVP handler called when a CPU is about to enter standby.
******************************************************************************/
******************************************************************************/
void
fvp_cpu_standby
(
plat_local_state_t
cpu_state
)
static
void
fvp_cpu_standby
(
plat_local_state_t
cpu_state
)
{
{
assert
(
cpu_state
==
ARM_LOCAL_STATE_RET
);
assert
(
cpu_state
==
ARM_LOCAL_STATE_RET
);
...
@@ -140,7 +141,7 @@ void fvp_cpu_standby(plat_local_state_t cpu_state)
...
@@ -140,7 +141,7 @@ void fvp_cpu_standby(plat_local_state_t cpu_state)
* FVP handler called when a power domain is about to be turned on. The
* FVP handler called when a power domain is about to be turned on. The
* mpidr determines the CPU to be turned on.
* mpidr determines the CPU to be turned on.
******************************************************************************/
******************************************************************************/
int
fvp_pwr_domain_on
(
u_register_t
mpidr
)
static
int
fvp_pwr_domain_on
(
u_register_t
mpidr
)
{
{
int
rc
=
PSCI_E_SUCCESS
;
int
rc
=
PSCI_E_SUCCESS
;
unsigned
int
psysr
;
unsigned
int
psysr
;
...
@@ -162,7 +163,7 @@ int fvp_pwr_domain_on(u_register_t mpidr)
...
@@ -162,7 +163,7 @@ int fvp_pwr_domain_on(u_register_t mpidr)
* FVP handler called when a power domain is about to be turned off. The
* FVP handler called when a power domain is about to be turned off. The
* target_state encodes the power state that each level should transition to.
* target_state encodes the power state that each level should transition to.
******************************************************************************/
******************************************************************************/
void
fvp_pwr_domain_off
(
const
psci_power_state_t
*
target_state
)
static
void
fvp_pwr_domain_off
(
const
psci_power_state_t
*
target_state
)
{
{
assert
(
target_state
->
pwr_domain_state
[
ARM_PWR_LVL0
]
==
assert
(
target_state
->
pwr_domain_state
[
ARM_PWR_LVL0
]
==
ARM_LOCAL_STATE_OFF
);
ARM_LOCAL_STATE_OFF
);
...
@@ -192,7 +193,7 @@ void fvp_pwr_domain_off(const psci_power_state_t *target_state)
...
@@ -192,7 +193,7 @@ void fvp_pwr_domain_off(const psci_power_state_t *target_state)
* FVP handler called when a power domain is about to be suspended. The
* FVP handler called when a power domain is about to be suspended. The
* target_state encodes the power state that each level should transition to.
* target_state encodes the power state that each level should transition to.
******************************************************************************/
******************************************************************************/
void
fvp_pwr_domain_suspend
(
const
psci_power_state_t
*
target_state
)
static
void
fvp_pwr_domain_suspend
(
const
psci_power_state_t
*
target_state
)
{
{
unsigned
long
mpidr
;
unsigned
long
mpidr
;
...
@@ -241,7 +242,7 @@ void fvp_pwr_domain_suspend(const psci_power_state_t *target_state)
...
@@ -241,7 +242,7 @@ void fvp_pwr_domain_suspend(const psci_power_state_t *target_state)
* being turned off earlier. The target_state encodes the low power state that
* being turned off earlier. The target_state encodes the low power state that
* each level has woken up from.
* each level has woken up from.
******************************************************************************/
******************************************************************************/
void
fvp_pwr_domain_on_finish
(
const
psci_power_state_t
*
target_state
)
static
void
fvp_pwr_domain_on_finish
(
const
psci_power_state_t
*
target_state
)
{
{
fvp_power_domain_on_finish_common
(
target_state
);
fvp_power_domain_on_finish_common
(
target_state
);
...
@@ -259,7 +260,7 @@ void fvp_pwr_domain_on_finish(const psci_power_state_t *target_state)
...
@@ -259,7 +260,7 @@ void fvp_pwr_domain_on_finish(const psci_power_state_t *target_state)
* TODO: At the moment we reuse the on finisher and reinitialize the secure
* TODO: At the moment we reuse the on finisher and reinitialize the secure
* context. Need to implement a separate suspend finisher.
* context. Need to implement a separate suspend finisher.
******************************************************************************/
******************************************************************************/
void
fvp_pwr_domain_suspend_finish
(
const
psci_power_state_t
*
target_state
)
static
void
fvp_pwr_domain_suspend_finish
(
const
psci_power_state_t
*
target_state
)
{
{
/*
/*
* Nothing to be done on waking up from retention from CPU level.
* Nothing to be done on waking up from retention from CPU level.
...
@@ -341,13 +342,15 @@ static int fvp_node_hw_state(u_register_t target_cpu,
...
@@ -341,13 +342,15 @@ static int fvp_node_hw_state(u_register_t target_cpu,
* layer. The `fake` SYSTEM_SUSPEND allows us to validate some of the driver
* layer. The `fake` SYSTEM_SUSPEND allows us to validate some of the driver
* save and restore sequences on FVP.
* save and restore sequences on FVP.
*/
*/
void
fvp_get_sys_suspend_power_state
(
psci_power_state_t
*
req_state
)
#if !ARM_BL31_IN_DRAM
static
void
fvp_get_sys_suspend_power_state
(
psci_power_state_t
*
req_state
)
{
{
unsigned
int
i
;
unsigned
int
i
;
for
(
i
=
ARM_PWR_LVL0
;
i
<=
PLAT_MAX_PWR_LVL
;
i
++
)
for
(
i
=
ARM_PWR_LVL0
;
i
<=
PLAT_MAX_PWR_LVL
;
i
++
)
req_state
->
pwr_domain_state
[
i
]
=
ARM_LOCAL_STATE_OFF
;
req_state
->
pwr_domain_state
[
i
]
=
ARM_LOCAL_STATE_OFF
;
}
}
#endif
/*******************************************************************************
/*******************************************************************************
* Handler to filter PSCI requests.
* Handler to filter PSCI requests.
...
...
plat/arm/board/fvp/fvp_topology.c
View file @
73a96051
/*
/*
* Copyright (c) 2013-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -8,11 +8,12 @@
...
@@ -8,11 +8,12 @@
#include <arm_config.h>
#include <arm_config.h>
#include <cassert.h>
#include <cassert.h>
#include <plat_arm.h>
#include <plat_arm.h>
#include <platform.h>
#include <platform_def.h>
#include <platform_def.h>
#include "drivers/pwrc/fvp_pwrc.h"
#include "drivers/pwrc/fvp_pwrc.h"
/* The FVP power domain tree descriptor */
/* The FVP power domain tree descriptor */
unsigned
char
fvp_power_domain_tree_desc
[
FVP_CLUSTER_COUNT
+
2
];
static
unsigned
char
fvp_power_domain_tree_desc
[
FVP_CLUSTER_COUNT
+
2
];
CASSERT
(
FVP_CLUSTER_COUNT
&&
FVP_CLUSTER_COUNT
<=
256
,
assert_invalid_fvp_cluster_count
);
CASSERT
(
FVP_CLUSTER_COUNT
&&
FVP_CLUSTER_COUNT
<=
256
,
assert_invalid_fvp_cluster_count
);
...
...
plat/arm/board/fvp/fvp_trusted_boot.c
View file @
73a96051
/*
/*
* Copyright (c) 2016-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
#include <assert.h>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <string.h>
#include <platform.h>
#include <tbbr_oid.h>
#include <tbbr_oid.h>
#include "fvp_def.h"
#include "fvp_def.h"
...
...
plat/arm/board/juno/juno_err.c
View file @
73a96051
/*
/*
* Copyright (c) 2015-201
6
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <arch_helpers.h>
#include <arch_helpers.h>
#include <errno.h>
#include <errno.h>
#include <platform.h>
#include <v2m_def.h>
#include <v2m_def.h>
#define V2M_SYS_NVFLAGS_ADDR (V2M_SYSREGS_BASE + V2M_SYS_NVFLAGS)
#define V2M_SYS_NVFLAGS_ADDR (V2M_SYSREGS_BASE + V2M_SYS_NVFLAGS)
...
...
plat/arm/board/juno/juno_topology.c
View file @
73a96051
/*
/*
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <arm_def.h>
#include <arm_def.h>
#include <css_pm.h>
#include <plat_arm.h>
#include <plat_arm.h>
#include <platform.h>
#include "juno_def.h"
#include "juno_def.h"
/*
/*
...
@@ -23,7 +25,7 @@
...
@@ -23,7 +25,7 @@
* i.e. CLUSTER1 CPUs are allocated indices from 0 to 3 and the higher
* i.e. CLUSTER1 CPUs are allocated indices from 0 to 3 and the higher
* indices for CLUSTER0 CPUs.
* indices for CLUSTER0 CPUs.
*/
*/
const
unsigned
char
juno_power_domain_tree_desc
[]
=
{
static
const
unsigned
char
juno_power_domain_tree_desc
[]
=
{
/* No of root nodes */
/* No of root nodes */
JUNO_PWR_DOMAINS_AT_MAX_PWR_LVL
,
JUNO_PWR_DOMAINS_AT_MAX_PWR_LVL
,
/* No of children for the root node */
/* No of children for the root node */
...
...
plat/arm/board/juno/juno_trng.c
View file @
73a96051
/*
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
#include <mmio.h>
#include <mmio.h>
#include <string.h>
#include <string.h>
#include <utils_def.h>
#include <utils_def.h>
#include "juno_decl.h"
#include "juno_def.h"
#include "juno_def.h"
#define NSAMPLE_CLOCKS 1
/* min 1 cycle, max 231 cycles */
#define NSAMPLE_CLOCKS 1
/* min 1 cycle, max 231 cycles */
...
...
plat/arm/common/arm_bl1_setup.c
View file @
73a96051
...
@@ -7,9 +7,11 @@
...
@@ -7,9 +7,11 @@
#include <arch.h>
#include <arch.h>
#include <arm_def.h>
#include <arm_def.h>
#include <arm_xlat_tables.h>
#include <arm_xlat_tables.h>
#include <bl1.h>
#include <bl_common.h>
#include <bl_common.h>
#include <console.h>
#include <console.h>
#include <plat_arm.h>
#include <plat_arm.h>
#include <platform.h>
#include <platform_def.h>
#include <platform_def.h>
#include <sp805.h>
#include <sp805.h>
#include <utils.h>
#include <utils.h>
...
...
Prev
1
2
3
4
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