aboutsummaryrefslogtreecommitdiff
path: root/plat/socionext/synquacer
diff options
context:
space:
mode:
authordanh-arm <dan.handley@arm.com>2018-07-25 16:09:54 +0100
committerGitHub <noreply@github.com>2018-07-25 16:09:54 +0100
commit60e062fb0e33f7d9825267cbfb397d7c7aca1169 (patch)
tree22e9c622d9bcc757156da179b997bf14cd66b1f9 /plat/socionext/synquacer
parentd87d524ee4482c00a15f6d72c6fe5ab02f5f4746 (diff)
parent6b7b0f368680ce657390d0a046871d880d704b2d (diff)
downloadtrusted-firmware-a-60e062fb0e33f7d9825267cbfb397d7c7aca1169.tar.gz
Merge pull request #1486 from antonio-nino-diaz-arm/an/psci-misra
Fix several MISRA defects in PSCI library
Diffstat (limited to 'plat/socionext/synquacer')
-rw-r--r--plat/socionext/synquacer/include/platform_def.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/plat/socionext/synquacer/include/platform_def.h b/plat/socionext/synquacer/include/platform_def.h
index 3e1664223a..bde73485bf 100644
--- a/plat/socionext/synquacer/include/platform_def.h
+++ b/plat/socionext/synquacer/include/platform_def.h
@@ -4,10 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#ifndef __PLATFORM_DEF_H__
-#define __PLATFORM_DEF_H__
+#ifndef PLATFORM_DEF_H
+#define PLATFORM_DEF_H
#include <common_def.h>
+#include <utils_def.h>
/* CPU topology */
#define PLAT_MAX_CORES_PER_CLUSTER 2
@@ -15,9 +16,9 @@
#define PLATFORM_CORE_COUNT (PLAT_CLUSTER_COUNT * \
PLAT_MAX_CORES_PER_CLUSTER)
-#define PLAT_MAX_PWR_LVL 1
-#define PLAT_MAX_RET_STATE 1
-#define PLAT_MAX_OFF_STATE 2
+#define PLAT_MAX_PWR_LVL U(1)
+#define PLAT_MAX_RET_STATE U(1)
+#define PLAT_MAX_OFF_STATE U(2)
#define SQ_LOCAL_STATE_RUN 0
#define SQ_LOCAL_STATE_RET 1
@@ -78,4 +79,4 @@
#define PLAT_SQ_GPIO_BASE 0x51000000
-#endif /* __PLATFORM_DEF_H__ */
+#endif /* PLATFORM_DEF_H */