Modify EC reboot function to match software sync behavior

On devices with EC software sync, after an EC reboot, system powers on
if and only if lid is open. Let's check lid switch to decide if a power
button press is necessary.

BUG=chrome-os-partner:11970
TEST=firmware_ECWatchdog passed.

Change-Id: I93cb06db63231f97d2b21531a21addc2a0fffbe3
Reviewed-on: https://gerrit.chromium.org/gerrit/28676
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
2 files changed