linux/include/linux/platform_data/adp8870.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Definitions and platform data for Analog Devices
 * Backlight drivers ADP8870
 *
 * Copyright 2009-2010 Analog Devices Inc.
 */

#ifndef __LINUX_I2C_ADP8870_H
#define __LINUX_I2C_ADP8870_H

#define ID_ADP8870

#define ADP8870_MAX_BRIGHTNESS
#define FLAG_OFFT_SHIFT

/*
 * LEDs subdevice platform data
 */

#define ADP8870_LED_DIS_BLINK
#define ADP8870_LED_OFFT_600ms
#define ADP8870_LED_OFFT_1200ms
#define ADP8870_LED_OFFT_1800ms

#define ADP8870_LED_ONT_200ms
#define ADP8870_LED_ONT_600ms
#define ADP8870_LED_ONT_800ms
#define ADP8870_LED_ONT_1200ms

#define ADP8870_LED_D7
#define ADP8870_LED_D6
#define ADP8870_LED_D5
#define ADP8870_LED_D4
#define ADP8870_LED_D3
#define ADP8870_LED_D2
#define ADP8870_LED_D1

/*
 * Backlight subdevice platform data
 */

#define ADP8870_BL_D7
#define ADP8870_BL_D6
#define ADP8870_BL_D5
#define ADP8870_BL_D4
#define ADP8870_BL_D3
#define ADP8870_BL_D2
#define ADP8870_BL_D1

#define ADP8870_FADE_T_DIS
#define ADP8870_FADE_T_300ms
#define ADP8870_FADE_T_600ms
#define ADP8870_FADE_T_900ms
#define ADP8870_FADE_T_1200ms
#define ADP8870_FADE_T_1500ms
#define ADP8870_FADE_T_1800ms
#define ADP8870_FADE_T_2100ms
#define ADP8870_FADE_T_2400ms
#define ADP8870_FADE_T_2700ms
#define ADP8870_FADE_T_3000ms
#define ADP8870_FADE_T_3500ms
#define ADP8870_FADE_T_4000ms
#define ADP8870_FADE_T_4500ms
#define ADP8870_FADE_T_5000ms
#define ADP8870_FADE_T_5500ms

#define ADP8870_FADE_LAW_LINEAR
#define ADP8870_FADE_LAW_SQUARE
#define ADP8870_FADE_LAW_CUBIC1
#define ADP8870_FADE_LAW_CUBIC2

#define ADP8870_BL_AMBL_FILT_80ms
#define ADP8870_BL_AMBL_FILT_160ms
#define ADP8870_BL_AMBL_FILT_320ms
#define ADP8870_BL_AMBL_FILT_640ms
#define ADP8870_BL_AMBL_FILT_1280ms
#define ADP8870_BL_AMBL_FILT_2560ms
#define ADP8870_BL_AMBL_FILT_5120ms
#define ADP8870_BL_AMBL_FILT_10240ms

/*
 * Blacklight current 0..30mA
 */
#define ADP8870_BL_CUR_mA(I)

/*
 * L2 comparator current 0..1106uA
 */
#define ADP8870_L2_COMP_CURR_uA(I)

/*
 * L3 comparator current 0..551uA
 */
#define ADP8870_L3_COMP_CURR_uA(I)

/*
 * L4 comparator current 0..275uA
 */
#define ADP8870_L4_COMP_CURR_uA(I)

/*
 * L5 comparator current 0..138uA
 */
#define ADP8870_L5_COMP_CURR_uA(I)

struct adp8870_backlight_platform_data {};

#endif /* __LINUX_I2C_ADP8870_H */