From 61405967cbfedc01bedd05e6ba00a5bb27156c7f Mon Sep 17 00:00:00 2001 From: longc129 Date: Fri, 22 Apr 2022 17:39:55 +0800 Subject: [PATCH] Low flashlight brightness bugfix Low flashlight brightness bugfix Because the platform side cannot output a PWM wave with 100% duty cycle, the brightness of the flashlight is too low. To fix this, we manually pull up this pin. Change-Id: I84eacdef17c56b775dba679446e672868de2a279 Reviewed-on: https://gerrit.mot.com/2250278 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Pengfei Qiao Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- arch/arm64/Kconfig | 8 +++++++- arch/arm64/configs/vendor/ext_config/devon-default.config | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index c95749296cbc..c63efcd13470 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -216,6 +216,12 @@ config ARCH_MMAP_RND_BITS_MAX default 16 if ARM64_16K_PAGES default 18 +config DEVON_CAMERA_FLASH + bool "For devon flashlight" + default n + help + Add for fix up devon flashlight brightness to low + config ARCH_MMAP_RND_COMPAT_BITS_MIN default 7 if ARM64_64K_PAGES default 9 if ARM64_16K_PAGES @@ -1702,4 +1708,4 @@ config CAM_SENSOR_PROBE_RETRY bool "For sensor probe fail" default n help - Add retries for sensor id matching. \ No newline at end of file + Add retries for sensor id matching. diff --git a/arch/arm64/configs/vendor/ext_config/devon-default.config b/arch/arm64/configs/vendor/ext_config/devon-default.config index d9b2d303d4c9..006ac600e122 100644 --- a/arch/arm64/configs/vendor/ext_config/devon-default.config +++ b/arch/arm64/configs/vendor/ext_config/devon-default.config @@ -13,6 +13,7 @@ # You can check the .config file to verify that your configuration option is # being set as expected. # +CONFIG_DEVON_CAMERA_FLASH=y CONFIG_DEVON_DTB=y CONFIG_BAT_NTC_10K=y CONFIG_PANEL_NOTIFICATIONS=y