From 2704540b4a7952d73e702a3e079c13c6af5ef03a Mon Sep 17 00:00:00 2001 From: Jacky Bai Date: Tue, 31 Mar 2020 16:39:01 +0800 Subject: plat: imx8m: Replace magic number with macro defines Replace the imr offset magic number with macro defines. Signed-off-by: Jacky Bai --- plat/imx/imx8m/gpc_common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plat/imx/imx8m/gpc_common.c b/plat/imx/imx8m/gpc_common.c index 85201f80..c6d9ffe3 100644 --- a/plat/imx/imx8m/gpc_common.c +++ b/plat/imx/imx8m/gpc_common.c @@ -24,7 +24,10 @@ #define M4_LPA_IDLE 0x0 #define LPA_STATUS U(0x94) -static uint32_t gpc_imr_offset[] = { 0x30, 0x40, 0x1c0, 0x1d0, }; +static uint32_t gpc_imr_offset[] = { + IMR1_CORE0_A53, IMR1_CORE1_A53, + IMR1_CORE2_A53, IMR1_CORE3_A53, +}; DEFINE_BAKERY_LOCK(gpc_lock); -- cgit v1.2.3