All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] atyfb: Add boot/module option to override composite sync
@ 2005-03-13  0:32 Antonino A. Daplas
  2005-03-13  9:04 ` Geert Uytterhoeven
  2005-03-13 15:37 ` Alexander Kern
  0 siblings, 2 replies; 3+ messages in thread
From: Antonino A. Daplas @ 2005-03-13  0:32 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Fbdev development list

  Some SPARC-based displays need the composite sync set to high.
  Since none of the entries in the default db has the composite
  sync set to high, using fb_find_mode() will produce a blank
  display.

  Add this new option to Documentation/fb/aty128fb.txt

Signed-off-by: Antonino Daplas <adaplas@pol.net>
---

Documentation/fb/aty128fb.txt  |    1 +
 drivers/video/aty/atyfb_base.c |   13 +++++++++++++
 2 files changed, 14 insertions(+)

diff -Nru a/Documentation/fb/aty128fb.txt b/Documentation/fb/aty128fb.txt
--- a/Documentation/fb/aty128fb.txt	2005-03-12 22:23:57 +08:00
+++ b/Documentation/fb/aty128fb.txt	2005-03-13 07:35:30 +08:00
@@ -54,6 +54,7 @@
 
 noaccel  - do not use acceleration engine. It is default.
 accel    - use acceleration engine. Not finished.
+comp_sync- set composite sync, 0 for low, 1 for high.
 vmode:x  - chooses PowerMacintosh video mode <x>. Depreciated.
 cmode:x  - chooses PowerMacintosh colour mode <x>. Depreciated.
 <XxX@X>  - selects startup videomode. See modedb.txt for detailed
diff -Nru a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
--- a/drivers/video/aty/atyfb_base.c	2005-03-12 23:23:49 +08:00
+++ b/drivers/video/aty/atyfb_base.c	2005-03-13 07:35:31 +08:00
@@ -307,6 +307,7 @@
 static int pll;
 static int mclk;
 static int xclk;
+static int comp_sync __initdata = -1;
 static char *mode;
 
 #ifdef CONFIG_PPC
@@ -2527,6 +2528,13 @@
 	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 (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;
@@ -3612,6 +3620,8 @@
 			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);
 #ifdef CONFIG_PPC
 		else if (!strncmp(this_opt, "vmode:", 6)) {
 			unsigned int vmode =
@@ -3701,6 +3711,9 @@
 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(mode, charp, 0);
 MODULE_PARM_DESC(mode, "Specify resolution as \"<xres>x<yres>[-<bpp>][@<refresh>]\" ");
 #ifdef CONFIG_MTRR




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/6] atyfb: Add boot/module option to override composite sync
  2005-03-13  0:32 [PATCH 1/6] atyfb: Add boot/module option to override composite sync Antonino A. Daplas
@ 2005-03-13  9:04 ` Geert Uytterhoeven
  2005-03-13 15:37 ` Alexander Kern
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2005-03-13  9:04 UTC (permalink / raw)
  To: Linux Fbdev development list; +Cc: Andrew Morton

On Sun, 13 Mar 2005, Antonino A. Daplas wrote:
>   Some SPARC-based displays need the composite sync set to high.
>   Since none of the entries in the default db has the composite
>   sync set to high, using fb_find_mode() will produce a blank
>   display.
> 
>   Add this new option to Documentation/fb/aty128fb.txt

Wrong documentation file!

> Signed-off-by: Antonino Daplas <adaplas@pol.net>
> ---
> 
> Documentation/fb/aty128fb.txt  |    1 +

aty128fb.txt is for ATI RAGE128 ...

>  drivers/video/aty/atyfb_base.c |   13 +++++++++++++

... while atyfb_base.c is for ATI Mach64.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/6] atyfb: Add boot/module option to override composite sync
  2005-03-13  0:32 [PATCH 1/6] atyfb: Add boot/module option to override composite sync Antonino A. Daplas
  2005-03-13  9:04 ` Geert Uytterhoeven
@ 2005-03-13 15:37 ` Alexander Kern
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Kern @ 2005-03-13 15:37 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Antonino A. Daplas, Andrew Morton

Am Sonntag, 13. März 2005 01:32 schrieb Antonino A. Daplas:
>   Some SPARC-based displays need the composite sync set to high.
>   Since none of the entries in the default db has the composite
>   sync set to high, using fb_find_mode() will produce a blank
>   display.
>
>   Add this new option to Documentation/fb/aty128fb.txt
>
> Signed-off-by: Antonino Daplas <adaplas@pol.net>
We do not have documentation file for aty.
In other Part:
Acked-by: Alexander Kern <alex.kern@gmx.de>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-13 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-13  0:32 [PATCH 1/6] atyfb: Add boot/module option to override composite sync Antonino A. Daplas
2005-03-13  9:04 ` Geert Uytterhoeven
2005-03-13 15:37 ` Alexander Kern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.