From 0c44b6ea8cc7e3efffa46657ec9c4f72febe6f5a Mon Sep 17 00:00:00 2001 From: Liu Yang Date: Mon, 12 Jun 2023 10:46:32 +0800 Subject: [PATCH] bangkk: Powerup and initialize sensor early [4/4] Powering on and initializing main sensor in camera open instead of streams configuration to optimize the startup KPI. It is a common feature and depends on sensor setting. It can save about 30ms. Porting this func from (CR) and (CR). mot-cam-category: KPI Change-Id: I622db10b469c0e3f26619200bebad95836d8ed9f Signed-off-by: Liu Yang Reviewed-on: https://gerrit.mot.com/2640370 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zilong Zhang Reviewed-by: Reviewed-by: Bolei Shang Reviewed-by: Reviewed-by: Reviewed-by: Ji Zhao Reviewed-by: Dongju He Reviewed-by: Reviewed-by: Zhuoran Xu Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- arch/arm64/Kconfig | 6 ++++++ .../arm64/configs/vendor/ext_config/moto-holi-bangkk.config | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 9bcb5cca72e6..0e0e47774e46 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1933,3 +1933,9 @@ config MOT_DONGWOON_OIS_AF_DRIFT default n help Enable it will support dongwoon ois af drift. + +config MOT_SENSOR_PRE_POWERUP + bool "For sensor power up and initialization early" + default n + help + Enable it to power up and initialise early. diff --git a/arch/arm64/configs/vendor/ext_config/moto-holi-bangkk.config b/arch/arm64/configs/vendor/ext_config/moto-holi-bangkk.config index 82a65ea61482..8ecb42d8c0a8 100644 --- a/arch/arm64/configs/vendor/ext_config/moto-holi-bangkk.config +++ b/arch/arm64/configs/vendor/ext_config/moto-holi-bangkk.config @@ -41,3 +41,4 @@ CONFIG_QUP0_SE2_AP=y CONFIG_CAMERA_FLASH_IIC_COMPATIBLE=y CONFIG_EROFS_FS_PCPU_KTHREAD=y CONFIG_EROFS_FS_PCPU_KTHREAD_HIPRI=y +CONFIG_MOT_SENSOR_PRE_POWERUP=y