linux/include/media/i2c/lm3646.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * include/media/i2c/lm3646.h
 *
 * Copyright (C) 2014 Texas Instruments
 *
 * Contact: Daniel Jeong <[email protected]>
 *			Ldd-Mlp <[email protected]>
 */

#ifndef __LM3646_H__
#define __LM3646_H__

#include <media/v4l2-subdev.h>

#define LM3646_NAME
#define LM3646_I2C_ADDR_REV1
#define LM3646_I2C_ADDR_REV0

/*  TOTAL FLASH Brightness Max
 *	min 93350uA, step 93750uA, max 1499600uA
 */
#define LM3646_TOTAL_FLASH_BRT_MIN
#define LM3646_TOTAL_FLASH_BRT_STEP
#define LM3646_TOTAL_FLASH_BRT_MAX
#define LM3646_TOTAL_FLASH_BRT_uA_TO_REG(a)

/*  TOTAL TORCH Brightness Max
 *	min 23040uA, step 23430uA, max 187100uA
 */
#define LM3646_TOTAL_TORCH_BRT_MIN
#define LM3646_TOTAL_TORCH_BRT_STEP
#define LM3646_TOTAL_TORCH_BRT_MAX
#define LM3646_TOTAL_TORCH_BRT_uA_TO_REG(a)

/*  LED1 FLASH Brightness
 *	min 23040uA, step 11718uA, max 1499600uA
 */
#define LM3646_LED1_FLASH_BRT_MIN
#define LM3646_LED1_FLASH_BRT_STEP
#define LM3646_LED1_FLASH_BRT_MAX
#define LM3646_LED1_FLASH_BRT_uA_TO_REG(a)

/*  LED1 TORCH Brightness
 *	min 2530uA, step 1460uA, max 187100uA
 */
#define LM3646_LED1_TORCH_BRT_MIN
#define LM3646_LED1_TORCH_BRT_STEP
#define LM3646_LED1_TORCH_BRT_MAX
#define LM3646_LED1_TORCH_BRT_uA_TO_REG(a)

/*  FLASH TIMEOUT DURATION
 *	min 50ms, step 50ms, max 400ms
 */
#define LM3646_FLASH_TOUT_MIN
#define LM3646_FLASH_TOUT_STEP
#define LM3646_FLASH_TOUT_MAX
#define LM3646_FLASH_TOUT_ms_TO_REG(a)

/* struct lm3646_platform_data
 *
 * @flash_timeout: flash timeout
 * @led1_flash_brt: led1 flash mode brightness, uA
 * @led1_torch_brt: led1 torch mode brightness, uA
 */
struct lm3646_platform_data {};

#endif /* __LM3646_H__ */