qti_flash_led_prepare() API is used by flash clients (E.g. Camera) to
query maximum current available for flash. Add support for this API
which initially returns maximum current that is supported for flash
LED module (2000 mA). Also, add a sysfs parameter under switch devices
to show max available flash current.
Change-Id: I3aed009a0d7e0f34a6d05a45af34fcd0f37a6fe7
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Enable the mem-buf driver on Lahaina for QGKI configurations.
Change-Id: I97fd90588130d0b18efba946ece5e72926904e20
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Add the initial support required to share memory buffers
between VMs. This driver exposes an interface to userspace
clients to request memory to be allocated from another VM,
and added to the current VM. The VMs communicate with each
other via the use of the hypervisor message queues, as well
as utilize various facilities offered by the Haven resource
manager to manage memory that is transferred from one VM
to another.
Change-Id: I3181a1b14e61db30ed6b86752750722e24fd62e0
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
When set_rate is called on unprepared clocks new vdd_level
requirement is not cached, which leads to incorrect votes
when later clk_prepare is called. Clocks may not be prepared
when clk pre change rate is called for set_rate change request,
thus cache vdd level and only apply vote during clk prepare.
Change-Id: I54d9a3c75034cd9e67e683c3f71088f2c7cd3db1
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
The device_caps field must be set for all but subdevs.
Fill rtc6226 device capabilities in video_device.
CRs-Fixed: 2622236
Change-Id: I3645e22dcc2f8d740385f3d661af2603fc594c2f
Signed-off-by: himta ram <hram@codeaurora.org>
Adding force no flush and invalidate flag for rpcmem_alloc
and respective attributes for remote_register_buf_attr.
Skip flush and invalidate if corresponding flag is set.
Change-Id: I5b872d1f22b082716a1fe715375c66a212fedbac
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
Use unsigned int for counters and maintain consistency when using
in the datatypes.
Change-Id: Ib4f15d3e0a5971da1beaeb57dc1b827e60c94d0a
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
Currently before staticPD on QDSP is up, remote mappings are
being removed. Instead, remove the mappings after staticPD is up.
Change-Id: I10a37b4c840dbd830f7b8897aabbf8681329b74c
Acked-by: Vishnu Karthik D <vikarthi@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
Enable FSA driver on Lahaina to support analog type-c
headset.
Change-Id: Ia95383641030c9ff56300c975ffd35a96abcdac5
Signed-off-by: Meng Wang <mengw@codeaurora.org>
When WALT and CFI are enabled, weak symbols which points to NULL
are causing issues like global structures becoming NULL due to
compiler/linker treatment of these symbols.
Provide proper stub definition for all such weak symbols to avoid
issues until compiler/linker gets fixed.
Change-Id: I3dce047393521681e663a0ad254b07e9769e0265
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
MEM_NOTIFY is useful for sending VMs notifications about
memory that has been shared with them, as well as sending
owners of memory an indication that a VM has released memory
that they own, so add support for it.
Change-Id: I65bf0d000c8b3850f04c85eec70692728314b26d
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Relying on hyp_assign for sharing memory is not sufficient,
as there are certain cases where hyp_assign is not applicable
for sharing memory (e.g. I/O memory). Add support for the MEM_SHARE
and MEM_LEND operations for sharing/lending memory with other
VMs respectively.
Change-Id: I7de502385a045f073540fa30c164b3410f6b5bd0
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The MEM_ACCEPT call is required for VMs to map the
memory represented by a handle into their RM managed
page-tables, so add support for it.
Change-Id: I669ebd8298af405ca586a5721b26c4e19ffe39aa
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>