mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
msm: camera: flash: Add support for I2C flash
- Add Regulator power up for I2C flash - Add GPIO support in probe call for I2C flash - Add flash type in query capability call of flash. CRs-Fixed: 2938804 Change-Id: I7d5575ecdf4c1c3b329e6bf49586771e37611e5a Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
This commit is contained in:
parent
d313b62f5e
commit
de2b0fb94b
5 changed files with 34 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
|
||||
/*
|
||||
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __UAPI_CAM_SENSOR_H__
|
||||
|
|
@ -476,6 +476,7 @@ struct cam_flash_query_curr {
|
|||
* @max_current_flash : max supported current for flash
|
||||
* @max_duration_flash : max flash turn on duration
|
||||
* @max_current_torch : max supported current for torch
|
||||
* @flash_type : Indicates about the flash type -I2C,GPIO,PMIC
|
||||
*
|
||||
*/
|
||||
struct cam_flash_query_cap_info {
|
||||
|
|
@ -483,6 +484,7 @@ struct cam_flash_query_cap_info {
|
|||
__u32 max_current_flash[CAM_FLASH_MAX_LED_TRIGGERS];
|
||||
__u32 max_duration_flash[CAM_FLASH_MAX_LED_TRIGGERS];
|
||||
__u32 max_current_torch[CAM_FLASH_MAX_LED_TRIGGERS];
|
||||
__u32 flash_type;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue