• Karl Beldan's avatar
    drm/tilcdc: Adjust the FB_CEILING address · ee8c42ba
    Karl Beldan authored
    The LCDC seems to expect its framebuffer ceiling address pointer to be
    an inclusive bound.  The IP rev2 seems to cope with that but rev1 (as
    found on the LCDK) don't.
    Also note that this is what the framebuffer code does in da8xx-fb.c.
    
    Since, as the TRM puts it, "The 2 LSBs are hardwired to 00b", the
    dma_addr_t can be decremented without cast.
    I tested it with a v2 (AM335x, rev  0x4F201000) and an LCDK (v1).
    Signed-off-by: default avatarKarl Beldan <kbeldan@baylibre.com>
    Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
    ee8c42ba
tilcdc_crtc.c 20.7 KB