diff options
author | Han Xu <b45815@freescale.com> | 2015-08-07 10:37:50 -0500 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 09:24:13 -0500 |
commit | 754bf0cd1ff8b1295bdd312ea46ee7db817cef49 (patch) | |
tree | 5acd52cedf97a76f3e54638f8d904c84ce8a2b1d /drivers/mtd | |
parent | 906d0c1381e865dc7c96a4bde6fe694f1ce089a9 (diff) |
MLK-11336: mtd: nand: enable LPSR for GPMI NAND
The LPSR turns off the power for IOMUX when suspending so restore the
IOMUX when resuming in GPMI NAND driver.
The function was not tested yet since NAND only supported on 19x19
LPDDR board.
Signed-off-by: Han Xu <b45815@freescale.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index 479efc77fe04..c09a6f26a095 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c @@ -1909,6 +1909,7 @@ static int gpmi_pm_suspend(struct device *dev) struct gpmi_nand_data *this = dev_get_drvdata(dev); release_dma_channels(this); + pinctrl_pm_select_sleep_state(dev); return 0; } @@ -1917,6 +1918,8 @@ static int gpmi_pm_resume(struct device *dev) struct gpmi_nand_data *this = dev_get_drvdata(dev); int ret; + pinctrl_pm_select_default_state(dev); + ret = acquire_dma_channels(this); if (ret < 0) return ret; |