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>
This commit is contained in:
Sokchetra Eung
2022-07-19 11:54:57 -07:00
committed by “Savita
parent f3583a8e38
commit df4373f69f
12 changed files with 1028 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ extern struct platform_driver cam_icp_v2_driver;
extern struct platform_driver cam_ipe_driver;
extern struct platform_driver cam_bps_driver;
extern struct platform_driver cam_icp_driver;
extern struct platform_driver cam_ofe_driver;
#endif
#ifdef CONFIG_SPECTRA_OPE
extern struct platform_driver cam_ope_driver;
@@ -124,6 +125,7 @@ static struct platform_driver *const cam_component_platform_drivers[] = {
&cam_ipe_driver,
&cam_bps_driver,
&cam_icp_driver,
&cam_ofe_driver,
#endif
#ifdef CONFIG_SPECTRA_OPE
&cam_ope_driver,