mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
This change modifies the behavior of RBOX by blocking the key0 and key1 output, when the power button is pressed. It also adds support for printing debug statements when various RBOX interrupts are triggered. BUG=none BRANCH=none TEST=On cr50 test board verify key0 and key1 out are not asserted unless the power button is pressed. Change-Id: I67a3c1b8009279015bdc87bcf0995cffa9ab6f03 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/341470 Tested-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
58 lines
1.0 KiB
C
58 lines
1.0 KiB
C
/* Copyright (c) 2013 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.
|
|
*/
|
|
|
|
/* Module IDs for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_MODULE_ID_H
|
|
#define __CROS_EC_MODULE_ID_H
|
|
|
|
#include "common.h"
|
|
|
|
enum module_id {
|
|
MODULE_ADC, /* 0 */
|
|
MODULE_CHARGER,
|
|
MODULE_CHIPSET,
|
|
MODULE_CLOCK,
|
|
MODULE_COMMAND,
|
|
MODULE_DMA, /* 5 */
|
|
MODULE_EXTPOWER,
|
|
MODULE_GPIO,
|
|
MODULE_HOOK,
|
|
MODULE_HOST_COMMAND,
|
|
MODULE_HOST_EVENT, /* 10 */
|
|
MODULE_I2C,
|
|
MODULE_KEYBOARD,
|
|
MODULE_KEYBOARD_SCAN,
|
|
MODULE_LIGHTBAR,
|
|
MODULE_LPC, /* 15 */
|
|
MODULE_PECI,
|
|
MODULE_PMU,
|
|
MODULE_PORT80,
|
|
MODULE_POWER_LED,
|
|
MODULE_PWM, /* 20 */
|
|
MODULE_RDD,
|
|
MODULE_RBOX,
|
|
MODULE_SPI,
|
|
MODULE_SPI_FLASH,
|
|
MODULE_SPI_MASTER, /* 25 */
|
|
MODULE_SWITCH,
|
|
MODULE_SYSTEM,
|
|
MODULE_TASK,
|
|
MODULE_THERMAL,
|
|
MODULE_UART, /* 30 */
|
|
MODULE_USART,
|
|
MODULE_USB,
|
|
MODULE_USB_DEBUG,
|
|
MODULE_USB_PD,
|
|
MODULE_USB_PORT_POWER, /* 35 */
|
|
MODULE_USB_SWITCH,
|
|
MODULE_VBOOT,
|
|
|
|
/* Module count; not an actual module */
|
|
MODULE_COUNT
|
|
};
|
|
|
|
#endif
|