From 8bfb16813aff9b3dcbeaa2f77027d44b97f04b6d Mon Sep 17 00:00:00 2001 From: Jiafei Pan Date: Mon, 27 Sep 2021 12:18:41 +0800 Subject: [PATCH] feat(plat/nxp/common): add EESR register definition Add OCRAM bit mask to be used in OCRAM driver. Signed-off-by: Jiafei Pan Change-Id: If82542cc6c1c243d8f998b193954dd72312ee1a4 --- .../include/default/ch_2/soc_default_helper_macros.h | 7 ++++++- .../include/default/ch_3_2/soc_default_helper_macros.h | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/plat/nxp/common/include/default/ch_2/soc_default_helper_macros.h b/plat/nxp/common/include/default/ch_2/soc_default_helper_macros.h index 789b112a6..84f07e635 100644 --- a/plat/nxp/common/include/default/ch_2/soc_default_helper_macros.h +++ b/plat/nxp/common/include/default/ch_2/soc_default_helper_macros.h @@ -56,6 +56,11 @@ #define RCPM_POWMGTCSR_OFFSET 0x130 #define RCPM_IPPDEXPCR0_OFFSET 0x140 #define RCPM_POWMGTCSR_LPM20_REQ 0x00100000 -#endif +#endif /* NXP_RCPM_ADDR */ + +#define DCFG_SBEESR2_ADDR 0x20140534 +#define DCFG_MBEESR2_ADDR 0x20140544 +/* SBEESR and MBEESR bit mask */ +#define OCRAM_EESR_MASK 0x00000060 #endif /* SOC_DEFAULT_HELPER_MACROS_H */ diff --git a/plat/nxp/common/include/default/ch_3_2/soc_default_helper_macros.h b/plat/nxp/common/include/default/ch_3_2/soc_default_helper_macros.h index 8de516efc..1edd28d2a 100644 --- a/plat/nxp/common/include/default/ch_3_2/soc_default_helper_macros.h +++ b/plat/nxp/common/include/default/ch_3_2/soc_default_helper_macros.h @@ -79,4 +79,9 @@ #define ENABLE_WUO 0x10 #endif /* NXP_CCN_ADDR */ +#define DCFG_SBEESR2_ADDR 0x00100534 +#define DCFG_MBEESR2_ADDR 0x00100544 +/* SBEESR and MBEESR bit mask */ +#define OCRAM_EESR_MASK 0x00000008 + #endif /* SOC_DEFAULT_HELPER_MACROS_H */