aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-regs.h
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:09:50 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:50 +0000
commit49a29fe542da56921c181955329a73478d1ec536 (patch)
treebfed68e4e817ad7c7407956646c4ed44e285163b /drivers/mfd/glamo/glamo-regs.h
parent62f172db87f7b81bd67a316531e9467ba8de706f (diff)
fix-glamo-suspend-resume-dram-and-engines.patch
Two issues... we never took care to take down engines in suspend and bring them back in resume. This was part of the display corruption that could be seen briefly on resume. The other issue that made the "noise" corruption was bad ordering of resume steps. This patch simplifies (removing needless re-init) resume actions and makes explicit the suspend and resume steps. It also adds code to track which engines are up and push them down in suspend and bring them back in resume. The result is no more corruption of display buffer in suspend, it comes back completely clean. Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'drivers/mfd/glamo/glamo-regs.h')
-rw-r--r--drivers/mfd/glamo/glamo-regs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mfd/glamo/glamo-regs.h b/drivers/mfd/glamo/glamo-regs.h
index 32411e37f86..2328b8ac989 100644
--- a/drivers/mfd/glamo/glamo-regs.h
+++ b/drivers/mfd/glamo/glamo-regs.h
@@ -142,8 +142,12 @@ enum glamo_register_mem {
#define GLAMO_MEM_TYPE_MASK 0x03
enum glamo_reg_mem_dram1 {
- GLAMO_MEM_DRAM1_EN_SDRAM_CLK = (1 << 11),
+ /* b0 - b10 == refresh period, 1 -> 2048 clocks */
+ GLAMO_MEM_DRAM1_EN_GATE_CLK = (1 << 11),
GLAMO_MEM_DRAM1_SELF_REFRESH = (1 << 12),
+ GLAMO_MEM_DRAM1_EN_GATE_CKE = (1 << 13),
+ GLAMO_MEM_DRAM1_EN_DRAM_REFRESH = (1 << 14),
+ GLAMO_MEM_DRAM1_EN_MODEREG_SET = (1 << 15),
};
enum glamo_reg_mem_dram2 {