IKQCOMSD1-593 Export MMI specific unit info to modem over SMEM

Export system revision, serial, machine and barcode to modem using shared memory.

Change-Id: I5860460f518753b96716d629c2d171a10c09dd5a
Signed-off-by: Alexander Filonenko <vtp684@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/328370
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-by: Igor Kovalenko <Igor.Kovalenko@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>

Conflicts:
	arch/arm/mach-msm/devices-8960.c
	arch/arm/mach-msm/smd_private.h
IKKRNBSP-875 msm8690: teufel: move I2C peripherals to device tree

Change-Id: Ic91f6cef5d40af8966c647e86ae3e162928a37bc
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/330503
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Mark Melone <g15829@motorola.com>
IKKRNBSP-875 msm8690: dinara: move I2C peripherals to device tree

Change-Id: I1c89a6ba09fd4fb49a66b44efb229f7be4dee02a
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/330508
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Mark Melone <g15829@motorola.com>
IKKRNBSP-875 msm8690: vanquish: move I2C peripherals to device tree

Change-Id: I0a282d239745ee1b17f851c2cd60331a3edd9f47
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/330519
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
IKKRNBSP-875 msm8690: becker: move I2C peripherals to device tree

Change-Id: I9e181332c2fce262fecc25cb34105bd5a8c0fb26
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/330523
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Mark Melone <g15829@motorola.com>
IKKRNBSP-875 msm8690: asanti: move I2C peripherals to device tree

Change-Id: I6fbd3bf32501505eb2910353e201d863c154d17a
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/330526
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Mark Melone <g15829@motorola.com>
IKQCOMSD1-829: Add suppprt for Shutdown at 3.2V

Currently the Phone doesn't power-down though the Battery Voltage
is lesser than 3.2V. This change would powerdown when the Battery
volatge < 3.2V irrespective of whenther the Accessory connected or
not.

Change-Id: I85c412c34915cb46ffa2bdee4ebfbb57c4162779
Signed-off-by: Vidyadhar Gurram <rnh786@motorola.com>
Change-Id: Idfe7d49ea2d88b9b3821e46e39990d560a026bfd
Reviewed-on: http://gerrit.pcs.mot.com/330661
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>

Conflicts:
	drivers/power/pm8921-charger.c
	include/linux/mfd/pm8xxx/pm8921-charger.h
msm8960: mmi: adapt MMI board file for changes in 1.0.24 release

These changes are based on the following commits from Qualcomm:

  * a9873ab msm: 8960: Avoid empty msm_i2c_config_gpio function
  * b5be799 gpu: ion: Add heap ids
  * 70fac1e msm: clean up of the writeback variables in the board
  * 937a119 msm: ion heap support for the mdp driver
  * 5fabbd6 msm: display: Add rotator bus scaling vectors for 8660/8960

Change-Id: I2c998dca3976df31baf8fda775241479ef3f3509
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>

Conflicts:
	arch/arm/mach-msm/board-8960.h
	arch/arm/mach-msm/board-msm8960-common.c

The board-msm8960-common.c was entirely updated.
msm8960: mmi: normalize defconfig

Resynced checked-in defconfig with the output of 'make kernelconfig'.
There is no functional change in this commit.

Change-Id: Ib0e5033bd3de7d92fbe096908c08a27b10532d88
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
msm8960: mmi: disable DIAG_HSIC_PIPE

Disable during bringup to avoid build error:

  drivers/char/diag/diagfwd.c: In function 'diag_device_write':
  drivers/char/diag/diagfwd.c:258: warning: passing argument 1 of 'usb_diag_write' from incompatible pointer type
  error, forbidden warning: diagfwd.c:258
  make[4]: *** [drivers/char/diag/diagfwd.o] Error 1

Change-Id: I951690e71989192d4c9e32192894ff9aef0d69dd
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKQCOMSD1-1049 msm8960: mmi: setup platform data for camera drivers

Change-Id: I3c4117a424fa809f4074802d2f7e657a562e3ae4
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/333672
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Dave Schmidt <d.schmidt@motorola.com>
IKQCOMSD1-970: Fix the Vanquish touch can not use

The root cause is that the ABS_MT_TOUCH_MAJOR event
don't report, if there isn't the event, the framework's
inSlot->getTouchMajor() <= 0 is true, so the framework
will ignore the touch event.

