google/butterfly: Replace use of __PRE_RAM__
Change-Id: Iae944b589d587b30826e935feae029aa8d07d5d9 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34926 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
a4e8fb2afd
commit
8d75f6c247
|
@ -66,18 +66,17 @@ int get_recovery_mode_switch(void)
|
|||
{
|
||||
int ec_rec_mode = 0;
|
||||
|
||||
#if FORCE_RECOVERY_MODE
|
||||
printk(BIOS_DEBUG,"FORCING RECOVERY MODE.\n");
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef __PRE_RAM__
|
||||
if (ec_mem_read(EC_CODE_STATE) == EC_COS_EC_RO) {
|
||||
ec_rec_mode = 1;
|
||||
if (FORCE_RECOVERY_MODE) {
|
||||
printk(BIOS_DEBUG, "FORCING RECOVERY MODE.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (ENV_RAMSTAGE) {
|
||||
if (ec_mem_read(EC_CODE_STATE) == EC_COS_EC_RO)
|
||||
ec_rec_mode = 1;
|
||||
|
||||
printk(BIOS_DEBUG, "RECOVERY MODE FROM EC: %x\n", ec_rec_mode);
|
||||
}
|
||||
printk(BIOS_DEBUG,"RECOVERY MODE FROM EC: %x\n", ec_rec_mode);
|
||||
#endif
|
||||
|
||||
return ec_rec_mode;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue