Selaa lähdekoodia

msm: camera: common: Enable config for cesta clock update calls

Enable config for clock update calls that vote the cesta hw client
votes. Update existing ddr drv flags to include spectra for camera
specific flags.

CRs-Fixed: 3315013
Change-Id: I63e0107a517d3c71f8fac7f2d631e2c37f62f8b3
Signed-off-by: Mukund Madhusudan Atre <[email protected]>
Signed-off-by: Pavan Kumar Chilamkurthi <[email protected]>
Mukund Madhusudan Atre 2 vuotta sitten
vanhempi
sitoutus
5ad7a2bbd1
3 muutettua tiedostoa jossa 7 lisäystä ja 5 poistoa
  1. 2 2
      config/kalama.mk
  2. 4 2
      config/pineapple.mk
  3. 1 1
      drivers/cam_utils/cam_compat.c

+ 2 - 2
config/kalama.mk

@@ -6,7 +6,7 @@ CONFIG_SPECTRA_ICP := y
 CONFIG_SPECTRA_JPEG := y
 CONFIG_SPECTRA_CUSTOM := y
 CONFIG_SPECTRA_SENSOR := y
-CONFIG_USE_RPMH_DRV_API := y
+CONFIG_SPECTRA_USE_RPMH_DRV_API := y
 
 # Flags to pass into C preprocessor
 ccflags-y += -DCONFIG_SPECTRA_ISP=1
@@ -14,7 +14,7 @@ ccflags-y += -DCONFIG_SPECTRA_ICP=1
 ccflags-y += -DCONFIG_SPECTRA_JPEG=1
 ccflags-y += -DCONFIG_SPECTRA_CUSTOM=1
 ccflags-y += -DCONFIG_SPECTRA_SENSOR=1
-ccflags-y += -DCONFIG_USE_RPMH_DRV_API=1
+ccflags-y += -DCONFIG_SPECTRA_USE_RPMH_DRV_API=1
 
 # External Dependencies
 KBUILD_CPPFLAGS += -DCONFIG_MSM_MMRM=1

+ 4 - 2
config/pineapple.mk

@@ -6,8 +6,9 @@ CONFIG_SPECTRA_ICP := y
 CONFIG_SPECTRA_JPEG := y
 CONFIG_SPECTRA_CUSTOM := y
 CONFIG_SPECTRA_SENSOR := y
-CONFIG_USE_RPMH_DRV_API := y
 CONFIG_SPECTRA_LLCC_STALING := y
+CONFIG_SPECTRA_USE_RPMH_DRV_API := y
+CONFIG_SPECTRA_USE_CLK_CRM_API := y
 
 # Flags to pass into C preprocessor
 ccflags-y += -DCONFIG_SPECTRA_ISP=1
@@ -15,8 +16,9 @@ ccflags-y += -DCONFIG_SPECTRA_ICP=1
 ccflags-y += -DCONFIG_SPECTRA_JPEG=1
 ccflags-y += -DCONFIG_SPECTRA_CUSTOM=1
 ccflags-y += -DCONFIG_SPECTRA_SENSOR=1
-ccflags-y += -DCONFIG_USE_RPMH_DRV_API=1
 ccflags-y += -DCONFIG_SPECTRA_LLCC_STALING=1
+ccflags-y += -DCONFIG_SPECTRA_USE_RPMH_DRV_API=1
+ccflags-y += -DCONFIG_SPECTRA_USE_CLK_CRM_API=1
 
 # External Dependencies
 KBUILD_CPPFLAGS += -DCONFIG_MSM_MMRM=1

+ 1 - 1
drivers/cam_utils/cam_compat.c

@@ -18,7 +18,7 @@
 #include "cam_eeprom_dev.h"
 #include "cam_eeprom_core.h"
 
-#if IS_ENABLED(CONFIG_USE_RPMH_DRV_API)
+#if IS_ENABLED(CONFIG_SPECTRA_USE_RPMH_DRV_API)
 #define CAM_RSC_DRV_IDENTIFIER "cam_rsc"
 
 const struct device *cam_cpas_get_rsc_dev_for_drv(uint32_t index)