Unverified Commit 60e062fb authored by danh-arm's avatar danh-arm Committed by GitHub
Browse files

Merge pull request #1486 from antonio-nino-diaz-arm/an/psci-misra

Fix several MISRA defects in PSCI library
parents d87d524e 6b7b0f36
...@@ -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 <common_def.h> #include <common_def.h>
#include <tbbr/tbbr_img_def.h> #include <tbbr/tbbr_img_def.h>
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
#define PLATFORM_CORE_COUNT \ #define PLATFORM_CORE_COUNT \
((UNIPHIER_MAX_CPUS_PER_CLUSTER) * (UNIPHIER_CLUSTER_COUNT)) ((UNIPHIER_MAX_CPUS_PER_CLUSTER) * (UNIPHIER_CLUSTER_COUNT))
#define PLAT_MAX_PWR_LVL 1 #define PLAT_MAX_PWR_LVL U(1)
#define PLAT_MAX_OFF_STATE 2 #define PLAT_MAX_OFF_STATE U(2)
#define PLAT_MAX_RET_STATE 1 #define PLAT_MAX_RET_STATE U(1)
#define BL2_BASE ULL(0x80000000) #define BL2_BASE ULL(0x80000000)
#define BL2_LIMIT ULL(0x80080000) #define BL2_LIMIT ULL(0x80080000)
...@@ -59,4 +59,4 @@ ...@@ -59,4 +59,4 @@
#define TSP_SEC_MEM_SIZE ((BL32_LIMIT) - (BL32_BASE)) #define TSP_SEC_MEM_SIZE ((BL32_LIMIT) - (BL32_BASE))
#define TSP_IRQ_SEC_PHY_TIMER 29 #define TSP_IRQ_SEC_PHY_TIMER 29
#endif /* __PLATFORM_DEF_H__ */ #endif /* PLATFORM_DEF_H */
...@@ -4,8 +4,10 @@ ...@@ -4,8 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __BOARD_DEF_H__ #ifndef BOARD_DEF_H
#define __BOARD_DEF_H__ #define BOARD_DEF_H
#include <utils_def.h>
/* The ports must be in order and contiguous */ /* The ports must be in order and contiguous */
#define K3_CLUSTER0_CORE_COUNT 2 #define K3_CLUSTER0_CORE_COUNT 2
...@@ -27,7 +29,7 @@ ...@@ -27,7 +29,7 @@
#define SEC_SRAM_BASE 0x70000000 /* Base of MSMC SRAM */ #define SEC_SRAM_BASE 0x70000000 /* Base of MSMC SRAM */
#define SEC_SRAM_SIZE 0x00020000 /* 128k */ #define SEC_SRAM_SIZE 0x00020000 /* 128k */
#define PLAT_MAX_OFF_STATE 2 #define PLAT_MAX_OFF_STATE U(2)
#define PLAT_MAX_RET_STATE 1 #define PLAT_MAX_RET_STATE U(1)
#endif /* __BOARD_DEF_H__ */ #endif /* BOARD_DEF_H */
/* /*
* Copyright (c) 2014-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
* *
* 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 <gic_common.h> #include <gic_common.h>
#include <interrupt_props.h> #include <interrupt_props.h>
#include <utils_def.h>
#include "../zynqmp_def.h" #include "../zynqmp_def.h"
/******************************************************************************* /*******************************************************************************
...@@ -21,9 +22,9 @@ ...@@ -21,9 +22,9 @@
#define PLATFORM_CORE_COUNT 4 #define PLATFORM_CORE_COUNT 4
#define PLAT_NUM_POWER_DOMAINS 5 #define PLAT_NUM_POWER_DOMAINS 5
#define PLAT_MAX_PWR_LVL 1 #define PLAT_MAX_PWR_LVL U(1)
#define PLAT_MAX_RET_STATE 1 #define PLAT_MAX_RET_STATE U(1)
#define PLAT_MAX_OFF_STATE 2 #define PLAT_MAX_OFF_STATE U(2)
/******************************************************************************* /*******************************************************************************
* BL31 specific defines. * BL31 specific defines.
...@@ -142,4 +143,4 @@ ...@@ -142,4 +143,4 @@
#define PLAT_ARM_G0_IRQ_PROPS(grp) #define PLAT_ARM_G0_IRQ_PROPS(grp)
#endif /* __PLATFORM_DEF_H__ */ #endif /* PLATFORM_DEF_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment