summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-09-06 18:21:13 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-09-06 18:21:35 +0200
commit74ed592b39fd90c7420f0ecbdd846a7c03458e92 (patch)
tree96172f51036af346df93681a4bc6217ea81f195c /firmware
parent164876eaf1b586505566c6f32bb873a958a12331 (diff)
downloadrockbox-74ed592b39fd90c7420f0ecbdd846a7c03458e92.tar.gz
rockbox-74ed592b39fd90c7420f0ecbdd846a7c03458e92.zip
imx233: fix lcdif (don't send anything on empty buffer)
Change-Id: Ic39b2117b24d84452bb6f7b9c410b1cf55066b6d
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/imx233/lcdif-imx233.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/lcdif-imx233.c b/firmware/target/arm/imx233/lcdif-imx233.c
index da58270498..24f6a5cc40 100644
--- a/firmware/target/arm/imx233/lcdif-imx233.c
+++ b/firmware/target/arm/imx233/lcdif-imx233.c
@@ -179,6 +179,8 @@ static void pio_send(unsigned len, unsigned bpp, uint8_t *buf)
179void imx233_lcdif_pio_send(bool data_mode, unsigned len, void *buf) 179void imx233_lcdif_pio_send(bool data_mode, unsigned len, void *buf)
180{ 180{
181 imx233_lcdif_wait_ready(); 181 imx233_lcdif_wait_ready();
182 if(len == 0)
183 return;
182#if IMX233_SUBTARGET >= 3780 184#if IMX233_SUBTARGET >= 3780
183 imx233_lcdif_enable_bus_master(false); 185 imx233_lcdif_enable_bus_master(false);
184#endif 186#endif