コミットグラフ

36 コミット

作成者 SHA1 メッセージ 日付
Ayush Kumar
aeef5b37db msm: camera: cpas: Add support for Crow Camera
This change adds camnoc interface changes and CPAS version
change for Crow camera.

CRs-Fixed: 3426117
Change-Id: I8735dc87ccd0ebcde98a53f6d695167fedb4cc35
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-20 21:35:13 -08:00
Dharmender Sharma
c6b1ce8455 msm: camera: cpas: Add support for Cliffs Camera
This change adds camnoc interface changes and CPAS version change for
Cliffs camera. It also add support for ife, csid and sfe.

CRs-Fixed: 3609762
Change-Id: Icddfd38330022b8ebc7f785ba3c97cc055e70d74
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
2023-09-12 23:45:46 -07:00
Li Sha Lim
8e7b72d937 msm: camera: sensor: debugfs utility for i2c/cci
This change adds support to read/write any sensor
devices that are on i2c, whether using cci or qup.
The debugfs file is mounted on i2c subdir under
camera root directory in debugfs.

Given that these devices are not always turned on,
and that this power on/off sequence is controlled
by userspace, this change displays all available
i2c devices, and their power states.

The user then can read/write to those devices which
are turned on, according to the following:

Usage:
  - echo (anything or empty string) > i2c-rw
  - cat i2c-rw then displays usage, and states of devices
  - echo (proper r/w format) > i2c-rw
  - cat i2c-rw displays output/error
Note that cat output is not persistent, it gets cleared
after displaying once.

CRs-Fixed: 3385104
Change-Id: I22023e0a8d9a680b5c8578cae2aa253c4c90226f
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2023-04-05 17:06:38 -07:00
Li Sha Lim
d0db8bb415 msm: camera: csiphy: Integrate mink call for secure camera
Adds support for new mink call to configure secure
camera sessions. This new mink call takes in additional
parameters to support the new domain-id based
security scheme. The additional parameters are in the
form of csid_hw_idx_mask, cdm_hw_idx_mask and
vc_mask. These are in addition to the existing PHY idx
and CPHY/DPHY lanes info.
The introduction of this new mink call deprecates the
existing SCM call used to service secure camera sessions.
What this means is that on all subsequent versions of this
driver, all secure camera sessions will be serviced by this
mink call, which is able to accommodate older and newer targets,
and their programming of different register sets.
This design enables the cam_csiphy_notify_secure_mode
wrapper to remain the same, with the underlying mink call
made in the cam_compat layer, depending on camera driver
version.

CRs-Fixed: 3317248
Change-Id: I05511f4380ce5467b104675c07c9c8faa5318af8
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2023-01-30 15:06:09 -08:00
Shivi Mangal
953b2ced40 msm: camera: sensor: Add register settings in TPG
This change allows the tpg hw register configurations to be directly
programmed from the tpg xml file. The regsettings array can be configured
with the right configurations for the required mode, if regsettings are
not provided in regsettings array. The settings are derived from the
stream configurations and global configurations.

CRs-Fixed: 3289930.

Change-Id: If44678475986efc0f26c334f5db4f9c59cd6873b
Signed-off-by: Shivi Mangal <quic_smangal@quicinc.com>
2023-01-13 15:36:05 -08:00
Karthik Anantha Ram
b997fec06f msm: camera: sync: Fix synx compilation issues
Fix synx compilation dependencies for pineapple.

CRs-Fixed: 3343701
Change-Id: Ie7d69b1bd70de4354af12a0cb0a2c44ecaf79135
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-11-29 17:36:49 -08:00
Petar Nedev
f22f48c91f msm: camera: sync: Add support for synx objects
Add support to create, release, signal and import a synx object
using the existing generic fence operations. Handle signaling of
underlying synx object when a sync object is signaled & vice versa.

