• Petr Vandrovec's avatar
    [PATCH] Remove big-endian mode from matroxfb · c726558b
    Petr Vandrovec authored
    One of the PowerPC developers, Kostas Georgiou, pointed out to me
    discussion back from 2001 that they would prefer little endian mode as
    majority of users runs XF4.x and not Xpmac.  And apparently nobody runs
    Xpmac now, so we can safely remove big-endian mode from matroxfb
    completely.
    
      So let's simplify matroxfb a bit: 
    
    Accelerator and ILOAD fifo is now always in little endian mode.  This is
    what XFree does.  Due to this change all #ifdefs based on endianness was
    removed from driver - except one which selects framebuffer endinaness (but
    there is no code in matroxfb which writes to framebuffer directly).
    
    It seems that while I was not looking m68k got ioremap, and all
    architectures now offer ioremap and ioremap_nocache.  Let's kill code which
    mapped ioremap_nocache to ioremap, and ioremap to bus_to_virt for
    architectures which did not provide them.
    
    And this also fixes small typo - M_C2CTL should be 0x3C10 and not 0x3E10.
    Apparently Matrox notes about need to program this register during
    initialization are not so important...
    Signed-off-by: default avatarPetr Vandrovec <vandrove@vc.cvut.cz>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    c726558b
matroxfb_accel.c 13.9 KB