cirrusfb: GD5434 (aka SD64) support fixed

Previous thread: cirrusfb: check_var improvements by Linux Kernel Mailing List on Wednesday, April 1, 2009 - 11:04 am. (1 message)

Next thread: cirrusfb: fix threshold register mask for Laguna chips by Linux Kernel Mailing List on Wednesday, April 1, 2009 - 11:04 am. (1 message)
From: Linux Kernel Mailing List
Date: Wednesday, April 1, 2009 - 11:04 am

Gitweb:     http://git.kernel.org/linus/df3aafd57d590d6f3d95310fc3430f3a536d1e59
Commit:     df3aafd57d590d6f3d95310fc3430f3a536d1e59
Parent:     8f19e15b8ad23e28add5760ed049be2359f39fe8
Author:     Krzysztof Helt <krzysztof.h1@wp.pl>
AuthorDate: Tue Mar 31 15:25:16 2009 -0700
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Wed Apr 1 08:59:29 2009 -0700

    cirrusfb: GD5434 (aka SD64) support fixed
    
    Fix handling of the Cirrus Logic GD5434 chip.  Distinguish this chip from the
    GD5430.  It allows detecting memory size for both models correctly.
    
    Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---
 drivers/video/cirrusfb.c |   72 +++++++++++++++++++++++----------------------
 1 files changed, 37 insertions(+), 35 deletions(-)

diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c
index 6203274..a364e1b 100644
--- a/drivers/video/cirrusfb.c
+++ b/drivers/video/cirrusfb.c
@@ -145,7 +145,9 @@ static const struct cirrusfb_board_info_rec {
 		.scrn_start_bit19	= true,
 		.sr07			= 0xF0,
 		.sr07_1bpp		= 0xF0,
+		.sr07_1bpp_mux		= 0xF6,
 		.sr07_8bpp		= 0xF1,
+		.sr07_8bpp_mux		= 0xF7,
 		.sr1f			= 0x1E
 	},
 	[BT_PICCOLO] = {
@@ -262,8 +264,8 @@ static const struct cirrusfb_board_info_rec {
 
 static struct pci_device_id cirrusfb_pci_table[] = {
 	CHIP(PCI_DEVICE_ID_CIRRUS_5436, BT_ALPINE),
-	CHIP(PCI_DEVICE_ID_CIRRUS_5434_8, BT_ALPINE),
-	CHIP(PCI_DEVICE_ID_CIRRUS_5434_4, BT_ALPINE),
+	CHIP(PCI_DEVICE_ID_CIRRUS_5434_8, BT_SD64),
+	CHIP(PCI_DEVICE_ID_CIRRUS_5434_4, BT_SD64),
 	CHIP(PCI_DEVICE_ID_CIRRUS_5430, BT_ALPINE), /* GD-5440 is same id */
 	CHIP(PCI_DEVICE_ID_CIRRUS_7543, BT_ALPINE),
 	CHIP(PCI_DEVICE_ID_CIRRUS_7548, BT_ALPINE),
@@ -341,6 +343,7 @@ struct cirrusfb_info {
 	unsigned char SFR;	/* Shadow of special function register */
 
 	int multiplexing;
+	int doubleVCLK;
 	int ...
Previous thread: cirrusfb: check_var improvements by Linux Kernel Mailing List on Wednesday, April 1, 2009 - 11:04 am. (1 message)

Next thread: cirrusfb: fix threshold register mask for Laguna chips by Linux Kernel Mailing List on Wednesday, April 1, 2009 - 11:04 am. (1 message)