Commit graph

569121 commits

Author SHA1 Message Date
Alex Sarraf
9ba5d5b815 input: gpio-keys: add definition for input device name
Add a macro definition for the input device name.

Change-Id: I084e073186765228c48b6dec9ea05d7085350617
Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
2016-03-23 21:23:51 -07:00
Chris Lew
90b06c27f2 diag: Increase number of buffers for MHI and USB
When there is heavy diag traffic, all the read buffers
for MHI are used. This change doubles the amount of buffers to
increase the packet throughput.

CRs-Fixed: 971043
Change-Id: I854abe0ba5273add8dee6a9762598706db12804a
Signed-off-by: Chris Lew <clew@codeaurora.org>
2016-03-23 21:23:50 -07:00
Sreelakshmi Gownipalli
9e1875b694 diag: Enable Diag over MHI
Make changes to support diag over MHI.

Change-Id: I6a1ff44da275c12144c0a83dbb317a00487f62be
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
2016-03-23 21:23:49 -07:00
Zhen Kong
750e7e4115 defconfig: disable upstream qcrypto driver on 4.4 kernel
Disable upstream qcrypto driver, and use qcom hw crypto driver.

Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-03-23 21:23:48 -07:00
Zhen Kong
be20302c2f crypto: msm: make change to support new AEAD API on 4.4 kernel
Make change to support new AEAD API on 4.4 kernel; also, take
code with ce_support.aligned_only and ce_bam_info.minor_version
=0 out as 4.4 support only for msm which has crypto 5.2 or
even higher.

Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-03-23 21:23:47 -07:00
Lingutla Chandrasekhar
2fbd2f64e4 time: alarmtimer: include lpm-levels for MSM targets only
lpm-level headers required only when CONFIG_MSM_PM is set.

To compile msm kernel for other targets (arch=um), add config
check to include lpm levels.

Change-Id: Ia1bd51da4952e56b945a5e51a3b1ff8aaa643cd5
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2016-03-23 21:23:46 -07:00
Mohit Aggarwal
4b81b05c57 rtc: alarm: Change wake-up source
Currently, RTC_ALARM is used to wake-up target from
suspend state and is also used for power-off alarm
feature. This patch uses qtimer to wake-up from
suspend state.

Change-Id: Ia42cfecd573309be2f03c18b4f1c321be8202d7d
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2016-03-23 21:23:46 -07:00
Satya Durga Srinivasu Prabhala
b01a9ad44f defconfig: arm64: enable various options on msm chipsets
For debugging issues, below options are being enabled on msm chipsets:
- DEBUG_SET_MODULE_RONX
- MSM_BOOT_STATS
- PAGE_OWNER
- FREE_PAGES_RDONLY
- PANIC_ON_DATA_CORRUPTION

Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 21:23:45 -07:00
Vignesh Radhakrishnan
0fd142b587 debugobjects: use kmemleak_not_leak for debug object memory
debug objects are placed in a list obj_pool which is static.
This is placed in __initdata which kmemleak will not scan
unless task stack scan is enabled.

We have taken the explicit choice of disabling task stack
scan by default through the creation of config in the
'commit 7f15dd8a750e ("kmemleak : Make kmemleak_stack_scan
optional using config")'

Thus kmemleak would think that there is no reference to this
and thus we will see this report as leaking memory.

Further, this memory would be freed by the debugobjects
framework when there is a memory crunch or when the
object size exceeds the max limit of ODEBUG_POOL_SIZE.

Fix this by using kmemleak_not_leak() when a debug object
is allocated to specify explicitly that this is not a leak.

Change-Id: I0ce66b1be4e5984681af9fd61883e7010e7bbd1b
Signed-off-by: Vignesh Radhakrishnan <vigneshr@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2016-03-23 21:23:44 -07:00
Vignesh Radhakrishnan
1dd9d8dd98 kmemleak : Make module scanning optional using config
Currently kmemleak scans module memory as provided
in the area list. This takes up lot of time with
irq's and preemption disabled. Provide a compile
time configurable config to enable this functionality.

