From: Michael Olbrich <m.olbrich@xxxxxxxxxxxxxx> Signed-off-by: Michael Olbrich <m.olbrich@xxxxxxxxxxxxxx> Signed-off-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox