how to enable composite sync in radeonfb ?

"mirak mirak" <[email protected]> Mon, 5 Nov 2007 10:55:00 +0100
Newsgroups gmane.linux.fbdev.user
Message-ID <[email protected]>
--===============0057937697==
Content-Type: multipart/alternative; 
	boundary="----=_Part_23300_22270331.1194256500561"

------=_Part_23300_22270331.1194256500561
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I found this patch here :
http://www.vdr-portal.de/board/thread.php?threadid=57529&threadview=0&hilight=&hilightuser=0&page=1

it would be nice to have that in upstream and also to be able to
enable or disable it with "csync" fbset option


###################################################################################################

diff -ur linux-2.6.18.3.org/drivers/video/aty/radeon_base.c
linux-2.6.18.3/drivers/video/aty/radeon_base.c
--- linux-2.6.18.3.org/drivers/video/aty/radeon_base.c 2006-08-23
23:16:33.000000000 +0200
+++ linux-2.6.18.3/drivers/video/aty/radeon_base.c     2006-12-11
22:11:56.000000000 +0100
@@ -683,6 +683,9 @@
                rinfo->pll.ppll_max     = BIOS_IN32(pll_info_block + 0x16);

                printk(KERN_INFO "radeonfb: Retrieved PLL infos from BIOS\n");
+printk(KERN_INFO "radeonfb: disregarding BIOS ppll_min of %d\n",
rinfo->pll.ppll_min);
+rinfo->pll.ppll_min = 12000;
+printk(KERN_INFO "radeonfb: using ppll_min of %d instead\n",
rinfo->pll.ppll_min);
                goto found;
        }

@@ -1660,6 +1663,13 @@
                                        CRTC_CRT_ON;
        }

+/*printk(KERN_INFO "radeonfb: vmode requested 0x%x\n", mode->vmode);*/
+#define CRTC_CSYNC_EN (1 << 4)
+if (mode->vmode & FB_VMODE_INTERLACED) {
+    newmode->crtc_gen_cntl |= CRTC_INTERLACE_EN | CRTC_CSYNC_EN;
+}
+/*printk(KERN_INFO "radeonfb: crtc_gen_cntl 0x%x\n", newmode->crtc_gen_cntl);*/
+
        newmode->dac_cntl = /* INREG(DAC_CNTL) | */ DAC_MASK_ALL |
DAC_VGA_ADR_EN |
                           DAC_8BIT_EN;

###################################################################################################

------=_Part_23300_22270331.1194256500561
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<pre>I found this patch here : <a href="http://www.vdr-portal.de/board/thread.php?threadid=57529&amp;threadview=0&amp;hilight=&amp;hilightuser=0&amp;page=1">http://www.vdr-portal.de/board/thread.php?threadid=57529&amp;threadview=0&amp;hilight=&amp;hilightuser=0&amp;page=1
</a><br><br>it would be nice to have that in upstream and also to be able to enable or disable it with &quot;csync&quot; fbset option<br><br><br>###################################################################################################
<br><br>diff -ur <a href="http://linux-2.6.18.3.org/drivers/video/aty/radeon_base.c">linux-2.6.18.3.org/drivers/video/aty/radeon_base.c</a> linux-2.6.18.3/drivers/video/aty/radeon_base.c<br>--- <a href="http://linux-2.6.18.3.org/drivers/video/aty/radeon_base.c">
linux-2.6.18.3.org/drivers/video/aty/radeon_base.c</a> 2006-08-23 23:16:33.000000000 +0200<br>+++ linux-2.6.18.3/drivers/video/aty/radeon_base.c     2006-12-11 22:11:56.000000000 +0100<br>@@ -683,6 +683,9 @@<br>                rinfo-&gt;
pll.ppll_max     = BIOS_IN32(pll_info_block + 0x16);<br> <br>                printk(KERN_INFO &quot;radeonfb: Retrieved PLL infos from BIOS\n&quot;);<br>+printk(KERN_INFO &quot;radeonfb: disregarding BIOS ppll_min of %d\n&quot;, rinfo-&gt;
pll.ppll_min);<br>+rinfo-&gt;pll.ppll_min = 12000;<br>+printk(KERN_INFO &quot;radeonfb: using ppll_min of %d instead\n&quot;, rinfo-&gt;pll.ppll_min);<br>                goto found;<br>        }<br> <br>@@ -1660,6 +1663,13 @@
<br>                                        CRTC_CRT_ON;<br>        }<br> <br>+/*printk(KERN_INFO &quot;radeonfb: vmode requested 0x%x\n&quot;, mode-&gt;vmode);*/<br>+#define CRTC_CSYNC_EN (1 &lt;&lt; 4)<br>+if (mode-&gt;vmode &amp; FB_VMODE_INTERLACED) {
<br>+    newmode-&gt;crtc_gen_cntl |= CRTC_INTERLACE_EN | CRTC_CSYNC_EN;<br>+}<br>+/*printk(KERN_INFO &quot;radeonfb: crtc_gen_cntl 0x%x\n&quot;, newmode-&gt;crtc_gen_cntl);*/<br>+<br>        newmode-&gt;dac_cntl = /* INREG(DAC_CNTL) | */ DAC_MASK_ALL | DAC_VGA_ADR_EN |
<br>                           DAC_8BIT_EN;<br><br>###################################################################################################
<br></pre>

------=_Part_23300_22270331.1194256500561--


--===============0057937697==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--===============0057937697==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Linux-fbdev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users

--===============0057937697==--