Commit Graph
36 Commits
Author SHA1 Message Date
kankan17 9dc028b84a hawao: Flash compatible
Distinguish IIC Flash Supplier.
1.dts add distinguish-flash-supplier=<DevAddr,FlashIdRegAddr,FlashId>
2.ioctl query cap,distinguish flash.
3.if cci read FlashIdRegAddr is FlashId,this is sencondary,flash_supplier return 1.
4.if don't find distinguish-flash-supplier,flash_supplier is default

Change-Id: Ia3f82971fa12aaf1608f576310a5221474ef21e6
Signed-off-by: kankan17 <kankan17@motorola.com>
Reviewed-on: https://gerrit.mot.com/2171912
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <chenlj26@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key
2023-05-31 16:59:32 -03:00
huangdra e8e1335e7c cam: Add actuator standalone diver for vibrator.
To eliminate the resonance noise during system vibrator vibrating, set actuator to
DAC 154 position, then the resonance noise can be obviously improved. To achieve
the combination between vibrator and camera AF actuator,we implement:
- Actuator separately control during camera power off.
- Actuator policy to avoid vibrating disturb normal camera AF.

Change-Id: Ibf4aa73266b44e9f92275b5e9d1fb8dfd5d44f78
Signed-off-by: huangdra <huangdra@motorola.com>
Reviewed-on: https://gerrit.mot.com/1835501
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Ji Zhao <zhaoji1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Submit-Approved: Jira Key
2023-05-31 16:59:32 -03:00
zhouguangcheng 5e83112dad guamna: Add eeprom operation READ_LOOP
1. add eeprom operation READ_LOOP for hi556
2. remove eeprom name

Change-Id: I65cc19d8956c5bbeb9a0db4f9051d7a8e4b21c51
Signed-off-by: zhouguangcheng <zhouguangcheng@longcheer.com>
Reviewed-on: https://gerrit.mot.com/1621339
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key
2023-05-31 16:59:32 -03:00
zhouguangcheng c26e6021fd guamna: add eeprom name and add hi556 otp read method
1. add eeprom name
2. add hi556 otp read method

Change-Id: I371baf40b5a7b77788e5bbe98b37e7cb82085639
Signed-off-by: zhouguangcheng <zhouguangcheng@longcheer.com>
Reviewed-on: https://gerrit.mot.com/1599774
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key
2023-05-31 16:59:32 -03:00
Nirmal Abraham 5c1776ce70 msm: camera: update copyright markings
Update QUIC copyright for new code changes.

CRs-Fixed: 3118778
Change-Id: I9e3631cc86c5e10e4e2020d4a9b2264ea282d437
Signed-off-by: Nirmal Abraham <quic_c_nabrah@quicinc.com>
2022-02-07 01:26:14 -08:00
Vikram Sharma c4a3b49efc msm: camera: ope: Increase max bl limit and max stripe to process
Increase “OPE_MAX_CDM_BLS” to 32 from 24 and MAX_STRIPES to 64 from 48
to process 108M frame.

CRs-Fixed: 3082993
Change-Id: I9e3631cc86c5e10e4e2020d4a9b2264ea282e437
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
2022-01-18 10:53:31 +05:30
shiwgupt 1540124a6e msm: camera: flash: Add support for I2C flash
- Add Regulator power up for I2C flash
- Add GPIO support in probe call for I2C flash
- Add flash type in query capability call of flash.

CRs-Fixed: 3660915
Change-Id: I64ecba3fa4176972e819b11f2a65340c24f85d4f
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-06-21 21:33:47 +05:30
Rishabh Jain 9466904129 msm: camera: ope: Add support to dynamic switch pix_pattern
Add support to dynamically switch pix_pattern of read clients
based on data received in each request.

CRs-Fixed: 2811530
Change-Id: Icb3ebd33cae59b8db87bc0011d6560492ad29c3a
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
2020-11-11 09:36:04 +05:30
Shravya Samala 5db1153338 msm: camera: isp: Added CSID recovery mechanism
CSID is not able to recover from the fatal errors like lane
overflows, continuous unbound frames and ESD errors. To recover
from such errors, it is necessary to restart the sensor as
just starting the ISP hw do not make any change as the sensor
can still be in bad state.
This commit implements tasklet based CSID recovery mechanism.
On detecting an error in CSID interrupt, tasklet is scheduled
which in turn will call the ISP hw manager to notify the ISP
context, from here a notification is sent to CRM to send a
message to trigger full recovery. This full recovery includes
the sensor release and start.
This feature is debugfs based. Based on need this can be turned
on.

CRs-Fixed: 2674109
Change-Id: I7e4612e9bd24a20691146ae0b9dc6f77ccbc0714
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2020-07-17 04:51:45 -07:00
Alok Chauhan b2a50ca535 msm: camera: common: Define debugflag to allocate usecase info
Define debug flag to allocate usecase info for debug purpose.
This flag can be used to get usecase buffer index.