CRs-Fixed: 3317280
Change-Id: Ia6fac6eb732ed7091ec62f04875bdb30d88c8676
Signed-off-by: Petar Nedev <quic_pnedev@quicinc.com>
2022-10-27 17:06:36 -07:00
Rishab Garg
b35f65ac17 msm: camera: sensor: Add tpg hw layer for lanai target
Add tpg hw layer for lanai target.

CRs-Fixed: 3308233
External Impact: No
Change-Id: Id3f5da6bc891840d4d00d0f4ef3db8a4a5a4cd74
Signed-off-by: Rishab Garg <quic_rishabg@quicinc.com>
2022-10-27 17:06:13 -07:00
Sokchetra Eung
df4373f69f msm: camera: icp: Add OFE Kernel Driver
Create OFE HW layer which contains device, soc, and core files.
Device file provides the prob functionality and OFE dev interface
to ICP HW MGR. Core file provides HW related functionalities such
as PC, reset, init/deinit hw, etc. Soc file provides intermediate
functions to utilize camera soc APIs such as DT parsing, Clock
update, etc.

Modify Kbuild to include compilation of the source files. Update
camera main file to invoke ofe init module function during camera
module init. Update camera main header file to allow CRM to match
OFE driver for component bind.

Update OFE HW register addresses such as power status/power ctrl,
reset, irq, etc.

CRs-Fixed: 3266673
Change-Id: I97efe095801b1b42e9de07aeba6f26112cb8f92b
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
2022-10-21 16:06:13 -07:00
Suraj Dongre
a97e0b887a msm: camera: common: Remove shell commands from android makefiles
Remove direct shell commands from Android makefiles to better make use
of android function definitions.
Also changes mmrm dependency to be based on whether or not the driver
is detected in the build before setting it as a dependency.

CRs-Fixed: 3298147
Change-Id: I0d5f2c9eb34ac635604c515638c9f00e29ae0b2a
Signed-off-by: Suraj Dongre <quic_sdongre@quicinc.com>
2022-09-29 15:06:25 -07:00
zhuo
39f5c09287 msm: camera: common: Add Lanai make configuration
Add the lanai platform config makefile for camera.

CRs-Fixed: 3245935
Change-Id: Ibcf2f5a4ebae26151c3f9bd4f038ede61f09966c
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
2022-09-19 18:36:13 -07:00
Karthik Anantha Ram
a130199cd3 msm: camera: sync: Add support for dma fences
Add support to create, release, signal and import
a dma fence. When a sync object is imported for a dma fence
signal the dma fence when signaling the sync object with
appropriate status. This is achieved by implementing
generic fence scheme. The change also adds support
for batched fences.

CRs-Fixed: 3207212
Change-Id: I23fbc0992281cfee0303e213a30bce138ae7bdff
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-06-08 13:06:40 -07:00
Jigar Agrawal
609d228234 msm: camera: sensor: Add i3c bus support
Add i3c bus support for qup i3c based
I3C target.

CRs-Fixed: 3169593
Change-Id: I0209f799d800daf9afe7a846310a3d4f4f2ee420
Signed-off-by: Jigarkumar Zala <quic_jzala@quicinc.com>
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-05-17 15:36:30 -07:00
sokchetra eung
9c730e3b84 msm: camera: icp: Rename A5 and LX7
Rename all instances of a5 and lx7 to icp_v1 and icp_v2
respectively. Remove all mentions of lx7 or a5 in icp_hw_mgr.
Relocate lx7_hw and a5_hw directories to a new directory -
icp_proc which contains a new file to provide related a5 or lx7
interfaces to icp_hw_mgr. Thus, icp_hw_mgr is agnostic to icp proc.
Place common functions and common global constant into icp_proc_common
file. Remove a5/lx7 soc files and create a common soc file for both.
Modify kbuild file to account for directory or file changes.

