• Haavard Skinnemoen's avatar
    atmel_lcdfb: don't initialize a pre-allocated framebuffer · 01d3a5e7
    Haavard Skinnemoen authored
    If the user specified a fixed framebuffer address on the command line, it may
    have been initialized already with a splash image or something, so we
    shouldn't clear it.
    
    Therefore, we should only initialize the framebuffer if we allocated it
    ourselves.  This patch also updates the AVR32 setup code to clear the
    framebuffer if it allocated it itself, i.e.  the user didn't provide a fixed
    address or the reservation failed.
    
    I've updated the at91 platform code as well so that it initializes the
    framebuffer if it is located in SRAM, but I haven't tested that it actually
    works.
    Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
    Cc: "Antonino A. Daplas" <adaplas@pol.net>
    Cc: Nicolas FERRE <nicolas.ferre@rfo.atmel.com>
    Cc: Andrew Victor <andrew@sanpeople.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    01d3a5e7
setup.c 14.2 KB