summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-22 23:00:08 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-22 23:01:03 +0200
commit3c19f39c86eda062177e4ec974e7879e75ba2210 (patch)
treec80d527526ae73d2649eb1c2502e290a0f68aa2c /firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c
parent9b395741f32c935636bdda6175d05beaf825549f (diff)
downloadrockbox-3c19f39c86eda062177e4ec974e7879e75ba2210.tar.gz
rockbox-3c19f39c86eda062177e4ec974e7879e75ba2210.tar.bz2
rockbox-3c19f39c86eda062177e4ec974e7879e75ba2210.zip
zenxfi2: acquire lcd pins before use
Change-Id: Ia49dfdefd37e89ecd160add3592f9e15ce415e65
Diffstat (limited to 'firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c')
-rw-r--r--firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c b/firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c
index 277c7120e1..370104c724 100644
--- a/firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c
+++ b/firmware/target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c
@@ -44,6 +44,15 @@ static void setup_parameters(void)
static void setup_lcd_pins(bool use_lcdif)
{
+ imx233_pinctrl_acquire_pin(1, 18, "lcd reset");
+ imx233_pinctrl_acquire_pin(1, 19, "lcd rs");
+ imx233_pinctrl_acquire_pin(1, 20, "lcd wr");
+ imx233_pinctrl_acquire_pin(1, 21, "lcd cs");
+ imx233_pinctrl_acquire_pin(1, 22, "lcd dotclk");
+ imx233_pinctrl_acquire_pin(1, 23, "lcd enable");
+ imx233_pinctrl_acquire_pin(1, 24, "lcd hsync");
+ imx233_pinctrl_acquire_pin(1, 25, "lcd vsync");
+ imx233_pinctrl_acquire_pin_mask(1, 0x3ffff, "lcd data");
if(use_lcdif)
{
imx233_set_pin_function(1, 25, PINCTRL_FUNCTION_MAIN); /* lcd_vsync */