[PATCH 4/5] ARM: i.MX: edmqmx6: set display GPIOs

Lucas Stach l.stach at pengutronix.de
Thu Feb 27 08:53:22 EST 2014


From: Michael Olbrich <m.olbrich at pengutronix.de>

Signed-off-by: Michael Olbrich <m.olbrich at pengutronix.de>
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
v2 lst:
- move to device initcall
- use IMX_GPIO_NR macro
---
 arch/arm/boards/datamodul-edm-qmx6/board.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boards/datamodul-edm-qmx6/board.c b/arch/arm/boards/datamodul-edm-qmx6/board.c
index 3184912c4782..b0b4ae98d446 100644
--- a/arch/arm/boards/datamodul-edm-qmx6/board.c
+++ b/arch/arm/boards/datamodul-edm-qmx6/board.c
@@ -116,6 +116,9 @@ static int realq7_device_init(void)
 	if (!of_machine_is_compatible("dmo,imx6q-edmqmx6"))
 		return 0;
 
+	gpio_direction_output(IMX_GPIO_NR(2, 22), 1);
+	gpio_direction_output(IMX_GPIO_NR(2, 21), 1);
+
 	switch (bootsource_get()) {
 	case BOOTSOURCE_MMC:
 		of_device_enable_path("/chosen/environment-emmc");
-- 
1.8.5.3




More information about the barebox mailing list