msm: camera: Added flash node in 8084 dtsi.

Added DUAL LED flash dtsi support on 8084.
This PORed flash is available on liquid also with IMX135.

Change-Id: I4db17a624cee602a63212507d5c092a1a3f4b7dc
Signed-off-by: Rajesh Bondgula <rajeshb@codeaurora.org>
Reviewed-on: http://gerrit.pcs.mot.com/609603
Submit-Approved: Jira Key <jirakey@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
arm/dts: victaria: fix 4th and 5th mic routing

4th and fifth mic's are connected to mic bias 2.

Change-Id: I535a6624263ff1c68c9810b8999f2bbe500fd57f
Signed-off-by: Prabhu Annabathula <prabhu.annabathula@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/609795
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
msm:config: add support for LM3646 flash driver

This change add config change for LM3646 flash.

Change-Id: Ia1fa686f86c9453112c83447394df3d65c341cf7
Signed-off-by: Alice Zhang <w18656@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/609099
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Dave Schmidt <d.schmidt@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
arm/dts: 8974: add support for LM3646 dts change

This change add dts change for LM3646 flash.

Change-Id: I9098da3df530c4727513a7ccd8322b3f90d285fd
Signed-off-by: Alice Zhang <w18656@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/609100
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
driver: 8974: LM3646 flash driver support

This change add driver support for LM3646 flash.  LM3646 doesn't
have flash-now GPIO control; a new DT flag for flash-now is added

Change-Id: I3261cf74ef308f1e9c849aa184167d63c8a0450b
Signed-off-by: Alice Zhang <w18656@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/609101
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
drivers: misc: Add Titan sensor drivers

Add the driver code needed for the Titan sensors.
These files are exactly as received from the vendors and are
being release for history tracking. There will be changes made
by Motorola before they are enabled.

Change-Id: I2760b6fc05f715397da752a97d52e966c25c4d6c
Signed-off-by: Robert Wiegand <qa2113@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/609775
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
input: atmel_mxt_ts: limit number of printed objects

Show only relevant object through debug attribute

Change-Id: I1d04b01e509d32da060c05db66ee0fbcd191e6da
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/609627
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Alexander Filonenko <alexf@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
input: atmel_msx_ts: add revision id in default config

When touch IC gets stuck in bootloader, revision id cannot be retrieved.
Thus it's impossible to force firmware upgrade. Get "suggested"
revision id from config block of atmel_mxt_ts' node to handle this case.

Change-Id: Iaefbe7407d865cec4542de047a61e32f40e719f8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/609687
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Alexander Filonenko <alexf@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
arm/dts: 8974: atmel touch revision id in dts

Update default config block with suggested touch revision id. This
parameter used to pick matching firmware file for an automated touch
firmware upgrade.

Change-Id: I8beb89038673c031effe97922ebe20ed8ed4e009
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/609688
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Alexander Filonenko <alexf@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
ARM: mm: unused-function early_pte_alloc_and_install

The Android patch titled "ARM: allow the kernel text section to
be made read-only" adds new function early_pte_alloc_and_install()
which is not used if CONFIG_HIGHMEM is not enabled.
Wrap the function with CONFIG_HIGHMEM.

Change-Id: Ib4cac23ce00c71f80ae598f9c1542e438fb57f8d
Signed-off-by: Yuanyuan Zhong <zyy@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/610038
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Yu Liu <e7664c@motorola.com>
Submit-Approved: Yu Liu <e7664c@motorola.com>
Reviewed-by: Andrew Wheeler <awheeler@motorola.com>
arm/dts: 8226: Titan: Enable Stage 2 reset

Enable the PM8226 stage2 reset to do hard reset the system.
Ported from http://gerrit.pcs.mot.com/#/c/606634/

Change-Id: I2c8f057e63429ae634ecbac573f5f71fb9973f8b
Signed-off-by: Jiangli Yuan <a6808c@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/610062
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Jason Knopsnyder <jasonk@motorola.com>
input: synaptics_dsx_i2c: align f12 with protocol b

Aligning touch event reporting function 12 with protocol B.

