chromeos: Drop {developer,recovery}_mode_enabled

They were already moved to src/lib/bootmode.c in
commit 5687fc9 Declare recovery and developer modes outside ChromeOS

Change-Id: Ia27a0c79baa364ce3779a8a699e9246d26d02ecb
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/9951
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Patrick Georgi 2015-04-22 12:06:00 +02:00 committed by Patrick Georgi
parent 21edc976cc
commit b7fad898af
1 changed files with 0 additions and 23 deletions

View File

@ -65,29 +65,6 @@ int vboot_skip_display_init(void)
return !(vbho->init_params.out_flags & VB_INIT_OUT_ENABLE_DISPLAY); return !(vbho->init_params.out_flags & VB_INIT_OUT_ENABLE_DISPLAY);
} }
int developer_mode_enabled(void)
{
return get_developer_mode_switch() || vboot_enable_developer();
}
int recovery_mode_enabled(void)
{
/*
* This is called in multiple places and has to detect
* recovery mode triggered from the EC and via shared
* recovery reason set with crossystem.
*
* If shared recovery reason is set:
* - before VbInit then get_recovery_mode_from_vbnv() is true
* - after VbInit then vboot_enable_recovery() is true
*
* Otherwise the mainboard handler for get_recovery_mode_switch()
* will detect recovery mode initiated by the EC.
*/
return get_recovery_mode_switch() || get_recovery_mode_from_vbnv() ||
vboot_enable_recovery();
}
int __attribute__((weak)) clear_recovery_mode_switch(void) int __attribute__((weak)) clear_recovery_mode_switch(void)
{ {
// Can be implemented by a mainboard // Can be implemented by a mainboard