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 <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2023-11-15 14:00:33 -06:00 committed by Mahesh Mahadevan
parent 447f12d942
commit ad3b3a9b93

View file

@ -8,7 +8,7 @@
#include <soc.h>
#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)