1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-18 14:10:07 +01:00
Files
u-boot-megous/drivers
Joel Stanley 894e235f14 aspeed/watchdog: Correct timeout value
The driver was using milliseconds and programming it into a register
which takes ticks of the watchdog clock, which runs at 1MHz. This meant
we were off by 1000 with the desired value.

When 06985289d4 ("watchdog: Implement generic watchdog_reset()
version") was added the aspeed board would leave the watchdog running,
causing it to bite before u-boot was done.

Discovered by booting in qemu:

  $ qemu-system-arm -M ast2500-evb -drive file=test.img,format=raw,if=mtd -nographic -no-reboot -d cpu_reset

  U-Boot 2019.07-rc3-00091-g2253e40caef5 (Jun 06 2019 - 16:53:23 +0930)

  Model: Aspeed BMC
  DRAM:  496 MiB
  WDT:   Started with servicing (60s timeout)
  MMC:
  In:    serial@1e784000
  Out:   serial@1e784000
  Err:   serial@1e784000
  Watchdog timer expired.

Fixes: 06985289d4 ("watchdog: Implement generic watchdog_reset() version")
Signed-off-by: Joel Stanley <joel@jms.id.au>
2019-06-20 10:57:08 -04:00
..
2019-01-15 15:28:53 -05:00
2019-05-21 08:03:38 +02:00
2019-05-21 17:33:23 -06:00
2019-02-27 09:12:33 +08:00
2019-05-18 08:15:35 -04:00
2019-06-11 10:42:48 +02:00
2019-06-06 17:40:14 +02:00
2019-02-20 15:27:08 +08:00
2019-05-10 22:48:11 +02:00
2019-05-31 23:27:12 +02:00
2018-07-19 16:31:38 -04:00
2019-05-24 10:14:10 -07:00
2018-11-29 09:30:06 -07:00
2019-05-05 08:48:50 -04:00