receive notification from ucsi glink,
and read orientation from gpio which output from pmic.
Change-Id: I076829ad74423b49359271c9f9a3e5d5b3898be9
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
Currently gdsc_disable() can return a value of 1 upon
successfully disabling a GDSC if it has a parent supply.
Correct this so that 0 is always returned on success.
Change-Id: I37ade1bf62b4e8b2f3446b9072674935579d75dd
Signed-off-by: David Collins <collinsd@codeaurora.org>
Add SW USB mode support for TMC to use software interface
to send data from TMC to USB.
Change-Id: I8e4dee6cfd037d8bb81ea27ad2ed996e9980720c
Signed-off-by: Shaoqing Liu <shaoqingliu@codeaurora.org>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Fix uapi header to work with KERNEL_HEADER_TEST and UAPI_HEADER_TEST.
Change-Id: I1ad9ded45b95f9abf3a5543f5aa21cfe7541a9cd
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
When SMMU works in bypass mode, set has_iommu to false. ETR
can use SG mode.
Change-Id: Ic7a6814cace92098473e4b5302408034e662058d
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Will aid debugging lockups in perf_event_read_value()
track the cpu being ipi'd.
Change-Id: Ia948f31bb2d91bca6144c0c50f8f66bd9c1459fe
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
QRTR needs to be functional before service locator is up. Hence,
add a soft-dependency on the QRTR to ensure this happens when
these drivers are built as modules.
Change-Id: I1919ffc03f8eb215c21724a46c1250787ba2067c
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
This reverts commit 624d012216. KGSL driver
requires CONFIG_QCOM_ADRENO_DEFAULT_GOVERNOR to be set to msm-adreno-tz
in QGKI builds. CONFIG_QCOM_ADRENO_DEFAULT_GOVERNOR is set to the required
value for GKI and QGKI builds by the KGSL Kconfig.
Change-Id: I63b447409c7446376744bd5d9d7c850f0e7dcdc1
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
During smmu probing same debugfs file is being created for each probe.
Move debugfs file creation from smmu probing to device init call.
Change-Id: Iebb6450744d507278d4f5c3283638399987d2a29
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
Add code to update cnss soc info from the info
received as part of target capability response.
Change-Id: I6b88192d772dd30a8aaeb90725141c7c38b2c50c
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
In order to support early merge of code, a vestigial definition for
qcom_smem_get() was added. This was accidentally merged in. Let's remove
it and allow the RPMH master stats to be read from the memory.
Change-Id: I89dc45c6edd8fb0df01416f7d9fb95feb1dfacc2
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
On QRD redriver will use this information to configuration.
Change-Id: Icf077136fbc4473e58e45ce55ca542f99233d506
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
Add support to enforce proxy consumer requests defined in device
tree for rpm-smd-regulator devices. These can be used to ensure
that regulators are not accidentally disabled or scaled down
before all consumers have had a chance to make their own requests.
Change-Id: I25569808b2026f800f3a43124cf1bf2d8b58c14b
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Remove all exported functions as clients need to use only
functions exported from core regulator framework.
Change rpm-smd config to tristate to ensure it can be
loaded as a module.
Change-Id: I3f72a19b23fb2b97e0a13fd93fad5eade15ff535
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Replicator register value could be reset when it's disabled and
clock is off. Reset the register to all ports disabled when enabling
it first time to avoid all ports to be enabled by default.
Change-Id: I29973d38eb7f836fabe22757f98db62afbe6a4c3
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Add snapshot of rpm-smd regulator driver from msm-4.19.
This snapshot is taken as of msm-4.19 commit 15bff51c0329
("smcinvoke : Add locking to shared variables").
Change-Id: I96cd163e490f811c0564dbdf30fb250156cffc85
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
On QRD device we want to read pmic CC output through gpio function,
thus request and release phy pinctrl state here,
it allow other function driver request gpio pin state.
Change-Id: I9901e3019656691d1f4ae17cd55ef2cd6784a330
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
Set auto resonance when loading effect according to the effect
settings.
Change-Id: I8dc9ac99a57e396d67da28ae7b1eb31813ab3362
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Currently, nvmem device is used to store closed loop brake settings. If
nvmem-cells is not specified for closed loop brake, then nvmem device
can be NULL. For such case, skip updating closed loop brake settings by
not writing to the nvmem device.
Change-Id: I18d455814f3731af519949f21a3a553bd1692548
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Restrict untrusted third-party applications to only unsigned PD
offload on the remote subsystem. This is done by comparing PID at
the time of process create with the one stored during device open
as the fastrpc device will be opened by DSP HAL service on behalf
of third-party applications.
Change-Id: Ibaead21a429e6bffe8f0808eebf93bf71d1db7ab
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
Remove duplicate timesync sysfs functions as they have moved to
a different file.
Change-Id: Ia1988f32eb6bf16914564977d09ba7ee81022335
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Add support to request time from device using the asynchronous
method in ticks and microseconds using sysfs entries.
Change-Id: Idb661ad6db9f1cc4cd594c96755986ece4961b03
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Enabling "timer" LED trigger allows for LED blinking to occur with
user-defined intervals of on and off time. This is achieved by writing
to "delay_on" and "delay_off" parameters under the sysfs directory of
the LED.
Change-Id: I313288a455088dee435ce878edd8bd5000a3b40e
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Make unregister driver work unkillable to avoid WLAN host driver
handling issues after it is killed by platform reboot or shutdown.
Also add proper handlings and checks for platform reboot or shutdown
to avoid unnecessary asserts for calibration cases.
Change-Id: Ide137dc351ca48ef23573abb325db011b8460f54
Signed-off-by: Yue Ma <yuem@codeaurora.org>
As of commit <2e72d8932e> (Merge android-5.4.24 (ce5de62) into
msm-5.4) SDCARD_FS was disabled via gki_defconfig. Hence, re-enable
it in Lahaina's configurations for backward compatibility.
Change-Id: Ib71fbbc45c4564f6f3ffec8f318efd065c542820
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
This change add initial board config support to enable build 32 bit kernel
for SDXLEMUR.
Change-Id: Ib5f1d06b33ba0264242a76572abc862bbe1daeab
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Allow CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE_NAMES to specify
a space separated list of dtbs to append to the zImage,
and name the resulting file zImage-dtb.
Change-Id: Ied5d0bafbd1d01fc1f109c15c4283de7029903c9
Signed-off-by: Colin Cross <ccross@android.com>
Git-commit: 9bb8731d87eba59fe7f0e504f11f5dc995ae1166
Git-repo: https://android.googlesource.com/kernel/common
[jshriram@codeaurora.org: Fixed minor merge conflicts]
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Allows a defconfig to set a default dtb to concatenate with a zImage
to create a zImage-dtb.<dtb name>.
Change-Id: I34b643b1c49228fbae88a56e46c93c478089620d
Signed-off-by: Erik Gilling <konkers@android.com>
Git-commit: 23a70d4e7b8864cf405f997d3608de65a82cf87d
Git-repo: https://android.googlesource.com/kernel/common
[jshriram@codeaurora.org: Fixed minor merge conflicts]
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>