summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2014-11-19 14:24:16 +0800
committerAnson Huang <b20788@freescale.com>2014-11-20 13:09:20 +0800
commitcb7f63c88357f84e0044be520aa99fe50cc2d381 (patch)
treeba8ee9940deeab8488ffb8916a6293b5558c2f9a /arch
parent270121f760579ed8b0bd8ea4d9eb03c4ac0bfbe0 (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')
-rw-r--r--arch/arm/mach-imx/pm-imx6.c3
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 b6b208023861..0b9185843bba 100644
--- a/arch/arm/mach-imx/pm-imx6.c
+++ b/arch/arm/mach-imx/pm-imx6.c
@@ -863,7 +863,8 @@ Please ensure device tree has an entry fsl,lpm-sram\n");
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);