Change-Id: I5117705e7e6726acdf492e7f87c0703bc1f28da0
Signed-off-by: Vignesh Radhakrishnan <vigneshr@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
[satyap: trivial merge conflict resolution and remove duplicate entry]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 21:23:43 -07:00
Vignesh Radhakrishnan
1723ce4914 smpboot: use kmemleak_not_leak for smpboot_thread_data
Kmemleak reports the following memory leak :

    [<ffffffc0002faef8>] create_object+0x140/0x274
    [<ffffffc000cc3598>] kmemleak_alloc+0x80/0xbc
    [<ffffffc0002f707c>] kmem_cache_alloc_trace+0x148/0x1d8
    [<ffffffc00024504c>] __smpboot_create_thread.part.2+0x2c/0xec
    [<ffffffc0002452b4>] smpboot_register_percpu_thread+0x90/0x118
    [<ffffffc0016067c0>] spawn_ksoftirqd+0x1c/0x30
    [<ffffffc000200824>] do_one_initcall+0xb0/0x14c
    [<ffffffc001600820>] kernel_init_freeable+0x84/0x1e0
    [<ffffffc000cc273c>] kernel_init+0x10/0xcc
    [<ffffffc000203bbc>] ret_from_fork+0xc/0x50

This memory allocated here points to smpboot_thread_data.
Data is used as an argument for this kthread.

This will be used when smpboot_thread_fn runs. Therefore,
is not a leak.

Call kmemleak_not_leak for smpboot_thread_data pointer
to ensure that kmemleak doesn't report it as a memory
leak.

Change-Id: I02b0a7debea3907b606856e069d63d7991b67cd9
Signed-off-by: Vignesh Radhakrishnan <vigneshr@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2016-03-23 21:23:42 -07:00
Prasad Sodagudi
0fd503f905 clocksource: arch_timer: Use _no_log variants while accessing registers
arch_timer register accesses happen more frequently flooding the
RTB logs. Since they are not that useful for debugging purposes,
use _no_log variants while accessing those registers.

Change-Id: Ide35ef1a01e4792c1b3b7b7be7ad3f069dc2f694
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
[satyap: trivial merge conflict resolution]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 21:23:41 -07:00
Satya Durga Srinivasu Prabhala
36ea398cfb qcom: perf: probe number of events in kryo CPU PMU init
CPU PMU events needs to be probed and returned per new design in
kernel 4.4.

Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 21:23:40 -07:00
Jeykumar Sankaran
6d65a9d49d msm: defconfig: Enable virtual framebuffer for msmcortex
Enable CONFIG_FB_VIRTUAL for msmcortex.

Change-Id: I0885f3dde918dfb4021022751d26f31caf408ffe
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
[cip@codeaurora.org: Resolved merge conflict]
Signed-off-by: Clarence Ip <cip@codeaurora.org>
2016-03-23 21:23:40 -07:00
Ray Zhang
51ee6fec00 ARM: dts: msm: fix ghost display issue of R69006
Ghost image is displayed on R69006 panel after certain
operations in some extreme cases. Fix this issue by
optimizing its flicker value.

Change-Id: Id36dcc67a419123c2ef45cbecf4c592222d95a2b
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
[cip@codeaurora.org: Resolved merge conflicts]
Signed-off-by: Clarence Ip <cip@codeaurora.org>
2016-03-23 21:23:39 -07:00
Mayank Rana
8a5f10b625 usb: gadget: qdss: Add attribute to allow debug interface
This change adds attribute with USB QDSS instance to allow
enable/disable debug interface.

Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:23:38 -07:00
Jack Pham
28fabd5ee2 usb: dwc3: Ensure req->dma is initialized to DMA_ERROR_CODE
commit 269a1b78 "usb: gadget: Add support for DMA mapping
optimization of request buffers" added checks to
usb_gadget_{map,unmap}_request() to support the pre-mapped
DMA buffers that a function can map ahead of time before
enqueing the request. However, these routines check the
req->dma for a sentinel value, DMA_ERROR_CODE, in order to
determine whether or not to proceed with dma_map/unmap().

This means that UDC drivers should initialize to this value
when allocating each new request. Do this in the dwc3
gadget driver in order to properly support this. This fixes
an issue in which usb_gadget_unmap_request() was incorrectly
being called on an uninitialized (as 0) req->dma address,
and proceeds to call dma_unmap() which interprets it as
physical address 0x0.

Change-Id: I514d2b824e272c6c42c483febaa1c4084b0d09ee
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-03-23 21:23:37 -07:00
Danny Segal
060b80f220 usb: gadget: Add support for DMA mapping optimization of request buffers
In order to improve performance, this patch enabled mapping of USB request
buffers in advance, before queueing them to the HW. This can be used when
there is a pool or pre-mapped request buffers so we don't need to map it
again every time the request gets queued.

