From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: Frans Pop <aragorn@tiscali.nl>, "David S. Miller" <davem@davemloft.net>
Cc: adaplas@pol.net, debian-sparc@lists.debian.org,
sparclinux@vger.kernel.org,
linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [Linux-fbdev-devel] Re: [atyfb] No display on Sparc Ultra 10 with kernel 2.6.10-rc2 or later
Date: Thu, 17 Feb 2005 07:18:26 +0800 [thread overview]
Message-ID: <200502170718.26946.adaplas@hotpop.com> (raw)
In-Reply-To: <200502170702.58630.adaplas@hotpop.com>
On Thursday 17 February 2005 07:02, Antonino A. Daplas wrote:
> On Thursday 17 February 2005 06:10, Frans Pop wrote:
> > On Wednesday 16 February 2005 16:51, David S. Miller wrote:
> > > On Wed, 16 Feb 2005 19:27:57 +0800 Antonino A. Daplas wrote:
> > > > Nope, those are proposed options. If nobody disagrees, I can easily
> > > > add this for atyfb.
> > >
> > > Please do.
> > >
> > > BTW, for Sparc we may wish to inherit the CSYNC setting from
> > > default_var.
> >
> > Sounds like a nice idea.
> >
> > If you have a patch that you would like to have tested, feel free to mail
> > me.
>
> Try this patch and let me know.
The previous patch has a bug, try this instead.
Tony
diff -Nru a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
--- a/drivers/video/aty/atyfb_base.c 2005-02-16 00:19:00 +08:00
+++ b/drivers/video/aty/atyfb_base.c 2005-02-17 07:15:57 +08:00
@@ -307,6 +307,9 @@
static int pll;
static int mclk;
static int xclk;
+static int comp_sync __initdata = -1;
+static int vert_sync __initdata = -1;
+static int hor_sync __initdata = -1;
static char *mode;
#ifdef CONFIG_PPC
@@ -2527,6 +2530,27 @@
else
var.accel_flags |= FB_ACCELF_TEXT;
+ if (comp_sync != -1) {
+ if (!comp_sync)
+ var.sync &= ~FB_SYNC_COMP_HIGH_ACT;
+ else
+ var.sync |= FB_SYNC_COMP_HIGH_ACT;
+ }
+
+ if (vert_sync != -1) {
+ if (!vert_sync)
+ var.sync &= ~FB_SYNC_VERT_HIGH_ACT;
+ else
+ var.sync |= FB_SYNC_VERT_HIGH_ACT;
+ }
+
+ if (hor_sync != -1) {
+ if (!hor_sync)
+ var.sync &= ~FB_SYNC_HOR_HIGH_ACT;
+ else
+ var.sync |= FB_SYNC_HOR_HIGH_ACT;
+ }
+
if (var.yres == var.yres_virtual) {
u32 videoram = (info->fix.smem_len - (PAGE_SIZE << 2));
var.yres_virtual = ((videoram * 8) / var.bits_per_pixel) / var.xres_virtual;
@@ -3611,6 +3635,12 @@
mclk = simple_strtoul(this_opt + 5, NULL, 0);
else if (!strncmp(this_opt, "xclk:", 5))
xclk = simple_strtoul(this_opt+5, NULL, 0);
+ else if (!strncmp(this_opt, "comp_sync:", 10))
+ comp_sync = simple_strtoul(this_opt+10, NULL, 0);
+ else if (!strncmp(this_opt, "vert_sync:", 10))
+ vert_sync = simple_strtoul(this_opt+10, NULL, 0);
+ else if (!strncmp(this_opt, "hor_sync:", 9))
+ hor_sync = simple_strtoul(this_opt+9, NULL, 0);
#ifdef CONFIG_PPC
else if (!strncmp(this_opt, "vmode:", 6)) {
unsigned int vmode =
@@ -3701,6 +3731,12 @@
MODULE_PARM_DESC(mclk, "int: override memory clock");
module_param(xclk, int, 0);
MODULE_PARM_DESC(xclk, "int: override accelerated engine clock");
+module_param(comp_sync, int, 0)
+MODULE_PARM_DESC(comp_sync, "Set composite sync signal to low (0) or high (1)");
+module_param(vert_sync, int, 0)
+MODULE_PARM_DESC(vert_sync, "Set vertical sync signal to low (0) or high (1)");
+module_param(hor_sync, int, 0)
+MODULE_PARM_DESC(hor_sync, "Set horizontal sync signal to low (0) or high (1)");
module_param(mode, charp, 0);
MODULE_PARM_DESC(mode, "Specify resolution as \"<xres>x<yres>[-<bpp>][@<refresh>]\" ");
#ifdef CONFIG_MTRR
next prev parent reply other threads:[~2005-02-16 23:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200502140251.00645.aragorn@tiscali.nl>
[not found] ` <200502150059.12789.adaplas@hotpop.com>
[not found] ` <200502141855.29202.aragorn@tiscali.nl>
2005-02-14 23:40 ` [atyfb] No display on Sparc Ultra 10 with kernel 2.6.10-rc2 or later Antonino A. Daplas
2005-02-15 0:31 ` David S. Miller
2005-02-15 6:22 ` Frans Pop
2005-02-15 10:03 ` [Linux-fbdev-devel] " Geert Uytterhoeven
2005-02-15 12:10 ` Antonino A. Daplas
2005-02-15 16:49 ` David S. Miller
2005-02-16 2:27 ` Frans Pop
2005-02-16 3:20 ` David S. Miller
2005-02-16 11:30 ` Antonino A. Daplas
2005-02-16 2:27 ` Frans Pop
2005-02-16 11:27 ` Antonino A. Daplas
2005-02-16 15:51 ` David S. Miller
2005-02-16 22:10 ` Frans Pop
2005-02-16 23:02 ` Antonino A. Daplas
2005-02-16 23:18 ` Antonino A. Daplas [this message]
2005-02-16 23:24 ` Antonino A. Daplas
2005-02-17 14:16 ` Frans Pop
2005-02-17 21:30 ` Antonino A. Daplas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200502170718.26946.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=adaplas@pol.net \
--cc=aragorn@tiscali.nl \
--cc=davem@davemloft.net \
--cc=debian-sparc@lists.debian.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).