linux/include/linux/platform_data/adp8860.h

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

#ifndef __LINUX_I2C_ADP8860_H
#define __LINUX_I2C_ADP8860_H

#include <linux/leds.h>
#include <linux/types.h>

#define ID_ADP8860

#define ADP8860_MAX_BRIGHTNESS
#define FLAG_OFFT_SHIFT

/*
 * LEDs subdevice platform data
 */

#define ADP8860_LED_DIS_BLINK
#define ADP8860_LED_OFFT_600ms
#define ADP8860_LED_OFFT_1200ms
#define ADP8860_LED_OFFT_1800ms

#define ADP8860_LED_ONT_200ms
#define ADP8860_LED_ONT_600ms
#define ADP8860_LED_ONT_800ms
#define ADP8860_LED_ONT_1200ms

#define ADP8860_LED_D7
#define ADP8860_LED_D6
#define ADP8860_LED_D5
#define ADP8860_LED_D4
#define ADP8860_LED_D3
#define ADP8860_LED_D2
#define ADP8860_LED_D1

/*
 * Backlight subdevice platform data
 */

#define ADP8860_BL_D7
#define ADP8860_BL_D6
#define ADP8860_BL_D5
#define ADP8860_BL_D4
#define ADP8860_BL_D3
#define ADP8860_BL_D2
#define ADP8860_BL_D1

#define ADP8860_FADE_T_DIS
#define ADP8860_FADE_T_300ms
#define ADP8860_FADE_T_600ms
#define ADP8860_FADE_T_900ms
#define ADP8860_FADE_T_1200ms
#define ADP8860_FADE_T_1500ms
#define ADP8860_FADE_T_1800ms
#define ADP8860_FADE_T_2100ms
#define ADP8860_FADE_T_2400ms
#define ADP8860_FADE_T_2700ms
#define ADP8860_FADE_T_3000ms
#define ADP8860_FADE_T_3500ms
#define ADP8860_FADE_T_4000ms
#define ADP8860_FADE_T_4500ms
#define ADP8860_FADE_T_5000ms
#define ADP8860_FADE_T_5500ms

#define ADP8860_FADE_LAW_LINEAR
#define ADP8860_FADE_LAW_SQUARE
#define ADP8860_FADE_LAW_CUBIC1
#define ADP8860_FADE_LAW_CUBIC2

#define ADP8860_BL_AMBL_FILT_80ms
#define ADP8860_BL_AMBL_FILT_160ms
#define ADP8860_BL_AMBL_FILT_320ms
#define ADP8860_BL_AMBL_FILT_640ms
#define ADP8860_BL_AMBL_FILT_1280ms
#define ADP8860_BL_AMBL_FILT_2560ms
#define ADP8860_BL_AMBL_FILT_5120ms
#define ADP8860_BL_AMBL_FILT_10240ms

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

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

/*
 * L3 comparator current 0..138uA
 */
#define ADP8860_L3_COMP_CURR_uA(I)

struct adp8860_backlight_platform_data {};

#endif /* __LINUX_I2C_ADP8860_H */