diff options
author | Jacky Bai <ping.bai@nxp.com> | 2020-03-31 16:39:01 +0800 |
---|---|---|
committer | Jacky Bai <ping.bai@nxp.com> | 2020-03-31 17:02:35 +0800 |
commit | 2704540b4a7952d73e702a3e079c13c6af5ef03a (patch) | |
tree | 187c20ef0b41b81d37400952d1535450bf3fb4b0 /plat | |
parent | bd5f9fbc6b1fc9dd1f15c72e9a92195825c0f1ba (diff) |
plat: imx8m: Replace magic number with macro defines
Replace the imr offset magic number with macro defines.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/imx/imx8m/gpc_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |