windcharger: enable wdt before loading kernel

This allows us to recover from many kinds of upgrade issues, including corrupt
kernel images, rootfs problems, and incompatibilities between uboot and the
selected kernel (for example, DVT board 2.6 kernel will panic with current

With this patch, a successful boot must go from uboot to linux userland
(/etc/init.d/S01watchdog) within 171 seconds, or the wdt will trigger and the
failsafe counter will increment. It may take up to 171*3 seconds to switch
back to the previous working partition (since we allow 3 failsafe attempts).

This is implemented in uboot variables so that we can manually disable this
during development if necessary.


Change-Id: Id28dd058cebf2ad1addeeaaaae3b6cfb8bb1c380
1 file changed