Skip to contentSkip to conversation

gxfb: add power management functionality

PATCH In review Andres Salomon 1 participant 1 message Mar 9, 2008 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 5/6 gxfb: add power management functionality

From d2e53f3c71afa8ffa93a748d15efb9b5d25b9b1b Mon Sep 17 00:00:00 2001
From: Andres Salomon <[email protected]>
Date: Tue, 26 Feb 2008 05:00:42 -0500
Subject: [PATCH] gxfb: add power management functionality

This adds the ability to suspend/resume the gxfb driver, which includes:
- The addition of a Graphics Processor register table in gxfb.h, and associated GP handling.
- Register and palette saving code; registers are stored in gxfb_par. A few MSR values are saved as well.
- gx_powerup and gx_powerdown functions which restore/save registers and enable/disable graphic engines.
- gxfb_suspend/gxfb_resume

Originally based on a patch by Jordan Crouse.

---
 drivers/video/geode/Makefile     |    2 +-
 drivers/video/geode/gxfb.h       |   64 +++++++++
 drivers/video/geode/gxfb_core.c  |   63 +++++++++
 drivers/video/geode/suspend_gx.c |  264 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 392 insertions(+), 1 deletions(-)
 create mode 100644 drivers/video/geode/suspend_gx.c
drivers/video/geode/Makefile +1 -1
index 957304b..5c98da1 100644
@@ -5,5 +5,5 @@ obj-$(CONFIG_FB_GEODE_GX)  += gxfb.o
 obj-$(CONFIG_FB_GEODE_LX)  += lxfb.o
 
 gx1fb-objs := gx1fb_core.o display_gx1.o video_cs5530.o
-gxfb-objs  := gxfb_core.o display_gx.o video_gx.o
+gxfb-objs  := gxfb_core.o display_gx.o video_gx.o suspend_gx.o
 lxfb-objs  := lxfb_core.o lxfb_ops.o
drivers/video/geode/gxfb.h +64 -0

86 lines not on this page · raw message

drivers/video/geode/gxfb_core.c +63 -0

99 lines not on this page · raw message

drivers/video/geode/suspend_gx.c new file +264 -0

264 lines not on this page · raw message

Signature · 7 lines
1.5.3.7


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/