aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/geode/video_gx.h
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2006-12-08 05:40:54 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:29:08 -0500
commitab1db0cfcf69f94a5c6831db230982cd6bbeb2e1 (patch)
tree9c8178a6c5a0f5a62498cb47648046ae22a30ec8 /drivers/video/geode/video_gx.h
parentf378819a19e2b9639f17a1a82c5e12adc9512390 (diff)
[PATCH] gxfb: Support flat panel timings
Support TFT panels by correctly setting up the flat panel registers [akpm@osdl.org: cleanups] Signed-off-by: Jordan Crouse <jordan.crouse@amd.com> Cc: "Antonino A. Daplas" <adaplas@pol.net> Acked-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/geode/video_gx.h')
-rw-r--r--drivers/video/geode/video_gx.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/video/geode/video_gx.h b/drivers/video/geode/video_gx.h
index 238181a7d536..8f1e85bfa945 100644
--- a/drivers/video/geode/video_gx.h
+++ b/drivers/video/geode/video_gx.h
@@ -13,6 +13,11 @@
13 13
14extern struct geode_vid_ops gx_vid_ops; 14extern struct geode_vid_ops gx_vid_ops;
15 15
16/* GX Flatpanel control MSR */
17#define GX_VP_MSR_PAD_SELECT 0x2011
18#define GX_VP_PAD_SELECT_MASK 0x3FFFFFFF
19#define GX_VP_PAD_SELECT_TFT 0x1FFFFFFF
20
16/* Geode GX video processor registers */ 21/* Geode GX video processor registers */
17 22
18#define GX_DCFG 0x0008 23#define GX_DCFG 0x0008
@@ -36,9 +41,20 @@ extern struct geode_vid_ops gx_vid_ops;
36#define GX_MISC_A_PWRDN 0x00000800 41#define GX_MISC_A_PWRDN 0x00000800
37 42
38/* Geode GX flat panel display control registers */ 43/* Geode GX flat panel display control registers */
44
45#define GX_FP_PT1 0x0400
46#define GX_FP_PT1_VSIZE_MASK 0x7FF0000
47#define GX_FP_PT1_VSIZE_SHIFT 16
48
49#define GX_FP_PT2 0x408
50#define GX_FP_PT2_VSP (1 << 23)
51#define GX_FP_PT2_HSP (1 << 22)
52
39#define GX_FP_PM 0x410 53#define GX_FP_PM 0x410
40# define GX_FP_PM_P 0x01000000 54# define GX_FP_PM_P 0x01000000
41 55
56#define GX_FP_DFC 0x418
57
42/* Geode GX clock control MSRs */ 58/* Geode GX clock control MSRs */
43 59
44#define MSR_GLCP_SYS_RSTPLL 0x4c000014 60#define MSR_GLCP_SYS_RSTPLL 0x4c000014