Files
OpenCellular/chip/g/rbox.h
Mary Ruthven 6abbb63639 cr50: add press and release options to powerbtn command
This change adds options to the powerbtn console command to press and
release the power button.

BUG=chrome-os-partner:58123
BRANCH=none
TEST=manual
	'powerbtn press' force a power button press
	'powerbtn release' release the power button. This will not
	override the signal if the button is physically pressed.

Change-Id: I52631d30dbae874ba6637f728cb6e435cb626e12
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/396207
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
2016-10-11 01:48:21 -07:00

29 lines
646 B
C

/* Copyright 2016 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.
*/
#ifndef __CROS_RBOX_H
#define __CROS_RBOX_H
/**
* Return true if the power button output shows it is pressed
*/
int rbox_powerbtn_is_pressed(void);
/**
* Return true if power button rbox output override is enabled
*/
int rbox_powerbtn_override_is_enabled(void);
/**
* Disable the output override
*/
void rbox_powerbtn_release(void);
/**
* Override power button output to force a power button press
*/
void rbox_powerbtn_press(void);
#endif /* __CROS_RBOX_H */