diff options
author | tomas.melin@vaisala.com <tomas.melin@vaisala.com> | 2016-11-21 10:18:51 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-28 19:49:48 -0500 |
commit | 2c77c0d6524ebc2e34ea7a4485120225d2b936e6 (patch) | |
tree | 3a54e49a7b2b49c96c4136fb8cfea4bdbd07b90a /dts/Makefile | |
parent | aa6ab905b2833ea74ec92fc9d40d6245ff294a07 (diff) | |
download | u-boot-imx-2c77c0d6524ebc2e34ea7a4485120225d2b936e6.zip u-boot-imx-2c77c0d6524ebc2e34ea7a4485120225d2b936e6.tar.gz u-boot-imx-2c77c0d6524ebc2e34ea7a4485120225d2b936e6.tar.bz2 |
xyz-modem: Change getc timeout loop waiting
This fixes the loop delay when using a hw watchdog.
In case a watchdog is used that accesses CPU registers,
the defined delay of 20us in a tight loop will cause a
huge delay in the actual timeout seen. This is caused
by the fact that udelay will inheritantly call WATCHDOG_RESET.
Together with the omap wdt implementation, the seen timeout increases up to
around 30s. This makes the loop very slow and causes long
delays when using the modem.
Instead, implement the 2 sec loop by using the timer interface to know
when to break out of the timeout loop. Watchdog kicking is taken care of
by getc().
Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
Diffstat (limited to 'dts/Makefile')
0 files changed, 0 insertions, 0 deletions