Commit Graph

1922 Commits

Author SHA1 Message Date
Manoj Prabhu B bcea50e240 SSM: Remove support for SSM driver
SSM driver is not enabled and hence needs deprecation.
Remove all the SSM driver references.

CRs-Fixed: 2268386
Change-Id: I02f82817023d2fcc6d05a2f0d7eb3aec8f60a7d5
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
CVE-2018-12010
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2020-01-06 08:40:52 +01:00
Swetha Chikkaboraiah d7b29a68da BACKPORT: ARM: dts: msm: Mount the system partition during early init
Add support to early mount system partition so that system
modules can be loaded during early init for msm8226 and msm8974.

[haggertk:] Updated msm8974{,pro}/ as well so that {h,k}lte* pick
  up this change.

Change-Id: I9d75bec6ff9bada5ab2db6de2a58e40323aa6ca2
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
Signed-off-by: Bruno Martins <bgcngm@gmail.com>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2020-01-06 08:39:53 +01:00
Ajay Dudani ea32a15a69 msm: kgsl: Fix direct references to HZ
Make the various timeout values HZ agnostic by using the proper
macros and values instead.

Change-Id: I906b948657c8873518042c7465272c98c5391e59

Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2019-08-05 14:21:54 +02:00
Kevin F. Haggerty 238a0fb5ad Merge tag 'v3.4.113' into lineage-16.0
This is the 3.4.113 stable release

Change-Id: I80791430656359c5447a675cbff4431362d18df0
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2019-08-05 14:20:47 +02:00
Francescodario Cuzzocrea e20e6a0613 Merge tag 'LA.BF.1.1.3-02310-8x26.0' into lineage-16.0 2019-08-05 11:18:51 +02:00
Francescodario Cuzzocrea 85baa390bf misc: Import SM-G900H kernel source code
* Samsung Package Version: G800HXXU1CRJ1
    * CAF Tag: LA.BF.1.1.3-00110-8x26.0
2019-08-02 15:14:10 +02:00
Zhen Kong 56d62647ad qseecom: Change to work with appsbl qseecom
Do not send app regin notification if qseecom in appsbl has
already done it

Change-Id: I81ae9a991a5d8ec582d9320e18be1b6f8e8ee7fd
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2015-11-17 16:05:24 +05:30
Linux Build Service Account a46292c6af Merge "spi: spi_qsd: Reduce latency for non-shared cores" 2015-06-18 04:08:16 -07:00
Linux Build Service Account cdd249909d Merge "msm: mdss: update panel info node with dynamic fps parameters" 2015-06-09 06:14:06 -07:00
Dan Sneddon 1bfc937a04 spi: spi_qsd: Reduce latency for non-shared cores
Resource aqquistion on a per transfer level incures
a noticable latency penalty.  This change removes
this latency by doing resource aqquisition as part
of runtime-pm on non-shared cores.

Change-Id: I112c10f52342ca7143b2286c72bba49ba7c8e49f
Signed-off-by: Dan Sneddon <dsneddon@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2015-06-08 03:45:59 -07:00
Jeevan Shriram 8c15a84191 msm: mdss: add support to parse dynamic refresh rate range
DSI panel dynamic refresh rate range varies from panel to panel.
Add support to parse dynamic refresh range from the panel device
tree. If the range is not specified, use the default range from
30 to max panel supported rate.

Change-Id: Iac5adebe187bdc7abd4e82464de81305862df794
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Baldev Sahu <bsahu@codeaurora.org>
2015-04-02 15:42:54 +05:30
Ajay Singh Parmar 276ebc1f49 msm: mdss: hdmi: Enable HDMI on 8084 MTP conditionally
Enable the HPD (Hot Plug Detect) conditionally for MTP targets
to enable HDMI on the targets with HDMI port.

Change-Id: Iada5b3e4ab50d37acb094cb68698155abf2e429f
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Signed-off-by: raghavendra ambadas <rambad@codeaurora.org>
2015-04-02 12:20:03 +05:30
Linux Build Service Account bf9f5173dc Merge "ARM: msm: Clean up sensor ADSP driver; OCMEM is no longer used" 2015-03-04 06:27:50 -08:00
Satya Durga Srinivasu Prabhala 5c8255949c ARM: msm: Clean up sensor ADSP driver; OCMEM is no longer used
OCMEM is no longer used, hence, removing OCMEM related code from the
ADSP driver.

Change-Id: I2657923d02c462380c8d57a47493d93f073a566a
Acked-by: Kevin Smith <smithk@qti.qualcomm.com>
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2015-02-26 20:12:34 +05:30
Guoping Yu 499a0d09f4 ARM: dts: msm: Enable DP/DM MPM pin mapping
It enables mpm DPSE/DMSE HV interrupt for detection of DP/DM line
transition during TCXO and/or VDD minimization

CRs-Fixed: 780259
Change-Id: I1bb5c6108dc44ca2055dd56dd5e4ae7f6b60dd3b
Signed-off-by: Guoping Yu <guopingy@codeaurora.org>
2015-02-11 18:02:30 -08:00
Anand N Sunkad e6e8d7b8dd wcnss: send GPIO strength parameter to firmware
To dynamically configure GPIO strength in firmware
send GPIO strength parameter as a part of power manager
indication to firmware.

Change-Id: Iad9351d079a61321d407ca1032add841f16c8fdd
CRs-Fixed: 765151
Signed-off-by: Anand N Sunkad <asunka@codeaurora.org>
2014-12-03 21:08:42 +05:30
Ram Chandrasekar 750153998d msm: thermal: Add thermal reset feature to KTM
Add support for issuing a thermal reset from msm thermal driver.
The thermal driver is capable of monitoring all the tsens
temperatures and issuing a reset right from the boot.
The reset temperature can be given as input using devicetree.
Failure to do so will disable this feature for the target.

Change-Id: Iaf8f1764d4e4e3abb7e65f1d4397d895d195636d
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2014-11-11 14:48:15 +05:30
Laxminath Kasam 172f93ee42 avtimer: msm: allow driver to register to SSR framework
Sub System Restart[SSR] framework allows driver to handle
unexpected crash in middle of operation.
Also, adding support clk_div dtsi entry to calculate
avtimer_lsw value.

Change-Id: I521e3c010dadd00a06a0fe8998a1759b2eb81b55
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2014-10-30 22:27:18 -07:00
Linux Build Service Account 957b0286db Merge "leds: leds-qpnp: add blink functionality support for GPLEDs" 2014-10-21 15:41:03 -07:00
Abinaya P 875425cd0d leds: leds-qpnp: add blink functionality support for GPLEDs
Existing implementation does not support blink feature for
GPLEDs. Blink functionality is required if user wants to
produce fading effects using GPLEDs. Hence, adding blink
functionality to GPLEDs.

CRs-Fixed: 723698
Change-Id: I87886469b05cf75986e89ebc3f28d9a6a386401f
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2014-10-20 17:01:41 +05:30
Siddharth Bhal 9b7f05237a wcnss: add condition to check for pronto ver3 hardware
Add support to check for pronto ver3 hardware is present
by reading a device tree entry

Change-Id: I01cd71ac6c00b6c1e4c5ea46b3f3c0b57a0dbd95
CRs-Fixed: 737209
Signed-off-by: Siddharth Bhal <sbhal@codeaurora.org>
2014-10-18 16:35:30 +05:30
Shivaraj Shetty 23fe47a488 msm: mdss: Add support for checking panel status through register read
ESD feature may need to check the status of the panel by reading specific
panel register depending on the panel. Add support for ESD status check
through status register read and to configure the method used for checking
panel status through the panel dtsi entry.

