diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2015-04-22 12:06:00 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-04-22 16:17:47 +0200 |
commit | b7fad898af0ab3fb1f96cf788181db61b6ad838d (patch) | |
tree | 176a2272f3671157b551acf5a095d25edf40fd94 /src/vendorcode/google/chromeos | |
parent | 21edc976ccafd18cdfe962977afb1098aadfef57 (diff) | |
download | coreboot-b7fad898af0ab3fb1f96cf788181db61b6ad838d.tar.xz |
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>
Diffstat (limited to 'src/vendorcode/google/chromeos')
-rw-r--r-- | src/vendorcode/google/chromeos/chromeos.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/vendorcode/google/chromeos/chromeos.c b/src/vendorcode/google/chromeos/chromeos.c index 97c7e4f614..08d96921cf 100644 --- a/src/vendorcode/google/chromeos/chromeos.c +++ b/src/vendorcode/google/chromeos/chromeos.c @@ -65,29 +65,6 @@ int vboot_skip_display_init(void) 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) { // Can be implemented by a mainboard |