soc/intel/cannonlake: enable pch link in bootblock
commit1428f0176d7eb5d4eb62bffefefbab54e690d0a8
authorCaveh Jalali <caveh@google.com>
Wed, 24 Jan 2018 06:15:24 +0000 (23 22:15 -0800)
committerAaron Durbin <adurbin@chromium.org>
Thu, 25 Jan 2018 15:56:29 +0000 (25 15:56 +0000)
treefb287584d963da47166ecf600eba44eaec2077f0
parent6de0cd2b7d7c6611ac743575032d4163a6759f8c
soc/intel/cannonlake: enable pch link in bootblock

This moves the call to pch_enable_lpc() from romstage to bootblock.
In other words, it happens earlier in the boot process.  Turns out, we
need this to talk to the EC to determine if we're in recovery mode or
not.

BUG=b:69011806
TEST=boots to linux

Change-Id: I899bf343d705fe19a2978917bc88990495ebb5a3
Signed-off-by: Caveh Jalali <caveh@google.com>
Reviewed-on: https://review.coreboot.org/23401
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/soc/intel/cannonlake/Makefile.inc
src/soc/intel/cannonlake/bootblock/pch.c
src/soc/intel/cannonlake/romstage/romstage.c