summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2006-09-23 07:16:10 +1000
committerDave Airlie <airlied@linux.ie>2006-09-23 07:16:10 +1000
commitc9f3ced3b1c194cacf1ab9436ee6c2d4efd3a8e9 (patch)
treeed02d771a9186796ce5d0e5bf55c175ab9872b82 /src
parente752443c540d9a94522050c61ef7c33d912fece5 (diff)
radeon: add reverse display option to switch displays on non-mobility cards
Diffstat (limited to 'src')
-rw-r--r--src/radeon.h3
-rw-r--r--src/radeon_display.c2
-rw-r--r--src/radeon_driver.c3
3 files changed, 5 insertions, 3 deletions
diff --git a/src/radeon.h b/src/radeon.h
index e8cd54c..c1561e4 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -151,7 +151,8 @@ typedef enum {
OPTION_REVERSE_DDC,
OPTION_LVDS_PROBE_PLL,
OPTION_ACCELMETHOD,
- OPTION_CONSTANTDPI
+ OPTION_CONSTANTDPI,
+ OPTION_REVERSE_DISPLAY
} RADEONOpts;
/* ------- mergedfb support ------------- */
diff --git a/src/radeon_display.c b/src/radeon_display.c
index 8a40ba0..cf2d1ef 100644
--- a/src/radeon_display.c
+++ b/src/radeon_display.c
@@ -1268,7 +1268,7 @@ Bool RADEONMapControllers(ScrnInfoPtr pScrn)
if ((pRADEONEnt->Controller[0].pPort->MonType != MT_NONE) &&
(pRADEONEnt->Controller[1].pPort->MonType != MT_NONE)) {
- if (FALSE /*xf86ReturnOptValBool(info->Options, OPTION_REVERSE_DISPLAY, FALSE)*/) {
+ if (xf86ReturnOptValBool(info->Options, OPTION_REVERSE_DISPLAY, FALSE)) {
if (info->IsMobility) {
/* Don't reverse display for mobility chips, as only CRTC1 path has RMX which
will be required by many LCD panels
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 72cb22a..8b1ff9f 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -201,7 +201,8 @@ static const OptionInfoRec RADEONOptions[] = {
{ OPTION_REVERSE_DDC, "ReverseDDC", OPTV_BOOLEAN, {0}, FALSE },
{ OPTION_LVDS_PROBE_PLL, "LVDSProbePLL", OPTV_BOOLEAN, {0}, FALSE },
{ OPTION_ACCELMETHOD, "AccelMethod", OPTV_STRING, {0}, FALSE },
- { OPTION_CONSTANTDPI, "ConstantDPI", OPTV_BOOLEAN, {0}, FALSE },
+ { OPTION_CONSTANTDPI, "ConstantDPI", OPTV_BOOLEAN, {0}, FALSE },
+ { OPTION_REVERSE_DISPLAY,"ReverseDisplay", OPTV_BOOLEAN, {0}, FALSE },
{ -1, NULL, OPTV_NONE, {0}, FALSE }
};