wok rev 12028
915resolution: add cedarview support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 06 21:07:58 2012 +0100 (2012-03-06) |
parents | 9c404c929ef1 |
children | ff54c8e52d6b b3a9262e1cca |
files | 915resolution/receipt 915resolution/stuff/915resolution-0.5.3-cedarview.patch |
line diff
1.1 --- a/915resolution/receipt Tue Mar 06 11:42:45 2012 -0800 1.2 +++ b/915resolution/receipt Tue Mar 06 21:07:58 2012 +0100 1.3 @@ -15,9 +15,9 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 - for i in $PACKAGE-$VERSION-widescreen-resolution.patch ; do 1.8 + for i in widescreen-resolution cedarview ; do 1.9 [ -f done.$i ] && continue 1.10 - patch -p0 < $stuff/$i 1.11 + patch -p0 < $stuff/$PACKAGE-$VERSION-$i.patch 1.12 touch done.$i 1.13 done 1.14 make clean && make
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/915resolution/stuff/915resolution-0.5.3-cedarview.patch Tue Mar 06 21:07:58 2012 +0100 2.3 @@ -0,0 +1,54 @@ 2.4 +--- 915resolution.c 2.5 ++++ 915resolution.c 2.6 +@@ -56,12 +56,12 @@ 2.7 + 2.8 + typedef enum { 2.9 + CT_UNKWN, CT_500GMA, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM, 2.10 +- CT_945GME, CT_946GZ, CT_G965, CT_Q965, CT_965GM 2.11 ++ CT_945GME, CT_946GZ, CT_G965, CT_Q965, CT_965GM, CT_Cedarview 2.12 + } chipset_type; 2.13 + 2.14 + char * chipset_type_names[] = { 2.15 + "UNKNOWN", "500GMA", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM", 2.16 +- "945GME", "946GZ", "G965", "Q965", "965GM" 2.17 ++ "945GME", "946GZ", "G965", "Q965", "965GM", "Cedarview" 2.18 + }; 2.19 + 2.20 + typedef enum { 2.21 +@@ -237,6 +237,10 @@ 2.22 + type = CT_965GM; 2.23 + break; 2.24 + 2.25 ++ case 0xbf38086: 2.26 ++ type = CT_Cedarview; 2.27 ++ break; 2.28 ++ 2.29 + default: 2.30 + type = CT_UNKWN; 2.31 + break; 2.32 +@@ -526,6 +530,7 @@ 2.33 + case CT_G965: 2.34 + case CT_Q965: 2.35 + case CT_965GM: 2.36 ++ case CT_Cedarview: 2.37 + outl(0x80000090, 0xcf8); 2.38 + map->b1 = inb(0xcfd); 2.39 + map->b2 = inb(0xcfe); 2.40 +@@ -569,6 +574,7 @@ 2.41 + case CT_G965: 2.42 + case CT_Q965: 2.43 + case CT_965GM: 2.44 ++ case CT_Cedarview: 2.45 + outl(0x80000090, 0xcf8); 2.46 + outb(map->b1, 0xcfd); 2.47 + outb(map->b2, 0xcfe); 2.48 +@@ -837,6 +843,9 @@ 2.49 + } 2.50 + else if (!strcmp(argv[index], "965GM")) { 2.51 + *forced_chipset = CT_965GM; 2.52 ++ } 2.53 ++ else if (!strcmp(argv[index], "Cedarview")) { 2.54 ++ *forced_chipset = CT_Cedarview; 2.55 + } 2.56 + else { 2.57 + *forced_chipset = CT_UNKWN;