Change-Id: I073091171ff7935b3e1e4589a4fcda49fb3f47dc
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/609130
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Alexander Filonenko <alexf@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
arm/dts: 8226: titan device tree cleanup

Cleanup touch node and gpiomux.

Change-Id: I63d1e3cff03e2309e809bda59582b2c91431e8b0
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/610196
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Alexander Filonenko <alexf@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
sound: usb: Set the usb audio switch after the sound card is registered

The sound card needs to be registered before setting the "usb_audio" switch.
Otherwise the switch uevents can trigger userspace activity which can poll for
a non-existent sound card.

Propagation of (CR)

Change-Id: Ie6474fa2d16fb79dd34e3eeb54418d1e3d256de0
Signed-off-by: Ravi Vembu <a18394@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/610195
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Ravikumar Vembu <raviv@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
arm/dt: msm8610: change step-charge-current to 1250

EL40 cell spec allows for 1250mA of charge current past 4.2V to get
800 cycles. Therefore the step-charge-current should be increased to
1250mA

Change-Id: I99e8acfae10d51dbd59829ee01e00ea0b580a329
Signed-off-by: Anil Patel <anilpatel@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/610064
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Reviewed-by: Jason Knopsnyder <jasonk@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Revert "msm: mdss: Fix mdss iommu detach-attach issue"

This reverts commit 4786a4e45213b145de59ca167a521a3a0db81ec1. This is
causing issues with panics while changing the backlight and white
flashes on the display.  Revert until we get proper fix from QCOM.

Change-Id: I1fb884c1aeb2b0a85bf36276923c41a6a0dc1c1a
Signed-off-by: Zac Crosby <azc095@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/610449
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-by: Fred Fettinger <fettinge@motorola.com>
Reviewed-by: Stephen Rossbach <rossbach@motorola.com>
SLTApproved: Stephen Rossbach <rossbach@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Revert "msm: mdss: Detach mdss iommu on static screen"

This reverts commit e8f9507cd07c2bf1cb121dacab65800f631988d2.  This is
causing issues with panics while changing the backlight and white
flashes on the display.  Revert until we get proper fix from QCOM.

Signed-off-by: Zac Crosby <azc095@motorola.com>

Conflicts:
	drivers/video/msm/mdss/mdss_mdp.h

Change-Id: I76d783d38b30527335b4de406712f1f70cb77abd
Reviewed-on: http://gerrit.pcs.mot.com/610450
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-by: Fred Fettinger <fettinge@motorola.com>
Reviewed-by: Stephen Rossbach <rossbach@motorola.com>
SLTApproved: Stephen Rossbach <rossbach@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Revert "defconfig: Disable CONFIG_SYSRQ_SCHED_DEBUG for MSM targets"

This reverts commit 8e40fe47f6e58875e7e491249e88557d5020356c.

Qcom's patch is to avoid watchdog reset during dumping sched info.
Moto code base already has related solution to safely dump it.

Enabling CONFIG_SYSRQ_SCHED_DEBUG will print scheduler debugging
information in our panic log, which will help panic analysis.

Conflicts:

	arch/arm/configs/msm8226_defconfig
	arch/arm/configs/msm8610_defconfig

Change-Id: Ieacfb3a2c9a841540434d4d7cc7c85376cc7dfde
Signed-off-by: Yi-wei Zhao <gbjc64@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/610243
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Hong-Mei Li <a21834@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
video: backlight: reconfigure LM3630A after exiting sleep

- Reconfigure chip registers after exiting sleep to make sure the settings
  are correct because those settings are likely gone at that time in some
  cases.
- Export all of register settings to device tree.

Change-Id: I723c11e808f079326cfc1d8c743de624856a8bcd
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/610496
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Yi-Wei Zhao <gbjc64@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
arm: dts: Set Titan back light current and protection.

- Limit back light maximum current per LED string to 22 mA according to
  5' JDI display spec.
- Set over-current protection to 600 mA, over-voltage protection to 24 V.

Change-Id: I20b494e2c5a0bad14455fe26de88bf2cd3a6bf3a
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/610498
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Yi-Wei Zhao <gbjc64@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>