spring: Sense attached device type

This adds USB port control to charger task. For now, it only senses
attached device type and log it to console.

BUG=chrome-os-partner:14319
TEST=Attach/detach charger and see console output.
BRANCH=none

Change-Id: I1218d520c292d9d398c868122ae3876d3fc889bc
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/40078
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
Vic Yang
2012-12-19 23:58:12 +08:00
committed by ChromeBot
parent 6eb8a6e999
commit 40c79398a6
6 changed files with 86 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ enum tsu6721_mux {
#define TSU6721_TYPE_AUDIO2 0x000002
#define TSU6721_TYPE_AUDIO1 0x000001
#define TSU6721_TYPE_AUDIO3 0x008000
#define TSU6721_TYPE_JIG_UART_ON 0x000400
#define TSU6721_TYPE_U200_CHG 0x400000
#define TSU6721_TYPE_APPLE_CHG 0x200000
#define TSU6721_TYPE_NON_STD_CHG 0x040000