soc/intel/cannonlake: remove duplicate power_state migration

Common PMC code comes with its own.

Change-Id: Ic055f046a2da1c56af4cc7936602d6191ffe7eef
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/22182
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Patrick Georgi 2017-10-26 04:33:47 -04:00 committed by Aaron Durbin
parent a547e40992
commit 66b5acc54b
1 changed files with 0 additions and 17 deletions

View File

@ -32,23 +32,6 @@ int acpi_get_sleep_type(void)
return ps->prev_sleep_state; return ps->prev_sleep_state;
} }
static void migrate_power_state(int is_recovery)
{
struct chipset_power_state *ps_cbmem;
struct chipset_power_state *ps_car;
ps_car = pmc_get_power_state();
ps_cbmem = cbmem_add(CBMEM_ID_POWER_STATE, sizeof(*ps_cbmem));
if (ps_cbmem == NULL) {
printk(BIOS_DEBUG, "Not adding power state to cbmem!\n");
return;
}
memcpy(ps_cbmem, ps_car, sizeof(*ps_cbmem));
}
ROMSTAGE_CBMEM_INIT_HOOK(migrate_power_state)
static inline int deep_s3_enabled(void) static inline int deep_s3_enabled(void)
{ {
uint32_t deep_s3_pol; uint32_t deep_s3_pol;