Change-Id: Ic3a6db749343ef1345e0816210517755aee055b3
Signed-off-by: Danny Segal <dsegal@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:23:36 -07:00
Mayank Rana
b0129f471b USB: gadget: qdss: Fix NULL pointer related crash
NULL pointer crash is seen when starting USB QDSS data transfer
from usb_qdss_connect_work() as cdev was not updated. Issue can
be fixed by updating cdev from qdss_bind(). It seems that cdev
has been used couple of places to provide gadget related information.
Hence removing usage of cdev from qdss data structure and use gadget
directly.

Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:23:35 -07:00
Mayank Rana
be07227fdf defconfig: msm_defconfig: Enable USB BAM and USB QDSS
This change enables USB BAM driver (CONFIG_USB_BAM) and USB QDSS
driver (CONFIG_USB_CONFIGFS_F_QDSS) for BAM2BAM communication
between USB and QDSS peripherals.

Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:23:35 -07:00
Mayank Rana
c6246e5ef9 msm_hsusb: Allow USB BAM driver to compile if CI is not enable
USB BAM driver is accessing some of APIs which are specific to
CI controller. Hence add definitions of those APIs as No-ops
when CI is not enable to compile USB BAM driver.

Change-Id: Id121f042023f4a176936c8b575613244ec46de7f
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:23:34 -07:00
Mayank Rana
7d9fa0899e usb: gadget: qdss: Modify to support configfs usage
- This change adds configfs usage with USB QDSS driver.
- It removes all different supported control and data transports
and assume BAM2BAM as default mode.
- It also removes supported DPL functionality from this driver.

Change-Id: I9678c9e9a397445f36272616e517bbb83a59e88a
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:23:33 -07:00
Mayank Rana
395af08172 USB: gadget: QDSS: Add snapshot of USB QDSS Function driver
This change adds USB QDSS function driver which is used for
USB QDSS functionality. This snapshot is taken as of msm-3.18
kernel commit d5809484bb1b.

Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:23:32 -07:00
Mayank Rana
f6e4c0aed1 platform: msm: Add snapshot of USB BAM driver
Add USB BAM driver used which allows USB BAM to communicate with other
other peripherals (e.g QDSS or IPA) BAM.

This snapshot is taken as of msm-3.18 commit d5809484bb1b.

Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:23:31 -07:00
Venkata Narendra Kumar Gutta
8e51c8ce31 ASoC: msm: Add support for HW MAD bypass feature for listen
HW MAD bypass feature is to facilitate input to CPE by avoiding
MAD in codec. This is done by routing DEC1 data to CPE. Add the
required changes to support this feature.

CRs-fixed: 938514
Change-Id: I7788b1475cd22bdea291bcae47f048131b220ce3
Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
2016-03-23 21:23:30 -07:00
Meng Wang
e066a36f41 ASoC: wcd: enable regulator when micbias is needed
When vdd micbias is connected to regulator, need enable
regulator when micbias is needed.
To detect special headset, micbias need to be set to 2.7v.
Regulator need get enabled before special headset detection.

Change-Id: Iae361cabf7b5194e12f5ddc8e32d60cf94bf28c3
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-03-23 21:23:29 -07:00
Sathish Ambley
6c13525e1b defconfig: arm64: msm: Enable ADSP RPC driver for msmcortex
The driver is required for providing RPC functionality
to DSP subsystems.

Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-03-23 21:23:28 -07:00
Sathish Ambley
e2e1ba961b defconfig: arm64: msm: Enable ADSP RPC driver
The driver is required for providing RPC functionality
to DSP subsystems.

Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-03-23 21:23:28 -07:00
Sathish Ambley
c2410d63be msm: ADSPRPC: Enable RPC on SLPI processor
Add new channel to be able to communicate with SLPI processor
and do remote procedure calls from Apps subsystem. The Apps
and SLPI subsystems would use the memory from ADSP ION heap
for sharing the input and output buffers.

Change-Id: I186ec8e7769011d7aeeba149017f1555f2d84ed7
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-03-23 21:23:27 -07:00
Sathish Ambley
ba8056f2a6 msm: ADSPRPC: Call free only when allocation succeed
Call free only when allocation succeeded, otherwise skip freeing
remote heap memory.

Change-Id: I749c7956377764fe04e1b47898b4acb390c6b942
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-03-23 21:23:26 -07:00
Sathish Ambley
0cffc97b53 ARM: dts: msm: ADSPRPC: Remove IOMMU domain adsp_shared_domain
Remove IOMMU domain adsp_shared_domain as domain is created
at runtime.

