Fixe the bug in keyboard state restore.
Fixe the bug in keyboard state restore.

For legacy issue, the keyboard controller defaults to turn on XLATE
(translate) bit (which means EC generates scan codeset 1 althought
it internally supports codeset 2). In normal case, the BIOS/OS would clear
the XLATE bit to ask EC to generate codeset 2.

However, when EC jumps happens, the internal keyboard state doesn't know
this and always reset XLATE as on. This makes the EC generate garbage to OS.

So, this patch fixes would clear the XLATE if the EC reboot is a warmboot
based on the assumption that moderm OSes clear the XLATE bit.

BUG=chrome-os-partner:9102
TEST=on link
% ectool reboot_ec A  (from r438 to r438)
  Expect keyboard is hang (r438 is still buggy)
% chromeos-firmwareupdater --mode=recovery
  Expect fail at gec_need_2nd_pass()
% ectool reboot_ec RO
  Keyboard is still working!  Bug fixed!
% ectool reboot_ec RO
  Again. Still working.

Change-Id: If47bd8d7bbbb03b810d3b464ba3d92f8ff548237

akappy7/ChromeOS_EC_LED_Diagnostics,alterapraxisptyltd/chromium-ec,md5555/ec,fourier49/BZ_DEV_EC,thehobn/ec,thehobn/ec,coreboot/chrome-ec,eatbyte/chromium-ec,md5555/ec,longsleep/ec,akappy7/ChromeOS_EC_LED_Diagnostics,fourier49/BIZ_EC,coreboot/chrome-ec,longsleep/ec,alterapraxisptyltd/chromium-ec,mtk09422/chromiumos-platform-ec,fourier49/BIZ_EC,akappy7/ChromeOS_EC_LED_Diagnostics,md5555/ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,gelraen/cros-ec,coreboot/chrome-ec,longsleep/ec,eatbyte/chromium-ec,gelraen/cros-ec,gelraen/cros-ec,longsleep/ec,gelraen/cros-ec,mtk09422/chromiumos-platform-ec,alterapraxisptyltd/chromium-ec,akappy7/ChromeOS_EC_LED_Diagnostics,fourier49/BIZ_EC,coreboot/chrome-ec,fourier49/BIZ_EC,thehobn/ec,fourier49/BZ_DEV_EC,eatbyte/chromium-ec,fourier49/BZ_DEV_EC,coreboot/chrome-ec,thehobn/ec,fourier49/BZ_DEV_EC,md5555/ec,eatbyte/chromium-ec,mtk09422/chromiumos-platform-ec,alterapraxisptyltd/chromium-ec,mtk09422/chromiumos-platform-ec