summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2009-09-21 15:28:09 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2009-09-21 15:28:09 +0800
commitb4d29452b929a3ef224d3625e4bc66b787c5edb7 (patch)
tree09907db14e70f85c36c88210d90c1e12cf9531a0 /src
parent57fc09cef28bad2e3e8455b93ef2927118f8a3a3 (diff)
More dumps for Arrandale LVDS
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/i810_reg.h8
-rw-r--r--src/i830_debug.c20
2 files changed, 23 insertions, 5 deletions
diff --git a/src/i810_reg.h b/src/i810_reg.h
index f8c6fb1e..191ddb2a 100644
--- a/src/i810_reg.h
+++ b/src/i810_reg.h
@@ -3068,9 +3068,10 @@ typedef enum {
#define PFB_CTL_1 0x68880
#define PF_ENABLE (1<<31)
-/* CPU panel fitter */
-#define PFA_CTRL_1 0x68080
-#define PFB_CTRL_1 0x68880
+#define PFA_WIN_POS 0x68070
+#define PFB_WIN_POS 0x68870
+#define PFA_WIN_SIZE 0x68074
+#define PFB_WIN_SIZE 0x68874
/* legacy palette */
#define LGC_PALETTE_A 0x4a000
@@ -3404,6 +3405,7 @@ typedef enum {
#define HDMIC 0xe1150
#define HDMID 0xe1160
+#define PCH_LVDS 0xe1180
#define AUD_CONFIG 0x62000
#define AUD_DEBUG 0x62010
diff --git a/src/i830_debug.c b/src/i830_debug.c
index cf3f4396..eae141b6 100644
--- a/src/i830_debug.c
+++ b/src/i830_debug.c
@@ -1213,6 +1213,17 @@ DEBUGSTRING(igdng_debug_panel_fitting)
val & (1 << 20) ? "field 0" : "field 1");
}
+DEBUGSTRING(igdng_debug_pf_win)
+{
+ int a, b;
+
+ a = (val >> 16) & 0x1fff;
+ b = val & 0xfff;
+
+ return XNFprintf("%d, %d", a, b);
+}
+
+
static struct i830SnapshotRec igdng_snapshot[] = {
DEFINEREG2(CPU_VGACNTRL, i830_debug_vgacntrl),
DEFINEREG(DIGITAL_PORT_HOTPLUG_CNTRL),
@@ -1284,8 +1295,12 @@ static struct i830SnapshotRec igdng_snapshot[] = {
DEFINEREG2(PIPEB_LINK_M2, igdng_debug_n),
DEFINEREG2(PIPEB_LINK_N2, igdng_debug_n),
- DEFINEREG2(PFA_CTRL_1, igdng_debug_panel_fitting),
- DEFINEREG2(PFB_CTRL_1, igdng_debug_panel_fitting),
+ DEFINEREG2(PFA_CTL_1, igdng_debug_panel_fitting),
+ DEFINEREG2(PFB_CTL_1, igdng_debug_panel_fitting),
+ DEFINEREG2(PFA_WIN_POS, igdng_debug_pf_win),
+ DEFINEREG2(PFB_WIN_POS, igdng_debug_pf_win),
+ DEFINEREG2(PFA_WIN_SIZE, igdng_debug_pf_win),
+ DEFINEREG2(PFB_WIN_SIZE, igdng_debug_pf_win),
/* PCH */
@@ -1361,6 +1376,7 @@ static struct i830SnapshotRec igdng_snapshot[] = {
DEFINEREG(HDMIB),
DEFINEREG(HDMIC),
DEFINEREG(HDMID),
+ DEFINEREG2(PCH_LVDS, i830_debug_lvds),
};
#define NUM_IGDNG_SNAPSHOTREGS (sizeof(igdng_snapshot) / sizeof(igdng_snapshot[0]))
#undef DEFINEREG