mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
This adds a 'ch' command which prints/sets which channels are active This handles all the async output; the remaining debug commands will be refactored to use ccprintf() / ccputs() in a followup CL. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:7464 TEST=manual ch --> all channels active ch 0x100 -> just port80 active powerbtn -> system boots; only port 80 codes shown on console Change-Id: I9efc43acec919b62b78c2c82c61946d32380adfe
30 lines
970 B
C
30 lines
970 B
C
/* Copyright (c) 2012 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.
|
|
*/
|
|
|
|
/* x86 power module for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_X86_POWER_H
|
|
#define __CROS_EC_X86_POWER_H
|
|
|
|
#include "common.h"
|
|
#include "gpio.h"
|
|
|
|
/* Interrupt handler for input GPIOs */
|
|
void x86_power_interrupt(enum gpio_signal signal);
|
|
|
|
/* Informs the power module that the CPU has overheated (too_hot=1) or is
|
|
* no longer too hot (too_hot=0). */
|
|
void x86_power_cpu_overheated(int too_hot);
|
|
|
|
/* Immediately shuts down power to the main processor and chipset. This is
|
|
* intended for use when the system is too hot or battery power is critical. */
|
|
void x86_power_force_shutdown(void);
|
|
|
|
/* Reset the x86. If cold_reset!=0, forces a cold reset by sending
|
|
* power-not-ok; otherwise, just pulses the reset line to the x86. */
|
|
void x86_power_reset(int cold_reset);
|
|
|
|
#endif /* __CROS_EC_X86_POWER_H */
|