CRs-Fixed: 2707314
Change-Id: Iffacdb48f77ec6907b8070d4c19eb1c56be30f14
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2020-06-10 21:42:40 +05:30
Ravikishore Pampana 2788edf51c msm: camera: tfe: Support the RDI bus port for line based mode
Add support to enable the RDI port bus on line based mode.
In one ITS testcase rdi buffer need to be stride aligned.
Currently RDI works in frame based mode, so stride is not
applicable in frame based mode. Added support to enable the
RDI bus mode based on the acquire time user space send mode.

CRs-Fixed: 2621505
Change-Id: Iea17b4f12594d5bac03b299d782bdb13a70f9dd3
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2020-03-06 13:51:27 +05:30
Karthik Anantha Ram f53584d10c msm: camera: reqmgr: Add uapi for new v4l2 event type
Add event type to be notify custom events from the custom
driver. Also adds a new custom message definition.

CRs-Fixed: 2569823
Change-Id: I2ff701e79949ac3a467cbfe0c704065dbf0dc759
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-02-11 23:23:12 -08:00
Camera Software Integration 91f854c26a Merge "msm: camera: ope: Increase max number of stripes" into camera-kernel.lnx.3.1 2020-01-23 23:10:12 -08:00
Gaurav Jindal 2c397b5164 msm: camera: req_mgr: LDAR Debug framework implementation
When user space detects an error or does not receive
response for a request, Lets do a reset(LDAR) is triggered.
Before LDAR, user space sends flush command to the
kernel space.
To debug the cause for this situation and to dump
the information, user space sends a dump command to the
kernel space before sending flush.
As a part of this command, it passes the culprit request id
and the buffer into which the information can be dumped.
Kernel space traverses across the drivers and find the culprit hw
and dumps the relevant information in the buffer.
This data is written to a file for offline processing.
This commit implements the framework for traversal
across the RT and NRT devices.

CRs-Fixed: 2602180
Change-Id: I7e24006c20c23bfab163a2ad13b4ac6e2913bb9e
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-01-17 09:58:03 +05:30
Rishabh Jain 350430cc0c msm: camera: ope: Increase max number of stripes
Increasing max number of stripes to 48 from 32 to
support big resolution.

CRs-Fixed: 2593149
Change-Id: I1f573c907bcb6360719293474a39a917ff74cf92
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
2020-01-07 10:24:42 +05:30
Rishabh Jain 59ba70d931 msm: camera: ope: Add support for stripe level height configuration
For some usecase, height changes of stripe level. So, added the
support to configure height at stripe level.

CRs-Fixed: 2520602
Change-Id: I59a77b7ef7a82efac4c32fec9978469ef40ef0ae
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
2019-12-23 22:57:58 -08:00
Camera Software Integration 1fc6c89163 Merge "msm: camera: memmgr: Add support to disable DelayedUnmap" into camera-kernel.lnx.3.1 2019-12-19 04:54:50 -08:00
Karthik Anantha Ram 6d2403cc2a msm: camera: custom: Add support for acquire_hw_v1
Split the acquire in custom node to acquire device and
acquire hw to be in line with IFE for multicamera usecases.

CRs-Fixed: 2524308
Change-Id: I7be7d5227dcd304d095d7e3d7fac32800fecc199
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2019-12-16 14:49:53 -08:00
Pavan Kumar Chilamkurthi 7233e78845 msm: camera: memmgr: Add support to disable DelayedUnmap
Add interface to umd to give an option whether to
disable Delayed Unamp feature for a given buffer
mapping. DelayedUnmap is enabled by default if
umd doesn't explicitly asks for disable.

CRs-Fixed: 2580128
Change-Id: I66f87a9dbdfc4d9cecdc02eb24c1c670c9985cae
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2019-12-14 23:16:28 -08:00
Karthik Anantha Ram c73bf6cda1 msm: camera: common: Update uapi to support custom hw features
This change provides provision to propagate frame id to
userspace as part of shutter notification. The change also
add new acquire params for IFE when custom HW is in the pipeline.

CRs-Fixed: 2524308
Change-Id: Ia6f6efb1edc6e6a01d7b37aeb2787b1e98d8f81e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2019-12-03 01:35:01 -08:00
Camera Software Integration ab40539e4a Merge "msm: camera: reqmgr: Add provision to obtain exposure time" into camera-kernel.lnx.3.1 2019-11-09 06:11:19 -08:00
Karthik Anantha Ram c36cc8e7d9 msm: camera: reqmgr: Add provision to obtain exposure time
Currently CRM watchdog timer expiry is fixed at 1 second.
This will not hold good if the sensor exposure time is increased
beyond 1 second. In such situations obtain the time from userspace,
and modify the CRM watchdog timer accordingly.

