ASoC msm: add dapm mic input's

Added secondary, teritiary, quaternary and quinary mic inputs.

Signed-off-by: Qiang Qiu <qqiu@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
arch: arm: mach-msm: 8084-gpiomux sensorhub pins

Configure sensorhub boot and reset pins as GPIOs

Signed-off-by: Dan Moore <dtmoore@motorola.com>
Reviewed-by: Jason Hrycay <jason.hrycay@motorola.com>
Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
nfc: bcm2079x: Add BCM20795 NFC driver

Merge NFC driver for BCM 20795 controller.

Signed-off-by: Balachandar Swami <w60013@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
arm: msm: 8084: gpio-mux: Config BCM20795 GPIOs

Configure GPIOs for BCM 20795 NFC controller

Signed-off-by: Balachandar Swami <w60013@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
defconfig: 8084: enable BCM20795 NFC driver

Signed-off-by: Balachandar Swami <w60013@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
ASoC: TPA6165 headset detection and amp driver

Add basic HS detection logic. Prop from mkk-b.
Based on SHA1 2d15ab87f66a15350e18f09b6b68abcdcb15186f

In addition, the following are depreacated in Kernel 3.10:
__devinit, __devexit, __devexit_p
Hence, remove any such instances.

Signed-off-by: Rajasekhar Goparaju <chb764@motorola.com>
Reviewed-by: Jason Hrycay <jason.hrycay@motorola.com>
Reviewed-by: Vladimir Karpovich <vkarpovich@motorola.com>
Reviewed-by: Prabhu Annabathula <hnbv46@motorola.com>
ASoC: wcd9320: remove calls to MBHC if using TPA6165A2

Prop from mkk-b: 4b19759c3faf531e5e5ef285bcc78e97909475cd

calling into the MBHC driver will cause panics as we are configured to use
TPA6165A2 and the MBHC driver initialization is skipped.

Signed-off-by: Rajasekhar Goparaju <chb764@motorola.com>
Reviewed-by: Vladimir Karpovich <vkarpovich@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
ASoC: TPA6165A2: add hooks for TPA6165A2 headset

Porting from mkk-b to apq8084.
Refer to SHA1 ca305c24a86bc89f628aa8a6fa1ba4eaba8f3e15

Signed-off-by: Rajasekhar Goparaju <chb764@motorola.com>
Reviewed-by: Vladimir Karpovich <vkarpovich@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
ASoC: TPA6165A2: missing Kconfig dependency in msm

Porting from mkk-b to apq8084.
Refer to SHA1 f38e7d577bc854268f19ac465b62c671b384afe2

Change-Id: I606b46856ff0499ae28808f4fb21be595c48bb31
Signed-off-by: Rajasekhar Goparaju <chb764@motorola.com>
Reviewed-by: Vladimir Karpovich <vkarpovich@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
ASoC TFA9890: port tfa9890 smartboost driver to apq

smartboost driver ported from 8974 baseline with changes done
to remove deprecated definitions __devexit and __devinit.

Signed-off-by: prabhu annabathula <prabhu.annabathula@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
arm: msm: 8084: gpio-mux: Config Quat MI2S

install mi2s quat gpio's used for exterenal codec tfa9890/smartboost.

Signed-off-by: prabhu annabathula <prabhu.annabathula@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
ASoC msm: add tfa9890 dai links to machine driver

added tfa9890 dai links and enabled tfa9890 codec driver  in kconfig

Change-Id: Ifaa65ea5a3b5a482e16bc06169347c81413a9a1e
Signed-off-by: prabhu annabathula <prabhu.annabathula@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
ASoC msm: add tfa9890 dai links to machine driver

added tfa9890 dai links and enabled tfa9890 codec driver  in kconfig

Signed-off-by: prabhu annabathula <prabhu.annabathula@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
arch/arm: apq8084: Add max17042 driver

Add the max17042 driver to the apq8084 build.

Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-by: Jason Knopsnyder <jasonk@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
power: max17042: Add EG30 LG

Temporarily hardcode the configuration for
the EG30 LG cell into the max17042.
This needs to be removed when the entire
configuration has been setup to use device
tree.

Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-by: Jason Knopsnyder <jasonk@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
power: smb135x: Factory Mode Disable

This driver is not needed for Factory Mode.

Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-by: Jason Knopsnyder <jasonk@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-by: Zhenhua Zhang <aliz@motorola.com>
defconfig: 8084: disable Qualcomm device trees

In the interest of space available, don't build the device tree binaries
for Qualcomm APQ targets.

Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
tty: diag: Refactor I/O through userspace TTY

This refactors the original work on (CR).  The goal is to
have a minimal impact on merges from upstream.  This is a fresh patch
done after reverting the original, so it's a standalone patch on top
of upstream.

- Support for APQ was intentionally left out, because it increases the
  complexity of the code substantially, and has no benefit for this
  baseline.  This means that the only supported IPC to the slave
  devices is SMD.  Support for bridging to HSIC and SMUX was removed.
- Support for DIAG_OVER_TTY is now wholly dependent on DIAG_OVER_USB.
- All non-functional name changes were left out.  The downside is that
  the code is not as legible.

(cherry picked from commit c730e1c885393260aa0031fc561af4a669c84ff9)
(cherry picked from commit 5fae4b73cba774f709e2f198e4ad57e4c2f4a1b8)
[jason.hrycay@motorola.com: split tty and char portions]
Signed-off-by: Jason Hrycay <jason.hrycay@motorola.com>
(cherry picked from commit 1f32e61b82c9600bed6dbee42557f9f35f73348c)
[jeff.carlyle@motorola.com: reworked for 3.10 kernel]
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
defconfig: apq8084: enable DIAG over TTY

Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
usb: gadget: Motorola USBNet Driver

Signed-off-by: James Wylder <jwylder1@motorola.com>
Reviewed-by: Jason Hrycay <jason.hrycay@motorola.com>
Reviewed-by: James Wylder <James.Wylder@motorola.com>
(cherry picked from commit 5c26783aa56f9eff6a42367cd7e6dbce1043346b)
(cherry picked from commit 5007aed402c8982b6d517f5d8a65b08e1db7b9a7)
(cherry picked from commit 42cd56997ca8c94de659a284ae4589d08aeeba98)
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>