From ad3b3a9b9330bf6b3214fc96bfc8d0201aa25713 Mon Sep 17 00:00:00 2001 From: Declan Snyder Date: Wed, 15 Nov 2023 14:00:33 -0600 Subject: [PATCH] drivers: memc_nxp_flexram: Use nodelabel for GPR Get GPR base address using nodelabel as this will align for all the current in tree platforms. Currently inst 0 of the compat gets wrong node and base address on RT11xx. Signed-off-by: Declan Snyder --- drivers/memc/memc_nxp_flexram.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memc/memc_nxp_flexram.h b/drivers/memc/memc_nxp_flexram.h index 397b60bf55d..5ea2e89d0cc 100644 --- a/drivers/memc/memc_nxp_flexram.h +++ b/drivers/memc/memc_nxp_flexram.h @@ -8,7 +8,7 @@ #include #define FLEXRAM_DT_NODE DT_INST(0, nxp_flexram) -#define IOMUXC_GPR_DT_NODE DT_INST(0, nxp_imx_gpr) +#define IOMUXC_GPR_DT_NODE DT_NODELABEL(iomuxcgpr) #if defined(CONFIG_MEMC_NXP_FLEXRAM_MAGIC_ADDR_API) || \ defined(CONFIG_MEMC_NXP_FLEXRAM_ERROR_INTERRUPT)