IKHSS7-8374 avoid race condition in EMU detection driver

EMU detection driver was registering callback with PMIC before
initialzing state flags to "defined" state. As a result PMIC was
calling a callback function with flags undefined causing
unbalanced pm_runtime_get and pm_runtime_put function calls.

Change-Id: I1fb8c20ec60a2387da0a2b20be3d9064470aa29d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/352602
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Neil Patel <NPATEL@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-by: Igor Kovalenko <Igor.Kovalenko@motorola.com>
IKQCOMSD1-1144: GSBI12 I2C from DSPS and UART from Krait not working concurrently.

As a part of the process to configure a GSBI12 as a high-speed UART, after
setting the clock table, the GSBI12 CTL register and protocol needs to be set .
The following are the changes to set the GSBI12 CTL register along with
leaving P_CLK always on for GSBI12.

Change-Id: I2d0bb0660a58e3edf281fa2c3453d33de08ba275
Signed-off-by: Vidyadhar Gurram <rnh786@motorola.com>
Change-Id: Ie281fb2f34d497b567bf3a34aa94ec13da50fa2c
Reviewed-on: http://gerrit.pcs.mot.com/353472
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-by: Jason Knopsnyder <jasonk@motorola.com>
Reviewed-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
IKQCOMSD1-1403 Add CARRIER and BASEBAND to mmi_unit_info

To distinguish between Vanquish and Vanquish U (and possibly other products
down the line) the modem team needs CARRIER and BASEBAND added
to mmi_unit_info. ATAG_BASEBAND was removed since BL passes BASEBAND in
cmdline.

Change-Id: Id4c59abe96377625303181bc33fec756a6cc3fea
Signed-off-by: Alexander Filonenko <vtp684@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/353652
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: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKHSS7-7397: Remove hard coding from EMU detection driver

Change-Id: I530ba95586f4fac42cae8b396e997f40125e58c1
Signed-off-by: Greg Meiste <w30289@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/351057
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-by: Vidyadhar Gurram <Vidyadhar.Gurram@motorola.com>
Reviewed-by: Jason Knopsnyder <jasonk@motorola.com>

Conflicts:
	arch/arm/mach-msm/include/mach/mmi_emu_det.h
IKHSS7-8516 - Disable charging LED in the kernel

Charging LED should only be used in charge only mode.

Change-Id: Ib6141f183c31461de40aa8cd64e9496abea6ba03
Signed-off-by: Alina Yakovleva <qvdh43@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/352712
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: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKVANQUISH-321 Use open source driver (includes fw dwnld)

Change-Id: I1d309a7e90f37e70af63344edcf278df8d870a4b
Signed-off-by: Boris Dubinsky <Boris.Dubinsky@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/353874
Tested-by: Jira Key <JIRAKEY@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>
IKVANQUISH-374: Adding modem coredump device for modem panic
notification.

This is prototype.
This modem coredump device will notify to user space when modem panic occurred.
And copy Crash Logger Report to user space app.

Change-Id: Iae7b1afd8173425012bf13c1b8e3092cf880d80b
Signed-off-by: Hideki Yoshino <pgq674@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/353555
Tested-by: Jira Key <JIRAKEY@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>
Reviewed-by: Vidya Rao <vidya.rao@motorola.com>
msm8960: mmi: update for Qualcomm 1.0.31 release

See following Qualcomm commits for more details:

  * efbb14e6cc134f2dd9d3e5482f37d2eb35dc5ed4
  * 8401b1b83b823ba35fcd9d3f3822cca9bd0ad6b2
  * fbfbecded8b585bcab7492fdb9217c020fd71a48
  * e71b69241427ddb1161101f6c89e7c7d2803f1ba
  * b72e9971a31610f98fb4a6a40b62b8930756495d
  * 37603b1fe69911b90e5828c61704f74d992e24f5

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

Conflicts:
	sound/soc/msm/msm8960.c
ARM: add touch_nmi_watchdog

Add touch_nmi_watchdog, which gets called during long operations
with interrupts off like sysrq-t.  Call an atomic notifier chain,
which can pet the watchdog if necessary.

Change-Id: I1c7ba5230a2cca54625a089085d479a4758ce9be
Signed-off-by: Colin Cross <ccross@android.com>
Reviewed-on: http://gerrit.pcs.mot.com/354562
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: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKHSS7-8501 msm: watchdog: register to nmi wdog notifier chain

Register msm_watchdog to nmi watchdog notifier chain. Then
calling touch_nmi_watchdog() can pet the watchdog.
Signed-off-by: Yuanyuan Zhong <a6510c@motorola.com>

Change-Id: I4a7b8468fcbaf3894de81f36dd78d2056bbc3027
Reviewed-on: http://gerrit.pcs.mot.com/354563
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: Jeffrey Carlyle <jeff.carlyle@motorola.com>

Conflicts:
	arch/arm/mach-msm/msm_watchdog.c
IKVANQUISH-440 Change values for new firmware and add static

Change-Id: I9480c8fb3289afeb7a63d052ea233c710b0cc9e5
Signed-off-by: Boris Dubinsky <Boris.Dubinsky@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/354670
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKHSS7-9287 reserve bootmem for flat device tree

When unflattening device tree, the properties from flat device
tree are not copied over. Only the references are saved as
pointers. So the memory used by flat device tree need to be
reserved.

Change-Id: I4273747ce747bbb20828a8cf704edbb14d7febbd
Signed-off-by: Yuanyuan Zhong <a6510c@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/355414
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: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKHSS7-9318: Prevent usage of PMIC GPIO 42 by OTG switch regulator

The OTG switch regulator was incorrectly configured as a GPIO regulator using
PMIC GPIO 42, which is a GPIO used for Whisper. This regulator should be
defined to use PMIC MPP7 instead.

Change-Id: Ifd1ee5aab5bc9890fc4e1d453d3d7062c5c8316a
Signed-off-by: Neil Patel <NPATEL@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/355531
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Konstantin Makariev <hcv867@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>
IKVANQUISH-448: updating display setting and MIPI timings as recommended by SMD

Change-Id: I7c2e42cd2ab51600621e0b188c9ef4de4a4869ab
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/354705
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: Bang Nguyen <bang.nguyen@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKLOCSEN-776 Add CT406 DC Bias Setting

Add a device tree setting for the CT406's Proximity
Offset register.

Change-Id: I708bd87d687017f912d89a24cb3074807a346111
Signed-off-by: Robert Wiegand <Robert.P.Wiegand@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/356169
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: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKHSS7-7493: add back missing kernel modules for google VPN types

Additionally, 'make kernelconfig' was run to 'normalize' the defcofnig
file.

Change-Id: I7bc055543aec3b9c5c44aecdcc4d21840c992001
Reviewed-on: http://gerrit.pcs.mot.com/356196
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
msm: board: Reduce kernel EBI reserved size

Kernel EBI is currently used by Audio only and it
needs 2.5MB (it was 5MB). Other components (Video, QSE)
moved to other ION heaps, so the kernel EBI is adjusted accordingly.

Reduce the kernel EBI carveout memory size to
2.5MB.

Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
(cherry picked from commit edcf68350ece4453fd93b99d38abf845bb542c02)

Change-Id: I619a8b11f0353f7a67b78e5fb9eeb61906b1436b
Signed-off-by: Yen-Pin Hsiao <yphsiao@codeaurora.org>
[jeff.carlyle@motorola.com: adapted from 8c43306237403f7842d26e233770b2dbb2a4b80c]
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKHSS7-8457 : Inserted Display inverted mode
for some products such as Ashe Sprint which has inverted mechanical LCD design

Change-Id: I1fa388002b3bcd38c13918f355a7f4690ac22eef
Signed-off-by: Han, Gunwoo <krcm64@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/354423
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: Bang Nguyen <bang.nguyen@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
IKHSS7-6788 Enable CONFIG_INPUT_KEYCHORD

This is required for the init "keycodes" keyword to work, and therefore
is required for the Bug2Go magic keypress to work.

Change-Id: Ide5096e9e513b798d19a286546c74bc47e55f93b
Signed-off-by: John Michelau <w14107@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/356366
Tested-by: Sanjay Dhar <csd004@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: Christopher Fries <C.Fries@motorola.com>
IKHSS7-9520 Set Flash value

- torch current 140.63 mA (010)
- flash current: 1125 mA (1011)

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