See the git log drivers/input/touchscreen/melfas100_ts.c
commit 70c9a4542d5630ae8f1b0aa0ad0c8c1225d274ec
Author: Jason Hrycay <jason.hrycay@motorola.com>
Date:   Tue Dec 6 10:16:33 2011 -0600

    IKQCOMSD1-468: ICS Merge for Touch Drivers

    ICS uses ABS_MT_PRESSURE for touch presses now, need
    to update Cypress and Melfas touch driver to do this.

the changes del the ABS_MT_TOUCH_MAJOR event,
although ICS use the ABS_MT_PRESSURE for pressure instead
of ABS_MT_TOUCH_MAJOR, but the ABS_MT_TOUCH_MAJOR is used
for touch size.

Change-Id: I49f4d4a8fc0ee74e74bb27f0b139bb449cf6ee1e
Signed-off-by: Fu-Xin Li <BRND64@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/330604
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Christopher Fries <C.Fries@motorola.com>
Reviewed-by: Mark Melone <g15829@motorola.com>
IKQCOMSD1-1064 : Fix tabla2x regulators

The new WCD9310 changed addresses, it's now a "tabla2x", which
means we need regulators there to support it.

Change-Id: I5f1e366d6db7ff260524bc766d208a274b01972c
Signed-off-by: Chris Fries <C.Fries@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/334561
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Harini Peddibhotla <Harini.Peddibhotla@motorola.com>
Reviewed-by: Vladimir Karpovich <cvk011c@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKQCOMSD1-985: Cleanup mot display logs

A couple extra logs were added by reverting IKQCOMSD1-492, so let's
take them back out.

Change-Id: I3a645846c2d533750075f4f1672be9088bdb23ae
Reviewed-on: http://gerrit.pcs.mot.com/333869
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Christopher Fries <C.Fries@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKQCOMSD1-755: Add utag access driver to the kernel

Dynamic module that adds proc entry to dump utag content
Uses original utag library sources

Change-Id: Ic539643a73a5bc624dbd8bf1470e08fd5255b4cf
Signed-off-by: Dmitry Ornatsky <cdo021c@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/325093
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Igor Kovalenko <Igor.Kovalenko@motorola.com>
IKQCOMSD1-961 Enable NFC on Vanquish branch.

This change will enable NFC on Vanquish hardware on 8960-bringup branch.
Rebased to the latest code.

Change-Id: Id7f25beb2e989afed3cdf357d4548710e9945cf9
Signed-off-by: Bin Shao <bshao1@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/335859
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-by: Christopher Fries <C.Fries@motorola.com>
IKQCOMSD1-1102 Factory support in EMU detection driver

Change-Id: I28de37ad4068675af70c8399ac7997ea88b7e750
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/335438
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Igor Kovalenko <Igor.Kovalenko@motorola.com>
IKQCOMSD1-1130: Can not set new utag via config access

Deleted log statement attempted to use pointer that
was invalid for new utags.

Change-Id: I2b46610af7b7079f7d2e76455ab0b54618683f6a
Signed-off-by: Dmitry Ornatsky <cdo021c@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/336024
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Igor Kovalenko <Igor.Kovalenko@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
IKQCOMSD1-1134 Fix invalid merge

Recent merge brought in declaration of gpio regulator that does not belong
to MMI HW. MSM OTG driver is updated to avoid calling msm_hsusb_vbus_power
when OTG state machine is controlled by EMU detection driver.

Change-Id: Icf0aa9423cea9045f04090f6f337931374a1e08c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/336063
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Neil Patel <NPATEL@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-by: Igor Kovalenko <Igor.Kovalenko@motorola.com>
IKQCOMSD1-1024 Motorola specific changes to enable dw9714 AF actuator driver

Change-Id: I26cf48e4eb6a9f1b9bcdcf83a2278aae21e9ddb0
Signed-off-by: Nikhil Verma <xkq874@motorola.com>
Change-Id: Ic67057c0e74ceb6fac9140e82cfc9b0e2ac3d96c
Reviewed-on: http://gerrit.pcs.mot.com/335143
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Nikhil Verma <nikhil.verma@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Dave Schmidt <d.schmidt@motorola.com>
Reviewed-by: Elena Satraitis <w04888@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>