summaryrefslogtreecommitdiff
path: root/src/radeon_reg.h
diff options
context:
space:
mode:
authorAlex Deucher <alex@t41p.hsd1.va.comcast.net>2007-05-26 01:38:09 -0400
committerAlex Deucher <alex@t41p.hsd1.va.comcast.net>2007-05-26 01:38:09 -0400
commit3a61453efb4f04492cef823b6dd1273b55c6a785 (patch)
treecaf2858bd88a30fb523ec678c5adcc5864093207 /src/radeon_reg.h
parentceec3f62257bafe4771e75d3c4f1d2a517d7acf8 (diff)
RADEON: implement backlight control for LVDS
This code is currently disabled as I'm not sure which laptops actually use this method for backlight control. My laptop seems to use another method as adjusting the backlight level doesn't seem to touch LVDS_GEN_CNTL. Maybe just macs?
Diffstat (limited to 'src/radeon_reg.h')
-rw-r--r--src/radeon_reg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_reg.h b/src/radeon_reg.h
index b8bff780..892e8d0b 100644
--- a/src/radeon_reg.h
+++ b/src/radeon_reg.h
@@ -876,6 +876,9 @@
# define RADEON_LVDS_PANEL_TYPE (1 << 2)
# define RADEON_LVDS_PANEL_FORMAT (1 << 3)
# define RADEON_LVDS_EN (1 << 7)
+# define RADEON_LVDS_BL_MOD_LEVEL_SHIFT 8
+# define RADEON_LVDS_BL_MOD_LEVEL_MASK (0xff << 8)
+# define RADEON_LVDS_BL_MOD_EN (1 << 16)
# define RADEON_LVDS_DIGON (1 << 18)
# define RADEON_LVDS_BLON (1 << 19)
# define RADEON_LVDS_SEL_CRTC2 (1 << 23)