aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/docg3.h
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2011-11-19 10:02:56 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 13:07:28 -0500
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 @@
127 127
128#define DOC_ASICMODECONFIRM 0x1072 128#define DOC_ASICMODECONFIRM 0x1072
129#define DOC_CHIPID_INV 0x1074 129#define DOC_CHIPID_INV 0x1074
130#define DOC_POWERMODE 0x107c
130 131
131/* 132/*
132 * Flash sequences 133 * Flash sequences
@@ -239,6 +240,11 @@
239#define DOC_READADDR_ADDR_MASK 0x1fff 240#define DOC_READADDR_ADDR_MASK 0x1fff
240 241
241/* 242/*
243 * Flash register : DOC_POWERMODE
244 */
245#define DOC_POWERDOWN_READY 0x80
246
247/*
242 * Status of erase and write operation 248 * Status of erase and write operation
243 */ 249 */
244#define DOC_PLANES_STATUS_FAIL 0x01 250#define DOC_PLANES_STATUS_FAIL 0x01