Change-Id: Ic5e4aa9f05167be7c721b3c1fd71ab889c1fcd1d
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-03-23 21:23:25 -07:00
Sathish Ambley
08f929d272 msm: ADSPRPC: Call find_vma with mmap_sem semaphore held
Calling find_vma() with out holding the mmap_sem semaphore is
not safe especially when an another thread could be removing
vmas from the list. Remove find_vma in places where it is
being used just for debugging purposes.

Change-Id: I1ac12410a0880d92c7301065aa656b5ad8d521cf
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-03-23 21:23:24 -07:00
Sathish Ambley
1befdae1fa msm: ADSPRPC: Enable session restart with remote heap
Enable session restart when remote heap is allocated to
ADSP.

Change-Id: If4cd477f8c5994445f4a0e951a544afaa33be112
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-03-23 21:23:23 -07:00
Runmin Wang
cb73786a28 ARM: dts: qcom: Update the uart clock to upstream clock
Update the compatible string and clock name to upstream.

Change-Id: I693dd6df9e272a09748d74d7ed9d76fe294ec7ee
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-03-23 21:23:23 -07:00
Jordan Crouse
2a69c38265 msm: kgsl: Use CONFIG_QCOM_KGSL_IOMMU
The rest of the driver started using CONFIG_QCOM_KGSL_IOMMU. The
replayed MMU changes didn't get the memo.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2016-03-23 21:23:22 -07:00
Subbaraman Narayanamurthy
f98d112e4e defconfig: msmcortex: Enable CPRh KBSS regulator driver
Enable compilation of the CPRh KBSS regulator driver to manage
power requirements of the KBSS subsystem in the msmcobalt chip.

CRs-Fixed: 967275
Change-Id: I8d0195bfe70148937f5f375e2caf2431e4fcde54
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:23:21 -07:00
Subbaraman Narayanamurthy
c8642cac6a defconfig: fix defconfig mismatch
Auto update for the mismatch seen with following defconfigs.
- msm_defconfig
- msm-perf_defconfig
- msm_cortex_defconfig
- msm_cortex-perf_defconfig

Change-Id: Ic702802d48465011b5c15a862c0d12e8536c5139
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:23:20 -07:00
Subbaraman Narayanamurthy
5fbac2b28e input: move DT binding documentation for qpnp-power-on to input
qpnp-power-on driver have been moved to drivers/input and no
longer present under drivers/platform/msm. Move the DT binding
documentation as well there.

While at it, fix the indentation so that it pass checkpatch.

