soc/intel/{cnl,icl}: Use new power-failure-state API
commit733c28fa4228b1ce000d39e2807ebc3224302a7a
authorNico Huber <nico.h@gmx.de>
Mon, 5 Aug 2019 17:33:09 +0000 (5 19:33 +0200)
committerNico Huber <nico.h@gmx.de>
Fri, 9 Aug 2019 09:35:22 +0000 (9 09:35 +0000)
treecbb381e0d0da8387842f611ae9a751fc7dea06e7
parent04ce8fe6e3452ece3182dcc4404b532a8754dcfe
soc/intel/{cnl,icl}: Use new power-failure-state API

pmc_soc_restore_power_failure() is only called from SMM, so add
`pmc.c` to the `smm` class. Once all platforms moved to the new
API, it can be implemented in a central place, avoiding the weak-
function trap.

Change-Id: Ib13eac00002232d4377f683ad92b04a0907529f3
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34726
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/mainboard/google/sarien/chromeos.c
src/soc/intel/cannonlake/Makefile.inc
src/soc/intel/cannonlake/pmc.c
src/soc/intel/icelake/Makefile.inc
src/soc/intel/icelake/pmc.c