blob: f0d5e000b3fb7b97f299e24e9a3bcab3674d7182 [file] [log] [blame]
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Driver for power_state for x86-alex boards, and derivatives.
import time
import power_state
class alexPower(power_state.PowerStateDriver):
# Time in seconds to allow the firmware to initialize itself and
# present the "INSERT" screen in recovery mode before actually
# inserting a USB stick to boot from.
def _power_off(self):
def _power_on(self, rec_mode):
self._interface.set('rec_mode', rec_mode)
if rec_mode == self.REC_ON:
self._interface.set('rec_mode', REC_OFF)