Change-Id: I13b11362722eb2ad379162944eafff04ec01d1cb
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
2014-09-10 15:30:25 +05:30
Shivaraj Shetty 4aa78d001d msm: mdss: Add support to enable esd check through dtsi entry
Add support to enable or disable esd check through panel dtsi
entry. This will help in enabling the feature only for those
panels which support BTA.

Change-Id: I4ef85bb2e78b133dd9577ac3d6788e46b34fe761
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
2014-09-10 15:15:20 +05:30
Mao Li 1ff1376a87 leds: leds-qpnp: allocate ordered work queue for led
From user space, the call procedures of red led blink are as
below:
1. turn off red led.
2. blink red led.

Each above step will be transitioned from user space to kernel
driver and trigger a led WORK. The order from user space is
very important because if the step 2 completes before step 1,
then the red led will be turned off, while the user wants to
blink it.

On kernel version 3.4, below sequences will cause the order
from user space fail:
1. CPU0 schedule a led WORK on system_wq, which is to turn off
   the red led.
2. CPU1 schedule a led WORK on system_wq, which is to blink the
   red led.
3. Although the first WORK is queued before the second WORK,
   both of them can executed concurrently on CPU0 and CPU1.
4. CPU0's workload is very heavy because it will handle almost
   all the hardware interrupt, so it is probably that the first
   WORK thread is scheduled out for some time. At that moment,
   the second WORK can complete faster than the first WORK.
   This finally cause the red led is first blinking then been
   turned off.

To solve this issue on Kernel version 3.4, we can create an
ordered workqueue which will promise us that the same led WORK
will not be scheduled on different cpu and cannot be executed on
different cpu concurrently.

On kernel version 3.10, because the default system_wq has
already promised the concurrency of the same WORK, so we don't
need to use ordered workqueue for led module.

Change-Id: I23fda20f2951bfcebb7ce7c9ecea542435496efe
CRs-Fixed: 714466 703170
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2014-08-27 12:07:33 +05:30
Chunmei Cai f094d07992 leds: leds-qpnp: Add flash_wa regulator support in flash led driver
Add flash_wa regulator support in flash led driver. The regulator raise
the SMBB over temperature threshold before flash enabled, and restore to
default setting after flash disable.

CRs-Fixed: 697457
Change-Id: I66f8189f62a875dd549377b552bf4a8f40798f31
Signed-off-by: Chunmei Cai <ccai@codeaurora.org>
2014-08-17 23:38:22 -07:00
Chunmei Cai 661a7cdfa4 power: qpnp-charger: Add a regulator device to control flash led WAs
Flash led relies on SMBB to supply the 5V drive voltage. Add a regulator
device in qpnp-charger driver to support flash related workarounds in
SMBB.

While at it, add a SMBB temperature threshold workaround in the
regulator device. On certain devices SMBB/SMBBP over temperature
happened at default settings before flash module start thermal derating.
Raise the SMBB over temperature threshold when regulator enabled, and
restore to default setting when regulator disabled.

CRs-Fixed: 697457
Change-Id: I7b6003caebf23ea8662a21bb16f9095d1db0e7bb
Signed-off-by: Chunmei Cai <ccai@codeaurora.org>
2014-08-17 19:43:39 -07:00
Dipen Parmar ba87458999 hwmon: qpnp-current: Fix parameter configuration for IADC
Removing redundant parameters which are not applicable
on the IADC peripheral.

Fix the issue with "fast_avg_setup" and "decimation"
parameters to configure correctly as per channel
configuration.

Change-Id: Idfe823effc6255b57e31f37621971aab29f08020
Signed-off-by: Dipen Parmar <dipenp@codeaurora.org>
2014-07-28 18:15:32 +05:30
Sandeep Panda d87db9ae68 msm: mdss: Add support for dynamic mode switch
Add support for switching between dsi command mode and
video mode and vice versa at runtime. If the panel is
configured in video mode, it would be power efficient to
be able to dynamically switch to command mode on need
basis. This change adds the support by providing an IOCTL
to switch between video mode and command mode at runtime.

