From 0946a1e0f2c7c6491f87276cfadab5e9492313c6 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 12 Jan 2013 18:58:19 +0000 Subject: imx233: enable underflow recovery in lcdif (needed for freq scale) When chaging the cpu and memory frequency we need to disable the external memory interface (EMI) for a small time. This can underflow the dma and cause some breakage. Hopefully the SSP controller handles this gracefully by stopping the clock and the I2C probably handles this naturally because the clock can be streched anyway. However the LCDIF has a special setting for this which needs to be enable, otherwise it will send garbage to the LCD. No other block is known to suffer from this currently but this issue might have more unexpected consequences. Change-Id: Ide154cad87929f2bf6cc419ac1d2ff33e30eec66 --- firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/target/arm/imx233/creative-zenxfi3') diff --git a/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c b/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c index ea1ed6bccc..d04271369c 100644 --- a/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c +++ b/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c @@ -40,6 +40,7 @@ static void setup_parameters(void) imx233_lcdif_set_lcd_databus_width(HW_LCDIF_CTRL__LCD_DATABUS_WIDTH_16_BIT); imx233_lcdif_set_word_length(HW_LCDIF_CTRL__WORD_LENGTH_16_BIT); imx233_lcdif_set_timings(2, 2, 3, 3); + imx233_lcdif_enable_underflow_recover(true); } static void setup_lcd_pins(bool use_lcdif) -- cgit v1.2.3