Some viewers report axes orientation different
from others. Correct sensor axes orientation for
certain viewers depending on certain fields in the
IMU data.
Change-Id: I4ace679cd5e147817185bcd878db4188569554fe
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
External viewer mag axis is different from ACCEL and
Gyro, we need change it to Android coordinate system.
Change-Id: I90b8427b3cbd176f5daea30e5ff01991ca146ae3
Signed-off-by: Kedi Xu <kedix@codeaurora.org>
To improve read calibration data latency use a minimum
but enough timeout value. To improve consistency in
controlling IMU stream use a different value.
Change-Id: Iff196d055f0202e642de218020605f7797e3ae4a
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
To improve read calibration data latency use a
minimum but enough timeout value.
Change-Id: I629ae61ca5005d0f3d0a48e9780ad0940a1ca860
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
Add support for 128 byte format to comply
with optimized viewer requirements.
Change-Id: Icfa7ca1cadf3f18533912f403af50532eea47c60
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
Adding IOCTLs to give userspace control over to start / stop
IMU streaming and read calibration data from the external
device.
Change-Id: Iee5103e3a13cc31e4afcac13284e3594f49735bf
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
HID driver to handle sensor data from external device
and writes it in to shared memory. Sensor data includes
temperature, accelerometer, gyroscope, magnetometer data.
Change-Id: I06a897166a1106889c60bda0d8f8f84684032d0e
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
In the GKI configuration, the arm-smmu-mod module will already
be present as a GKI module (i.e. the module will be generated from
the GKI ARM SMMU source). As such, there is no way to distinguish
between Qualcomm's ARM SMMU module, and the GKI ARM SMMU module,
since they have the same name. Thus, rename Qualcomm's ARM SMMU
module to distinguish between the two.
Change-Id: I6a41d3d518a800da4d560c8b8d2b8c48f1866d9a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Some implementation's of the 'cat' command pass the
absolute position of the file-offset. In the current
implementation of 'regmap_data_read_file' this leads
to dumping all the registers from offset 0.
Avoid this by quitting the read loop if the file-offset
requested is lower than actual read-offset.
Change-Id: I7c6c31958e92f16387bf4cb5de7fbf4572fcce21
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
This enables the QTI specific ufs core driver.
The upstream core driver is skipped when enabled.
Change-Id: Ia2c3932aa627245495d1ff70027c2f9f9c3a5bc0
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
This patch fixes a NULL pointer dereference by checking
if vccq & vccq2 are valid before dereferencing it.
Change-Id: Ieb5aefab77428adbbbbf892f2be1a9942d7c3851
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Use the dev_iommu_fwspec_get() accessor, instead of directly
accessing the device structure for the IOMMU fwspec, as well
as remove an unnecessary forward declaration.
Change-Id: Id09202bd468bddbf8bdf194513fda34b59756fba
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
When the ARM SMMU module is unloaded, the exit routine does not
fully clean-up after the initialization routine, as it leaves
the TBU driver registered. Thus, unregister the TBU driver
when unloading the SMMU module.
Change-Id: I536f756dab7eebeffe0dd907629feed6657a2532
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The remove() callback for the ARM SMMU driver should ensure
the SMMU devices that are being registered are no longer
visible to the IOMMU framework, so remove the devices
by invoking iommu_device_unregister().
Change-Id: I87dd7b4619e5b26b7eed64b04e3716f3b9c417c5
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
ipa_disable_apps_wan_cons_deaggr() has different declarations when
CONFIG_IPA or CONFIG_IPA3 are not set. Thus fix the declaration to
align with CONFIG_IPA or CONFIG_IPA3 enabled one.
Change-Id: Ic09cac2484c9cfbcd0833583c05c6fc19a3c2aed
Signed-off-by: Jia Ding <jiad@codeaurora.org>
This reverts commit 75afa532e7.
Too many things rely on cmd-db to be built in to allow it to
be built as a module.
Change-Id: I317ba89a7d3c9f88832e73834b65bcccac79bbe1
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
The ability to vote IPA clock from user space is now required. Given
this, voting for IPA clock can now be done via an ioctl. These changes
implement the ioctl.
Change-Id: Id7e02678e96da98f2a17f35e7f6736fba39ca990
CRs-Fixed: 2592003
Signed-off-by: Perry Randise <prandise@codeaurora.org>
The ability to vote IPA clock from user space is now required. Given
this, voting for IPA clock can now be done via an ioctl. This header
file supports the ioctl and can be independently propagated.
Change-Id: I742a7950f9fc53f17cb6f210f2b7f06ade842011
CRs-Fixed: 2592003
Signed-off-by: Perry Randise <prandise@codeaurora.org>
possibility of OOB access on device->response_pkt in
__response_handler. for e.x if msg queue contains 1000
messages and all 1000 were read and queue is empty.
So __get_q_size api will return zero and _iface_msgq_read
will go in an infinite loop, even if packet_count
== max_packets.
Change-Id: I8e64ff70d5bcefb52d66bfea121f3febf4728384
Signed-off-by: suchawla <suchawla@codeaurora.org>