CRs-Fixed: 2530691
Change-Id: I6251bcb2b915a9e317caffd350220e249214c8b2
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-11-08 11:02:23 -08:00
Ravikishore Pampana 55246ba70b msm: camera: tfe: Add support to TFE driver
TFE is thin front end hardware that capture and process the
real time image. Support is added to enable the TFE
hardware.

CRs-Fixed: 2545590
Change-Id: Ie8efef77fabeeea28d70380c398089e6351e35e3
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2019-11-08 02:13:11 -08:00
Suresh Vankadara 5ee1d6bd09 msm: camera: ope: Add dynamic clock support
Dynamic clock and bandwidth support is added to
OPE.

CRs-Fixed: 2520602
Change-Id: I4ba4bb3b24e4ef47dea35810564cae69912ef72e
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
2019-11-01 22:11:18 -07:00
Suresh Vankadara 08900a71c2 msm: camera: ope: Add support to OPE driver
OPE is camera offline engine, support is added
to enable camera OPE hardware.

CRs-Fixed: 2520602
Change-Id: I8b08ecb34323ee927f2be88707ad65ad2444447d
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2019-11-01 22:10:19 -07:00
Jigarkumar Zala 3aac10c09f msm: camera: sensor: Update the flash init structure
Currently there is mismatch of the cmd type byte position for the
flash init structure, which casue the cmd type parsing failure
for early PCR. This change move to cmd type to sixth byte to
support the unificaiton with other flash uapi structures. Also,
update respective header change with respect to uapi change.

CRs-Fixed: 2432102
Change-Id: Ic4899b483b35013c5ad77a8894eb3bb4831de811
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-09-21 22:16:15 -07:00
Karthik Anantha Ram 02f7646413 msm: camera: custom: Add uapi for custom HW
This change adds uapi for custom HW block.

CRs-Fixed: 2515662
Change-Id: Id4284594746a313ab09dad5c290cedc2b9edb62c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2019-08-30 13:49:50 -07:00
Pavan Kumar Chilamkurthi 3df2ab3939 Merge "Camera: Correct makefiles for correct header inclusion" into camera-kernel.lnx.1.0 2019-08-09 16:28:15 -07:00
Jigarkumar Zala 5b016ad220 Camera: Correct makefiles for correct header inclusion
Correct some Makefiles and drivers header inclusion.

Change-Id: Iec3e6e0333ae55e8f1cff9780723e0dad954ff83
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-09 16:27:18 -07:00
Mukund Madhusudan Atre 632d56473b msm: camera: Add uapi definitions for camera reg dump
For debugging, there are a set of register values that user
space needs. Based on the offset and range given, values can
be dumped into an out buffer to be further processed. Add
uapi support for this reg dump.

Change-Id: I6e6f89625a505158a6bf8932ebb9d0ae78bf0129
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-08-08 20:17:57 -07:00
Jigarkumar Zala ce61a07996 msm: camera: Update uapi structure for OIS
Userspace is sending slave address as 32bit, and in order to parse
the correct data kernel space needs to match this bit pattern.
This change updates the structure to accommodate it.

Change-Id: Ib136bbd1656dba9da75d3b07c494caeebf03dfcb
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:32 -07:00
Tejas Prajapati d31033b31f Camera: uapi: Add uapi support for QCFA CSID binning
Add uapi support to configure CSID binning for QCFA.

Change-Id: Ic992c11d04319b6e8329963c032501b07002b484
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:28 -07:00
Karthik Anantha Ram 47f89a6efa camera: uapi: Add uapi support for semi real time device types
Add uapi support for IPE/BPS semi real time device types.

Change-Id: I12c733f51afdd70159f22f23be5967fc852549ca
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:24 -07:00
Jigarkumar Zala 21c100461f Camera: uapi: add uapi csiphy4 and csiphy5 support
Add Uapi csiphy4 and csiphy5 support.

Change-Id: Ie5d78a389f0cbc454fa261182a3d04030d13d307
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:18 -07:00
Jigarkumar Zala 6761503d24 msm: camera: crm: Increase the device handles to 128
Increasing the device handles to 128 to support more
pipelines.

Change-Id: Id0322cba095091e6168d8541d432628d8422a641
Signed-off-by: Mangalaram ARCHANA <mangar@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:41 -07:00
Jigarkumar Zala 05349feaa2 Camera: Bring over camera driver changes
Bring over camera driver changes as of msm-4.19
commit  5a5551a7 (Merge "msm: camera: reqmgr: Fix CRM
shift one req issue").

Change-Id: Ic0c2b2d74d1b3470c1c51d98228e312fb13c501a
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-08 10:24:55 -07:00