The real Whisper basic dock behaves a bit different than the prototype.
Detection must be tweaked to properly detect the accessory when it is
plugged into the wall.
Change-Id: I7e2c4708b7c6642c3b58ebed199632be59804740
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
CPCAP_BIT_VBUSVLD_S | \
CPCAP_BIT_SESSVLD_S)
+#define SENSE_WHISPER_SPD (CPCAP_BIT_SE1_S)
+
#define SENSE_WHISPER_PPD (0)
#define SENSE_WHISPER_SMART (CPCAP_BIT_ID_GROUND_S | \
whisper_notify(data, CPCAP_ACCY_USB_HOST);
cpcap_irq_unmask(data->cpcap, CPCAP_IRQ_IDFLOAT);
- } else if (data->sense == SENSE_WHISPER_PPD) {
+ } else if ((data->sense == SENSE_WHISPER_SPD) ||
+ (data->sense == SENSE_WHISPER_PPD)) {
gpio_set_value(data->pdata->pwr_gpio, 1);
/* Extra identification step for Whisper. */