summaryrefslogtreecommitdiff
path: root/chip/g
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2017-08-04 18:29:01 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-08 17:34:09 -0700
commitbb66df5399918087d407cc341f57416408f0d025 (patch)
tree972edb0124dd866dbba4eca1552041b56a40a11b /chip/g
parent6c55126080f7fa1f165d38924834c894c4a24c27 (diff)
downloadchrome-ec-bb66df5399918087d407cc341f57416408f0d025.tar.gz
cr50: Merge CCD device handling to rdd.c
The device_state module is used for debouncing GPIO inputs to determine device sstate. It was overkill for managing the CCD cable (RDD) attach/detach state, and split that handling between 3 files (board.c, rdd.c, device_state.c). Move all of that logic into rdd.c so it's easier to maintain. BUG=none BRANCH=cr50 TEST=manual plug in CCD cable (or ground DIOM1) ccd command reports cable connected and AP UART TX+RX unplug CCD cable (or un-ground DIOM1) ccd command reports cable disconnected and AP UART disabled Change-Id: Id8fcd3a51605ae7a4843668ea18dd0ef84aceb2c Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/604499 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'chip/g')
-rw-r--r--chip/g/rdd.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/chip/g/rdd.h b/chip/g/rdd.h
index a71ace3895..1f19ee9b3e 100644
--- a/chip/g/rdd.h
+++ b/chip/g/rdd.h
@@ -13,14 +13,6 @@ void rdd_detached(void);
void rdd_attached(void);
/*
- * Called by the device state module when the state of the CCD mode pin changes
- * and will either enable or disable case closed debugging.
- *
- * @param pin_level: The level of the CCD_MODE_L pin.
- */
-void ccd_mode_pin_changed(int pin_level);
-
-/*
* USB is only used for CCD, so only enable UTMI wakeups when RDD detects that
* a debug accessory is attached and disable it as a wakeup source when the
* cable is detached.