diff options
author | Anson Huang <b20788@freescale.com> | 2014-11-19 14:24:16 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-01-15 21:18:42 -0600 |
commit | dd3302cab46a13172c3dc121cb1b76c21e5a77c3 (patch) | |
tree | 662f609556be565905f07125eb5891521d61cc87 /arch/arm/mach-imx/pm-imx6.c | |
parent | 5f89895c761d8a1d5136900b6412c1bab2762490 (diff) |
MLK-9872-3 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 f0c736fe96e6..61bea5e2cd1c 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -1062,7 +1062,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); |