mtd: nand: gpmi: add gpmi dsm supend/resume support
authorHuang Shijie <b32955@freescale.com>
Wed, 2 Dec 2015 22:47:40 +0000 (16:47 -0600)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 23 Jan 2016 22:45:57 +0000 (14:45 -0800)
commit026918e71111afe88382f8d800a852d3e36bf3d4
treeb0b80260788beaa3b5c05d0c7856aeed5b3a2311
parent36bcc0c9c2bc8f56569cd735ba531a51358d7c2b
mtd: nand: gpmi: add gpmi dsm supend/resume support

i.MX6SX supports deep sleep mode(DSM) that may turn off GPMI/BCH power
during suspend, add gpmi nand suspend/resume function to release DMA
channel in suspend function and re-init GPMI/BCH controller during
resume function.

Although it is not necessary to restore GPMI/BCH registers value for
i.MX6QDL, the code doesn't distinguish different platforms to keep the
code simple.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Han Xu <han.xu@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c