summaryrefslogtreecommitdiff
path: root/board/udoo
diff options
context:
space:
mode:
authorGiuseppe Pagano <giuseppe.pagano@seco.com>2013-11-15 17:42:54 +0100
committerStefano Babic <sbabic@denx.de>2013-11-28 09:08:42 +0100
commitdb6801dec36c9e0703c47ec065ee17278edbe904 (patch)
treebaf12fc83cf7a8a37b4626b34c468fdbf0726073 /board/udoo
parent078813d21db0600d440625327a1728c32e9fcc90 (diff)
downloadu-boot-imx-db6801dec36c9e0703c47ec065ee17278edbe904.zip
u-boot-imx-db6801dec36c9e0703c47ec065ee17278edbe904.tar.gz
u-boot-imx-db6801dec36c9e0703c47ec065ee17278edbe904.tar.bz2
udoo: Fix watchdog during kernel boot.
uDoo uses APX823-31W5 watchdog chip. Timeout is about 1.2 seconds. To disabled watchdog during kernel boot, WDI pin of that chip needs to be in "high impedance" state. I.mx6 gpio configuration does not contemplate tristate, so pin is set as input in high impedance. Signed-off-by: Giuseppe Pagano <giuseppe.pagano@seco.com> Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com> CC: Stefano Babic <sbabic@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'board/udoo')
-rw-r--r--board/udoo/udoo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/udoo/udoo.c b/board/udoo/udoo.c
index 3257aaf..081d517 100644
--- a/board/udoo/udoo.c
+++ b/board/udoo/udoo.c
@@ -168,6 +168,7 @@ static void setup_iomux_wdog(void)
imx_iomux_v3_setup_multiple_pads(wdog_pads, ARRAY_SIZE(wdog_pads));
gpio_direction_output(WDT_TRG, 0);
gpio_direction_output(WDT_EN, 1);
+ gpio_direction_input(WDT_TRG);
}
static struct fsl_esdhc_cfg usdhc_cfg = { USDHC3_BASE_ADDR };