CRs-Fixed: 3162183
Change-Id: I7e0cfd2a2917f129097a517af3bd39578f85293d
Signed-off-by: sokchetra eung <quic_eung@quicinc.com>
2022-04-15 16:06:57 -07:00
Depeng Shao
425e0a8142 msm: camera: sensor: enable the compilation for flash
This change enables the compilation for flash even
though there is no pmic flash support, since the i2c
flash still needs the flash framework.

CRs-Fixed: 3095773
Change-Id: I220a38dce1cbc829e446a65c61b7b7eb6b3a1c5b
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2021-12-20 04:49:10 -08:00
Alok Pandey
9dd2955dc9 msm: camera: cpas: Add support for Parrot Camera
Parrot has different version of CPAS which requires
camnoc interface changes and CPAS version change.
This change adds the same.

CRs-Fixed: 3081144
Change-Id: Icf39e12d3af8518471b093c860888df05af279b7
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2021-12-14 08:37:50 -08:00
Savita Patted
d8b7b5f0a9 Merge "msm: camera: sensor: Add support for CSIPHY TPG 1.2" into camera-kernel.lnx.5.0 2021-11-05 18:48:25 -07:00
Savita Patted
18feeabe4a Merge "msm: camera: common: Add Kalama make configuration" into camera-kernel.lnx.5.0 2021-11-05 18:41:37 -07:00
Shravan Nevatia
5930b6dffa msm: camera: sensor: Add support for CSIPHY TPG 1.2
Add KMD driver support for CSIPHY TPG version 1.2.

CRs-Fixed: 3065086
Change-Id: I4236a8550ebb2c27f4231f963d283bc0a6f28005
Signed-off-by: Shravan Nevatia <quic_snevatia@quicinc.com>
2021-11-02 14:14:01 +05:30
Alok Chauhan
ca7336742c msm: camera: cpas: Add support for Cape Camera
Cape has different version of CPAS version which
requires camnoc interface changes and CPAS version
change. This change adds the same.

CRs-Fixed: 3063982
Change-Id: Iaca2f12954cc12224da6c8cdb2ee76f2b14aca0b
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2021-11-01 21:33:30 -07:00
Karthik Jayakumar
9cbfb47bf6 msm: camera: common: Add Kalama make configuration
Adds the kalama platform config makefile for camera.

CRs-Fixed: 3048249
Change-Id: I2b6d4aaa2ea261e61b3ae9b928a93ed234a970f6
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-11-01 13:15:33 -07:00
Savita Patted
c38139d8da Merge "msm: camera: cpas: Add support for Diwali Camera" into camera-kernel.lnx.5.0 2021-10-08 17:20:40 -07:00
Ayush Kumar
da55dd5e51 msm: camera: cpas: Add support for Diwali Camera
Diwali has different version of CPAS version which
requires camnoc interface changes and CPAS version
change. This change adds the same.

CRs-Fixed: 3043114
Change-Id: I698b251c43d34225053ab3a0e9c581201d6be638
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-10-05 23:34:39 +05:30
Karthik Jayakumar
8e40886be9 msm: camera: common: Add presil compilation and probe support
Adds new presil files to Kbuild compilation and camera_main
probe support.

CRs-Fixed: 2932495
Change-Id: Iccde6ce68f6db2dee94e2d73d3094fa6314ad372
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-09-27 10:41:36 -07:00
Suraj Dongre
f037f5b9fe msm: camera: common: Add condition in Kbuild to compile presil code
Based on arch, config flag can be set for presil and when enabled,
presil code will be compiled.

CRs-Fixed: 2932495
Change-Id: Iabf1a74be3582d0b84b70777e406b4ce02218220
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Signed-off-by: Suraj Dongre <sdongre@codeaurora.org>
2021-07-28 11:15:40 -07:00
Tony Lijo Jose
caa6b2a1a4 msm: camera: sensor: Add tpg driver support
Add new tpg subdev driver. This change exposes the tpg hw as a new
subdev similar to that of a sensor driver.

