]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tilcdc: Adjust the FB_CEILING address
authorKarl Beldan <kbeldan@baylibre.com>
Tue, 23 Aug 2016 12:56:59 +0000 (12:56 +0000)
committerJyri Sarha <jsarha@ti.com>
Thu, 1 Sep 2016 19:29:12 +0000 (22:29 +0300)
commitdf0468912ed8d7a093e1f5b079b8aca35c8c8bbb
tree5b01bdd8cf46e6a8f0088713e1d031d2b564aceb
parent46b023b949d53baedf866f6c123e72e2423b673c
drm/tilcdc: Adjust the FB_CEILING address

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: Karl Beldan <kbeldan@baylibre.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c