Change-Id: I32f416d32a57d7c447563d26e4dad24605cdce50
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:23:19 -07:00
Subbaraman Narayanamurthy
6f2f8bd9fa platform: msm: add DT binding docs for qpnp-revid and qpnp-coincell
Device tree bindings documentation for qpnp-revid/coincell are
missing. Add them. These files are taken as a snapshot from
msm-3.18 commit d5809484bb1b (Merge "msm: ipa: fix race condition
when teardown pipe").

Change-Id: I79eeff64e655808414dd23882939bd952e4e279a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:23:18 -07:00
David Collins
3146495f81 power: qcom: apm: add support for msm8996pro
Mutual exclusion between APM switching and LMH register accesses
is only required for HMSS version 1.2 and below on MSM8996.  It
is not required for HMSS version 1.2 on MSM8996-Pro.  Add support
for MSM8996-Pro so that the LMH mutex is not locked during APM
switching on MSM8996-Pro parts.

Change-Id: If09454827ed12c4d436c2fc792f5adcd45ef4312
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-03-23 21:23:18 -07:00
David Collins
5cf7daa23d regulator: cpr3-regulator: adjust voltage limits based upon aging results
Adjust the floor, ceiling, and open-loop voltages for each corner
of each CPR3 regulator based upon aging measurements.  This
allows the fixed open-loop voltage adjustment to be reduced since
it no longer has to account for the maximum possible aging
adjustment.  This in turn leads to more situations where LDO mode
may be used for the HMSS CPR3 regulators since the LDO must
always operate at the open-loop voltage.

Change-Id: Iaca0ed4b51f258656b5c44dc58f7361814ca3af7
CRs-Fixed: 949622
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-03-23 21:23:17 -07:00
Osvaldo Banuelos
70dcea8217 regulator: cpr3-util: add missing error code return statement
Change 64fec1f302ee21759bb4c6d7178a5d8a0aefe779 ("regulator:
cpr3-regulator: add support for CPRh-compliant controllers")
refactored cpr3_parse_common_ctrl_data() and introduced a bug
returning the error code after a VDD regulator get failure.
Fix this.

Change-Id: I486151ce61dab3c3f5a05daa2325386aacdd9960
CRs-Fixed: 984037
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-03-23 21:23:16 -07:00
David Collins
a6edd41539 regulator: cpr3-hmss-regulator: update CBF offset fuse check
MSM8996-Pro chips with HMSS CPR revision 1 will also utilize CBF
voltage offset fuses.  Update the fuse presence check to include
this revision.

Change-Id: I8a9cd45a961948b39d3ed4cadf1a91706041c9c3
CRs-Fixed: 980901
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-03-23 21:23:15 -07:00
David Collins
d67ab7607c regulator: cpr3-hmss-regulator: add support for CBF voltage offset fuses
Add support for the CBF open-loop/closed-loop voltage offset
fuses found on MSM8996-Pro chips.  These fuses define independent
open-loop voltages and closed-loop target quotients for the power
cluster and CBF clock which share CPR hardware thread 0.  This
independent fusing ensures optimal VDD supply voltage for all
power cluster, performance cluster, CBF corner combinations.

Change-Id: I2e309d683f853f8bd9fd4eb6d12b05c32c7aaf26
CRs-Fixed: 980901
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-03-23 21:23:14 -07:00
Osvaldo Banuelos
0514464b8e regulator: cpr3-regulator: add support for CPRh-compliant controllers
Augment the cpr3-regulator driver to support controllers with full
hardware CPR operation also known as CPR hardening. Also, introduce
the cprh-kbss-regulator driver to handle CPU subsystem specific power
requirements of the msmcobalt chip.

Change-Id: Icac84f9533fa1895ca2466a3793ddaa8b7a4c89c
CRs-Fixed: 967275
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-03-23 21:23:13 -07:00
Tirupathi Reddy
86afb76cfd regulator: cpr3: Add voltage boost support for CPR4 controllers
Voltage boost is a CPR4 hardware feature which raises the VDD supply
voltage when the number of active cores reaches a certain threshold.
It then reduces the voltage back down when the active core count
condition is no longer met. Add support to enable and configure this
feature.

Change-Id: Iccfc2ddddb6621a150235cb2c46adfd1b884dbc2
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2016-03-23 21:23:13 -07:00
Tirupathi Reddy
352c872628 regulator: cpr4: add online-core and temp based voltage adjustment support
Add support for hardware managed per-online-core and per-temperature
voltage adjustment. These adjustment methods may be used together or
independently. The configuration data for these adjustments including
the amount of adjustment for a given corner should be parsed from device
tree. Update the cpr3-regulator driver so that it writes the adjustment
values when enabled into the SDELTA hardware registers.

Change-Id: Idae9018f6a185202d38d210834ca337991fe83d9
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2016-03-23 21:23:12 -07:00
David Collins
3d5e35456d regulator: cpr3-mmss-regulator: add support for msm8996pro speed bins
MSM8996-Pro chips contain a fuse which defines the GPU speed bin.
Each speed bin supports a different GPU maximum frequency.  Add
support to read this speed bin fuse and use it to parse device
tree properties appropriately.

Change-Id: Ib9b0ba170287ae30802bdb0c64faead8c9bdee8c
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-03-23 21:23:11 -07:00
David Collins
8c8c1c14d7 regulator: cpr3-hmss-regulator: add support for msm8996pro differences
The lower Turbo fuse corner reference voltage for speed bin 1
with CPR revision >= 5 only applies to MSM8996v3 chips.  It
should not be used on MSM8996-Pro chips.  Therefore, add support
to distinguish MSM8996v3 from MSM8996-Pro and add a V3 check
to the reference voltage selection logic.

Change-Id: Iae7d49fe1b2539727160649cbf60ce57b73d639e
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-03-23 21:23:10 -07:00
Anirudh Ghayal
9be974698d regulator: qpnp-labibb: Add support for TTW on PMI8950
Add TTW configuration for PMI8950. Also, add a DT property
(qcom,labibb-ttw-force-lab-on) to keep LAB always-on in TTW mode.
Presently, this property is only required for PMI8950.

CRs-Fixed: 958285 962662
Change-Id: Iec79a6f752067d96fc62a8e9d629c39f4db5ab9f
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:23:09 -07:00