Change-Id: I23f0cadc0f76e0b4406c8156c3cca40782686bf0
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
2014-07-02 04:15:27 -07:00
Linux Build Service Account 5a6ca02172 Merge "avtimer: Update avtimer driver to parse driver tree data" 2014-07-01 08:52:58 -07:00
Linux Build Service Account 83e19a8b7a Merge "msm_serial_hs: Manage wake unlock delay" 2014-06-30 04:55:16 -07:00
Linux Build Service Account 1575cdaceb Merge "msm: mdss: Share minimum width and height limitations on panel ROI" 2014-06-29 12:14:16 -07:00
Linux Build Service Account 7b51cf60d2 Merge "msm: mdss: dsi: Share panel alignment restrictions through sysfs node" 2014-06-29 12:14:14 -07:00
Jeykumar Sankaran 423b750968 msm: mdss: Share minimum width and height limitations on panel ROI
Add panel ROI limitations on minimum width and height values
to the panel info sys_fs node.

Change-Id: I3297beb20e7f207a296e6cec114daf2305324898
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2014-06-23 17:22:21 -04:00
Jeykumar Sankaran 0e68156525 msm: mdss: dsi: Share panel alignment restrictions through sysfs node
Read panel alignment restrictions on left, top, width and height values of
the updating ROI from the dtsi file and share through sysfs node.
Framework needs these details for configuring MDP for certain
features (e.g. Partial frame update).

Change-Id: Ibe6973b721bb20120a6d7a217bad2d0d159cc836
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2014-06-23 17:19:44 -04:00
Linux Build Service Account b1f8e2c919 Merge "power: qpnp-charger: add support for external current sensing OVP" 2014-06-21 21:58:13 -07:00
Gopikrishnaiah Anandan f54484e32a avtimer: Update avtimer driver to parse driver tree data
LPASS exposes registers from which timestamp can be
read by clients for audio & video synchronization.
Change adds to retrieve the register address of AV
timer in LPASS passing from driver tree data.

CRs-fixed: 677082
Change-Id: Id7cf3455e22ddc27f5350a7a37c3b40d44eb0873
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2014-06-18 20:41:29 -07:00
David Keitel cd2e10288f power: qpnp-charger: add support for external current sensing OVP
On some MSM8x26 platforms, board configurations exist which utilize
a current sensing OVP to allow adaptive input current limiting
to accurately measure the current flow through the external parallel
USB path.

Add support for this external OVP part by allowing an MPP to be
configured as a sense line and exposing the converted current
reading via a module parameter which is accessible to userspace.

CRs-Fixed: 651261
Change-Id: Idb47430476c1c19f58a4836a15841b95187baf77
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2014-06-17 10:05:27 -07:00
Evgeniy Borisov c654111002 msm: camera: Adding interface for power operations in actuator driver
Support for actuator power operation.
- add vreg data parsing from property.
- add interface for power up and down.

Change-Id: I809e23e27d119635e85b565fa6ea2f045b2afdc1
Signed-off-by: Evgeniy Borisov <eborisov@codeaurora.org>
2014-06-12 00:59:33 -07:00
Linux Build Service Account 22fad13042 Merge "msm: thermal: Add support for cpu temp limit recommendation for SoC" 2014-06-06 09:27:05 -07:00
Linux Build Service Account fe392b3e87 Merge "msm: mdss: Add support to configure the video mode interleave bit" 2014-06-06 07:15:45 -07:00
Linux Build Service Account 0b503455aa Merge "wcnss: LDO change for WCNSS" 2014-06-05 17:16:47 -07:00
Manaf Meethalavalappu Pallikunhi bd4d110736 msm: thermal: Add support for cpu temp limit recommendation for SoC
Add support in KTM to get SoC parts info by reading appropriate
efuse bits and recommend default cpu temperature limit based on
efuse value temperature map to userspace through sysfs interface
'/sys/module/msm_thermal/default_cpu_temp_limit'. Efuse data
to be read such as address, row number, starting bit number
of the row, number of bits for identifying parts etc, default core
temperature and efuse temperature value map are read from dt.
The default cpu temperature information is exported in the format
<temperature in degree celsius>.

