summaryrefslogtreecommitdiff
path: root/drivers/mtd/devices/docg3.h
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2011-11-19 16:02:56 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 18:07:28 +0000
commite4b2a96aeb2b3dfee8d19d0335c6151d4cca4631 (patch)
tree05fba96057ccb827c490b1f8c502882b16f20899 /drivers/mtd/devices/docg3.h
parentd13d19ece39f20bf097782e1812a9c31a5a4fcf1 (diff)
mtd: docg3: add suspend and resume
Add functions to powerdown and powerup from suspend, in order to save power. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Reviewed-by: Ivan Djelic <ivan.djelic@parrot.com> Reviewed-by: Mike Dunn <mikedunn@newsguy.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/devices/docg3.h')
-rw-r--r--drivers/mtd/devices/docg3.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/devices/docg3.h b/drivers/mtd/devices/docg3.h
index 33db7272c460..cd70b181f797 100644
--- a/drivers/mtd/devices/docg3.h
+++ b/drivers/mtd/devices/docg3.h
@@ -127,6 +127,7 @@
#define DOC_ASICMODECONFIRM 0x1072
#define DOC_CHIPID_INV 0x1074
+#define DOC_POWERMODE 0x107c
/*
* Flash sequences
@@ -239,6 +240,11 @@
#define DOC_READADDR_ADDR_MASK 0x1fff
/*
+ * Flash register : DOC_POWERMODE
+ */
+#define DOC_POWERDOWN_READY 0x80
+
+/*
* Status of erase and write operation
*/
#define DOC_PLANES_STATUS_FAIL 0x01