Files
OpenCellular/board
Charlie Mooney 7d1ffde508 Snow: Dont hang when trying to pmic-reset board
Old Snow board (non-MP) don't have the capability to hard-reset their
pmics unless they've been manually fixed to do so.  This means that if
you have an old board, with a new copy of the EC on it and it tries to
hard-reset the system, it will hang forever and trigger the watchdog.

Since there's no way for the EC to check if the hardware fix exists on
its board, this adds a timeout after trying to reset.  If the board has
the fix, it will reset before the timeout expires.  Otherwise, it will
print a warning message before returning, to prevent it hanging.

Additionally, it also fixes the places board_hard_reset() is called to
deal with the new possibility of it returning.

BUG=chrome-os-partner:13508
TEST=On a machine with the hardware rework and one without it, go to the
EC console and run "pmu reset" to try and force a reset.  The one with
the fix should reset immediately, and the one without should warn you
that it tried (and failed) to reset.
BRANCH=snow

Change-Id: I493122ee4da539f363a31f624ab9dd7db8068ec8
Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/32043
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2012-08-31 15:41:45 -07:00
..
2012-08-31 15:41:35 -07:00
2012-08-31 15:41:35 -07:00