aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2011-02-13 17:11:26 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-03-22 02:20:33 -0400
commit5e8700bf6db24ccf6814c765519d8986f1c16357 (patch)
treeed9406ae1693566ede33d4e45d21889d5b16956b
parent929c972e9589644805577317a38f1cd6b3ce5fc2 (diff)
sisfb: add RAM type detection for XGI Z9
Detect the XGI Z9 RAM type as "documented" by the XGI's xgifb driver. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Cc: Thomas Winischhofer <thomas@winischhofer.net> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--drivers/video/sis/sis_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c
index f0c48e84bcdb..de0356788375 100644
--- a/drivers/video/sis/sis_main.c
+++ b/drivers/video/sis/sis_main.c
@@ -4955,7 +4955,13 @@ sisfb_post_xgi_ramtype(struct sis_video_info *ivideo)
4955 v1 = bios[0x1d2]; 4955 v1 = bios[0x1d2];
4956 } 4956 }
4957 if (!(ramtype & 0x80)) { 4957 if (!(ramtype & 0x80)) {
4958 if (ivideo->chip == XGI_20) { 4958 if (sisfb_xgi_is21(ivideo)) {
4959 SiS_SetRegAND(SISCR, 0xb4, 0xfd); /* GPIO control */
4960 SiS_SetRegOR(SISCR, 0x4a, 0x80); /* GPIOH EN */
4961 reg = SiS_GetReg(SISCR, 0x48);
4962 SiS_SetRegOR(SISCR, 0xb4, 0x02);
4963 ramtype = reg & 0x01; /* GPIOH */
4964 } else if (ivideo->chip == XGI_20) {
4959 SiS_SetReg(SISCR, 0x97, v1); 4965 SiS_SetReg(SISCR, 0x97, v1);
4960 reg = SiS_GetReg(SISCR, 0x97); 4966 reg = SiS_GetReg(SISCR, 0x97);
4961 if (reg & 0x10) { 4967 if (reg & 0x10) {