diff options
author | Anson Huang <b20788@freescale.com> | 2014-11-19 14:24:16 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:20:42 +0300 |
commit | f15fc42068d79c2750b79373ae37ab8cb68e9117 (patch) | |
tree | 61dc870a95682881983cc0a85046ce0cddf20e02 /arch/arm/mach-imx/pm-imx6.c | |
parent | 7f66ea2ffe4363c8500df79a9bf504a71dc10da2 (diff) |
MLK-11488-8 arm: imx: adjust qspi device index according to dtb setting
When resume from DSM with Mega/Fast off, we need to restore
the right QSPI module for M4, so get the qspi index from dtb file.
Signed-off-by: Anson Huang <b20788@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/pm-imx6.c')
-rw-r--r-- | arch/arm/mach-imx/pm-imx6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c index 51a84cd3f4d1..8f4c57c306ed 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -1170,7 +1170,8 @@ void __init imx6sx_pm_init(void) if (np) console_base = of_iomap(np, 0); if (imx_src_is_m4_enabled()) { - np = of_find_node_by_path("/soc/aips-bus@02100000/qspi@021e4000"); + np = of_find_compatible_node(NULL, NULL, + "fsl,imx6sx-qspi-m4-restore"); if (np) qspi_base = of_iomap(np, 0); WARN_ON(!qspi_base); |