CRs-Fixed: 2973850
Change-Id: I6fdb4457d8cc829546896f26bdde8765a4258e7c
Signed-off-by: Tony Lijo Jose <tjose@codeaurora.org>
2021-06-29 00:44:14 -07:00
Gaurav Jindal
52ac0ccc9f msm: camera: isp: Remove TPG code from hw manager
In upcoming targets, TPG will be supported as a separate node.
This commit removes the tpg code from ife/tfe hw manager.

CRs-Fixed: 2973850
Change-Id: I031302756d85e004fc3a07f9864daf2c16dd837b
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-06-29 12:30:22 +05:30
Suraj Dongre
f460877a7c msm: camera: common: presil hw access headers
Added declarations and stubs for presil hw access apis.

CRs-Fixed: 2932495
Change-Id: Icbb38ca08ded2d8ba6be495ddf64bc1ae6a30245
Signed-off-by: Suraj Dongre <sdongre@codeaurora.org>
2021-06-23 10:42:15 -07:00
Wyes Karny
4e535ac459 msm: camera: isp: Add support for new CSID
Add CSID640 support. The following features support are added:
  - QCFA binning and BAYER binning support
  - Format measure support
  - Multi VC DT support
  - Add core_cfg support in in_port structure

CRs-Fixed: 2887030
Change-Id: Idd7d081c985f3ef21e0fee7ce4c1b8db96ddd3c3
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-04-12 01:34:13 -07:00
Vikram Sharma
23762a67ed msm: camera: cre: Add CRE driver changes
Add new camera driver Camera Reformat Engine (CRE).

CRs-Fixed: 2893978
Change-Id: Ia39b222493393bf7bb72525c86f0060ca0dc77c2
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-03-31 02:49:52 -07:00
Karthik Anantha Ram
a503554e2f msm: camera: icp: Add support for non secure FW load
Starting from waipio, ICP [lx7] FW is to loaded using
secure PIL. For debug purposes also added support for
non secure image loading for lx7.

CRs-Fixed: 2722486
Change-Id: I30026fb8e65f323ab73336e0ae787a2359bc934f
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-01-22 09:26:04 -08:00
Camera Software Integration
cfdfcbe84a Merge "msm: camera: icp: Add LX7 driver" into camera-kernel.lnx.5.0 2021-01-20 16:23:52 -08:00
Karthik Jayakumar
df522198ab msm: camera: common: Update Makefiles to remove SFE config
SFE config is not needed since it shares the same code paths as VFE.
As such we deprecate the config and enable SFE whenever ISP is enabled.

CRs-Fixed: 2835738
Change-Id: I5e6b44345e9eaabdb3a91d3662322f3dec53761b
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-01-13 19:02:58 -08:00
Karthik Anantha Ram
4e25fa702e msm: camera: icp: Add LX7 driver
Add initial support for the LX7 processor.
Support for firmware loading and processor boot are
still pending. Note this also cleans up some descriptions
in struct cam_icp_hw_mgr that were left over when the
debugfs entries were renamed.

CRs-Fixed: 2722486
Change-Id: I626cc27e26e1ebac8ec6b4509ab5da2a013457b1
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-01-12 19:00:56 -08:00
Karthik Jayakumar
c69ede622c msm: camera: common: Migrate dt-bindings to techpack
To support external module compilation on Waipio, camera dt-bindings header
files need to be moved out of kernel SI and into the camera-kernel vendor SI.
This is to maintain seperation between the two SI's.

CRs-Fixed: 2835738
Change-Id: I8d63b48b6d406ed7b4a07f3bd4f1721ecd2dd0b0
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-01-11 10:11:37 -08:00
Karthik Jayakumar
8c2e1cab8f msm: camera: config: Makefile update to support GKI 2.0
Adds support for camera kernel driver source being moved to Vendor SI.

CRs-Fixed: 2835738
Change-Id: Ibb876edb1284bc77c366c3ef9e1ee9a39981c960
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-01-11 10:11:37 -08:00