]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MLK-9872-3 arm: imx: adjust qspi device index according to dtb setting
authorAnson Huang <b20788@freescale.com>
Wed, 19 Nov 2014 06:24:16 +0000 (14:24 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:42 +0000 (21:18 -0600)
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>
arch/arm/mach-imx/pm-imx6.c

index f0c736fe96e6dcbc02047d1760e768276c3797be..61bea5e2cd1cfed008b286615f1cf696e7929d31 100644 (file)
@@ -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);