imx233: fix lcdif (don't send anything on empty buffer)

Change-Id: Ic39b2117b24d84452bb6f7b9c410b1cf55066b6d
This commit is contained in:
Amaury Pouly 2013-09-06 18:21:13 +02:00
parent 164876eaf1
commit 74ed592b39

View file

@ -179,6 +179,8 @@ static void pio_send(unsigned len, unsigned bpp, uint8_t *buf)
void imx233_lcdif_pio_send(bool data_mode, unsigned len, void *buf) void imx233_lcdif_pio_send(bool data_mode, unsigned len, void *buf)
{ {
imx233_lcdif_wait_ready(); imx233_lcdif_wait_ready();
if(len == 0)
return;
#if IMX233_SUBTARGET >= 3780 #if IMX233_SUBTARGET >= 3780
imx233_lcdif_enable_bus_master(false); imx233_lcdif_enable_bus_master(false);
#endif #endif