[xf86-video-cirrus] Stop accessing SR12 and SR13

Submitted by Kevin Brace on July 30, 2019, 11:45 p.m.

Details

Message ID 20190730234519.9032-1-kevinbrace@gmx.com
State New
Headers show
Series "Stop accessing SR12 and SR13" ( rev: 1 ) in X.org

Not browsing as part of any series.

Commit Message

Kevin Brace July 30, 2019, 11:45 p.m.
The access to these extended VGA sequencer registers appears to come
from the code for Cirrus Logic Alpine family.  Laguna family does not
use these registers according to Laguna VisualMedia Accelerators Family
CL-GD546X Software Technical Reference Manual, Second Edition.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
---
 src/lg.h        | 2 --
 src/lg_driver.c | 6 ------
 2 files changed, 8 deletions(-)

--
2.17.1

Patch hide | download patch | download mbox

diff --git a/src/lg.h b/src/lg.h
index fa716d6..3f5dcdf 100644
--- a/src/lg.h
+++ b/src/lg.h
@@ -31,8 +31,6 @@  enum {
 	/* SR regs */
 	SR07,
 	SR0E,
-	SR12,
-	SR13,
 	SR1E,
 	/* Must be last! */
 	LG_LAST_REG
diff --git a/src/lg_driver.c b/src/lg_driver.c
index 95886b0..3af8432 100644
--- a/src/lg_driver.c
+++ b/src/lg_driver.c
@@ -1052,10 +1052,6 @@  LgSave(ScrnInfoPtr pScrn)
     pCir->chip.lg->SavedReg.ExtVga[SR07] = hwp->readSeq(hwp, 0x07);
     pCir->chip.lg->ModeReg.ExtVga[SR0E] =
     pCir->chip.lg->SavedReg.ExtVga[SR0E] = hwp->readSeq(hwp, 0x0E);
-    pCir->chip.lg->ModeReg.ExtVga[SR12] =
-    pCir->chip.lg->SavedReg.ExtVga[SR12] = hwp->readSeq(hwp, 0x12);
-    pCir->chip.lg->ModeReg.ExtVga[SR13] =
-    pCir->chip.lg->SavedReg.ExtVga[SR13] = hwp->readSeq(hwp, 0x13);
     pCir->chip.lg->ModeReg.ExtVga[SR1E] =
     pCir->chip.lg->SavedReg.ExtVga[SR1E] = hwp->readSeq(hwp, 0x1E);

@@ -1530,8 +1526,6 @@  LgRestoreLgRegs(ScrnInfoPtr pScrn, LgRegPtr lgReg)

     hwp->writeSeq(hwp, 0x07, lgReg->ExtVga[SR07]);
     hwp->writeSeq(hwp, 0x0E, lgReg->ExtVga[SR0E]);
-    hwp->writeSeq(hwp, 0x12, lgReg->ExtVga[SR12]);
-    hwp->writeSeq(hwp, 0x13, lgReg->ExtVga[SR13]);
     hwp->writeSeq(hwp, 0x1E, lgReg->ExtVga[SR1E]);
     memww(0xC0, lgReg->FORMAT);