eve: add motion lid check
eve: add motion lid check

In case the GMR does not work, we do not send (SW_TABLET_MODE), value 0,
when the lid is against the base (tablet mode).

Use lid angle calculation to help. In practice it triggers tablet mode
earlier (at around 300) and exists later (240 degree).

BUG=b:63702771
BRANCH=eve
TEST=Check tablet mode is mostly driven by accels.

Change-Id: I832629bfaedcd2154c2839a8fda03248509662ec
Signed-off-by: Gwendal Grignou <190c5a5edfcf62e0246559bf31fa7548674de3ad@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/580334
Reviewed-by: Duncan Laurie <70662b43bc1a20b57ded72a2b08be88dd0da4841@google.com>
Reviewed-by: Aaron Durbin <af0622ab041e8b0f8e5819838dcc93898196e71f@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320005
Commit-Queue: Patryk Duda <6aed17a362577cf10cb5675888c1635d522769c1@semihalf.com>
Tested-by: Patryk Duda <6aed17a362577cf10cb5675888c1635d522769c1@semihalf.com>
Reviewed-by: Jett Rink <9d4aef0593e6843318d99df31597fb6153b89787@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec