summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHuang, FrankR <FrankR.Huang@amd.com>2010-10-28 15:16:58 +0800
committerMartin-Éric Racine <q-funk@iki.fi>2010-10-28 11:57:50 +0300
commitfb72a210d7de61c49fc66aafa057d8c6a028b907 (patch)
tree36595d8fdc0a1a5038f41ac6b5ab5089e82bcdcb /src
parent9caaf7f8294ef9700e9e20e394fee10cc2b1c9c0 (diff)
Revise the entry for 1024x600
*Change the entry of 1024x600 from 3 to 7(That will not affect the entries from 3 to 6). And BIOS should set the VG_FP_TYPE bit[5:3] to 7. *Use 1024x600@80 instead of 1024x600@60 parameters to support more 4:3 resolutions Signed-off-by: Frank Huang<frankr.huang@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/lx_panel.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lx_panel.c b/src/lx_panel.c
index 387e1be..6832fec 100644
--- a/src/lx_panel.c
+++ b/src/lx_panel.c
@@ -57,9 +57,6 @@ DisplayModeRec lx_panel_modes[] = {
{MODEPREFIX, 40000, 800, 840, 968, 1056, 0, 600, 601, 605, 628, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
, /* 880x600@60 */
- {MODEPREFIX, 48960, 1024, 1064, 1168, 1312, 0, 600, 601, 604, 622, 0,
- V_NHSYNC | V_NVSYNC, MODESUFFIX}
- , /* 1024x600@60 */
{MODEPREFIX, 65000, 1024, 1048, 1184, 1344, 0, 768, 771, 777, 806, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
, /* 1024x768@60 */
@@ -72,6 +69,9 @@ DisplayModeRec lx_panel_modes[] = {
{MODEPREFIX, 162000, 1600, 1664, 1856, 2160, 0, 1200, 1201, 1204, 1250, 0,
V_NHSYNC | V_NVSYNC, MODESUFFIX}
, /* 1600x1200@60 */
+ {MODEPREFIX, 67630, 1024, 1080, 1184, 1344, 0, 600, 601, 604, 629, 0,
+ V_NHSYNC | V_NVSYNC, MODESUFFIX}
+ , /* 1024x600@80 */
};
/* Get the legacy panel size from VSA, and return the associated mode rec */
@@ -87,12 +87,14 @@ LXGetLegacyPanelMode(void)
reg = LX_READ_VG(0x02);
ret = (reg >> 3) & 0x07;
- /* 7 is a "reserved" value - if we get it, we can only
- * assume that a panel doesn't exist (or it hasn't been
- * configured in the BIOS)
+ /* FIXME: 7 is reserved in default. We use this value to support
+ * wide screen resolution 1024x600@80 now for panel. If you want to use
+ * that resolution, please assign ret to 7 manually here:
+ * "reg = 7"
+ * The user can use this entry for other wide screen resolutions.
*/
- if (ret < 7)
+ if (ret < 8)
return &lx_panel_modes[ret];
}