Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Date | Mon, 15 Sep 2003 16:25:06 +0200 (CEST) | From | Daniël Mantione <> | Subject | Re: atyfb still broken on 2.4.23-pre4 (on sparc64) |
| |
Hello,
The patch below fixes the Atyfb problems on the Sparc.
Greetings,
Daniël Mantione
diff -urN linux-2.4.22-bk18/drivers/video/aty/atyfb_base.c linux-2.4.22-bk18.fixed/drivers/video/aty/atyfb_base.c --- linux-2.4.22-bk18/drivers/video/aty/atyfb_base.c Mon Sep 15 16:10:41 2003 +++ linux-2.4.22-bk18.fixed/drivers/video/aty/atyfb_base.c Mon Sep 15 13:55:25 2003 @@ -2481,6 +2479,8 @@ info->frame_buffer = (unsigned long) addr + 0x800000UL; info->frame_buffer_phys = addr + 0x800000UL;
+ aty_init_register_array(info); + /* * Figure mmap addresses from PCI config space. * Split Framebuffer in big- and little-endian halfs. @@ -2671,6 +2671,7 @@
default_var.pixclock = 1000000000 / T; } + #else /* __sparc__ */
aux_app = 0; diff -urN linux-2.4.22-bk18/drivers/video/aty/mach64_ct.c linux-2.4.22-bk18.fixed/drivers/video/aty/mach64_ct.c --- linux-2.4.22-bk18/drivers/video/aty/mach64_ct.c Mon Sep 15 16:10:41 2003 +++ linux-2.4.22-bk18.fixed/drivers/video/aty/mach64_ct.c Sun Sep 14 11:35:37 2003 @@ -86,7 +86,7 @@
u8 stdcall aty_ld_pll(int offset, const struct fb_info_aty *info) { - u32 addr; + unsigned long addr;
addr = info->ati_regbase + CLOCK_CNTL + 1; /* write addr byte */ @@ -98,7 +98,7 @@
static void stdcall aty_st_pll(int offset, u8 val, const struct fb_info_aty *info) { - u32 addr; + unsigned long addr; addr = info->ati_regbase + CLOCK_CNTL + 1; /* write addr byte */ writeb((offset << 2) | PLL_WR_EN,addr); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |