Files
OpenCellular/include/module_id.h
Mary Ruthven d281308b48 cr50: Detect debug cable and switch the PHY
This adds support for RD Detection on cr50. It can be used to detect a
debug device and signal the controller to switch from the AP PHY to the
to CCD PHY. When RDCC1 and 2 no longer detect the debug device, then
the controller switches back to using the USB to AP PHY.

BUG=chrome-os-partner:50700
BRANCH=none
TEST=change the value on RDCC1 and RDCC1 and check that the usb
controller connects to the right PHY.

Change-Id: Ice01a45a31fe1932945f89df2e3b851f4d287a17
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/338454
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
2016-04-13 20:10:38 -07:00

57 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_SPI,
MODULE_SPI_FLASH,
MODULE_SPI_MASTER,
MODULE_SWITCH, /* 25 */
MODULE_SYSTEM,
MODULE_TASK,
MODULE_THERMAL,
MODULE_UART,
MODULE_USART, /* 30 */
MODULE_USB,
MODULE_USB_DEBUG,
MODULE_USB_PD,
MODULE_USB_PORT_POWER,
MODULE_USB_SWITCH, /* 35 */
MODULE_VBOOT,
/* Module count; not an actual module */
MODULE_COUNT
};
#endif