BAM (DMA) can transfer the data of any length or alignment.
Currenly we are using the BAM only if SDCC transfer size
is less than FIFO_SIZE (64 bytes) and only if it's in multiple
of FIFO_SIZE.
As BAM doesn't have any limitation on the minimunm size of the
request, we can use the BAM even for transfers of less than
FIFO_SIZE but performance profiling has proved that using PIO
mode (no DMA) for transfers <= FIFO_SIZE is better compared to
BAM mode.
So this change uses the BAM only if transfer size is greater than
FIFO_SIZE but removes the restriction that transfer size must be
in multiple of FIFO_SIZE.
Change-Id: I41e4e43303200aac3860e33c96aeb78caf6031b5
Signed-off-by: Krishna Konda <kkonda@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Once core0 comes out of the PC, it uses the IPC1 interrupt to wake up
the core1 out of the sleep(GDFS). Since this interrupt is intended to
core1, move the clearing of this interrupt from core0 to core1 context.
Remove the masking and umnaking of IPC1, as no other driver is going
to use this interupt.
Change-Id: I2b3919a69e4c6c0d8f1eec60b3af812f42ba7cd7
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
On NT35510 panel, the display is 180 degree rotated right
now for video mode. Change panel init command in the
init sequence for Video mode for proper display.
Change-Id: I90f9c3e8e689a141c7c606be756c319bb7de1b3f
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Add new board file for copper gpio configuration and
add gpio configuration for UART on BLSP8 for RUMI.
Change-Id: I4c5b846c448fed8cea079f6a2daa9e5b2dcceff0
Signed-off-by: Sathish Ambley <sambley@codeaurora.org>
- Reorganize camera io functions by putting all the
common APIs in the util file.
- Move all the hardware
specific IO files into the io folder.
- The io functions used by the camera driver are named
as msm_io_* even though they are camera specific.
Rename them to msm_camera_io_*.
CRs-Fixed: 350209
Change-Id: I5be9a000ee7f9506ae921233196f3507a9ebb095
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Provide sub-operation for MSMFB_MDP_PP IOCTL to configure QSEED tables.
QSEED is used for smoothing, sharpening and scaling of content on video
pipes in MDP.
Change-Id: I069d9c793553cb4c400973690ebd7f8d3bcc1c68
Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org>
The core clocks for the msm_iommu.1 (VPE) and msm_iommu.4 (ROT)
devices were missing from the 8x60 clock table. Add them so that
they may be enabled.
Change-Id: I72ba8a705f9157fc0dc0f69d395b6801804e54fa
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Add GSBI9 device related interfaces and their configuration
i.e. clock, ADM, GPIO and IBS sleep mechanism. GSBI9 would
be used with 8960 Fusion 2.2 for Primary IPC.
Change-Id: I6c9070080b2e3109c41b9968db46b93154b15983
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Code executing in process context should use hci_dev_lock_bh()
and hci_dev_unlock_bh() instead of hci_dev_lock/hci_dev_unlock
when dealing with the hci_dev lock so that it cannot be
interrupted while the lock is held.
Change-Id: Iebc2da96837db29ab4911b0429399e3e9ba4b93e
CRs-fixed: 350532
Signed-off-by: Archana Ramachandran <archanar@codeaurora.org>
Add support for "set all message masks" and "disable logging"
requests.
Also, avoid sending event mask update when not required. DIAG driver
propagates event mask updates, when a remote peripheral boots up.
Sometimes, the event masks are not even set yet, when a remote
peripheral comes up. In such cases, there is no need to send
mask updates.
Change-Id: I9bc83e7479e15ba7dc118f113f732a74aa0f487a
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
Change the vmalloc allocation name to something more appropriate since
we do not allocate memory using vmalloc for userspace driver. We
directly allocate physical pages and map that to user address space. The
name is changed to page_alloc instead of vmalloc. Add sysfs files to
track memory usage via both vmalloc and page_alloc.
Change-Id: I239087435f4599b62b7da71ecea0a5878cda5037
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
By turning off CLK_MP3_2 clock (which drives haptics)
in suspend we can save 4ma power consumption. Clock
is turned off by setting divisor to 0.
Change-Id: I48ae9f353584ad8c1d97826b2ea0eaf00a0d19b4
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Use clk_prepare_enable and clk_disable_unprepare instead of
clk_enable and clk_disable respectively.
CRs-Fixed: 351340
Change-Id: Ifb2a9405b8f445a90277d2fade9ab33f5becbd6e
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
The actuator functionality is the same for different camera
modules. So a single actuator driver module is supported.
The variation is because of actuator control parameters,
which are made available in user space actuator driver
for better integration with tools used for autofocus
tuning.
Change-Id: Ibbae2ef426b570c59ec3796ac56abcf05af28259
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
Add a simple helper function to make it easy to get the platform device
data from a kgsl_device pointer.
Change-Id: Ic0dedbad334aa86e8c8fe4150303bca494693778
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
If control packet size is a multiple of 64b and is smaller than 4kb,
send after it a zero-length packet to the host.
CRs-Fixed: 352523
Change-Id: I44a97cacf7d92d66c91f81405802f7d1cf5f5285
Signed-off-by: Anna Perel <aperel@codeaurora.org>