Change-Id: Icbf43c3fd56e95d49a886d309e613d2fe146a506
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2014-06-03 09:31:12 +05:30
Linux Build Service Account 7888c0cdea Merge "cma: Allow option to use strict memblock_reserved memory" 2014-06-02 12:08:22 -07:00
Hardik Kantilal Patel 880805edcc wcnss: LDO change for WCNSS
Send LDO notification through SMD channel to FW which use
to update the pmic pam map.

Change-Id: I7a893570489e65d92df65728d09fd20e61d6b0fc
CRs-Fixed: 660361
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2014-05-28 12:50:30 +05:30
Vicky Sehrawat 8a63ce79b2 arm/dt: msm8974: Add support for voice svc driver
Add a new device that can be used by the voice svc
driver to allow userspace clients to send IOCTL
commands

CRs-fixed: 662362
Change-Id: I02c7113d0e3b50e68b89e76d60d5f807cb140971
Signed-off-by: Vicky Sehrawat <vickys@codeaurora.org>
Signed-off-by: Karthik Reddy Katta <a_katta@codeaurora.org>
2014-05-28 10:12:48 +05:30
Siddhartha Agrawal 1c8be49af7 msm: mdss: Add support to configure the video mode interleave bit
Some video mode panels need to have the command mode
operation interleaved on the last line of the video stream.
Add support to enable this register via a panel dtsi property.

Change-Id: I3dfe36816d7602da4f66d09ea23ac9c6185f9858
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
2014-05-27 14:49:35 +05:30
Dilip Kota 1d1e6459e9 msm_serial_hs: Manage wake unlock delay
Current implementation of wake locks wait for
around 500msec while releasing the wakelock. This
prevents the system suspend for that much time after
the rx operation is done to ensure that all the data
delivered to the client before system suspend.
But some clients may take care of this in their
implementation. In this case uart driver no need to
wait before releasing the wakelock.
Hence, given the control to the client as a dtsi entry
to take decision on waiting before releasing the wakelock.

Change-Id: Ie32a0b76899963e7700ba378906fa4f9b3fa3ba4
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Dilip Kota <c_dkota@codeaurora.org>
2014-05-23 15:47:31 -06:00
Abinaya P 04df896b58 leds: leds-qpnp: provide pwm period when leds are set to LPG mode in DT
In the current design, if MPP-controlled leds or RGB leds are configured
to LPG mode in the device tree, the PWM period value is not provided.
This will result in "pwm_cfg->pwm_period_us" being assigned to zero
since no PWM period value will be read from device tree. As a result,
qpnp_pwm_init() returns error, which in turn results in failure of
qpnp_mpp_init() or qpnp_rgb_init() and finally resulting in failure of
qpnp_leds_probe().

So "qcom,pwm-us" property should be provided in DT for the above case and
the property parsing needs to be implemented in the leds-qpnp driver.

Change-Id: Ic32833ea4e685939148e38cdba078391936f8efb
CRs-Fixed: 667825
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2014-05-22 15:56:39 +05:30
Laura Abbott 6bc7adb0da cma: Allow option to use strict memblock_reserved memory
Despite all the performance optimizations, some clients are
still unable to use CMA because of the allocation latency.
Rather than make those clients use a separate set of APIs,
extend the CMA code to allow clients to keep the memory out of
the buddy allocator. Since the pages never actually go to the
buddy allocator, allocation and freeing is only based on the bitmap
allocator to find the appropriate region.

Change-Id: Ia31bb1212fd7b19280361128453c8d25369ce592
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2014-05-19 21:57:33 -07:00
Linux Build Service Account 1d19332f16 Merge "msm: mdss: expose mdss tearing check parameters" 2014-04-25 15:16:25 -07:00