linux/include/linux/platform_data/lp855x.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * LP855x Backlight Driver
 *
 *			Copyright (C) 2011 Texas Instruments
 */

#ifndef _LP855X_H
#define _LP855X_H

#define BL_CTL_SHFT
#define BRT_MODE_SHFT
#define BRT_MODE_MASK

/* Enable backlight. Only valid when BRT_MODE=10(I2C only) */
#define ENABLE_BL
#define DISABLE_BL

#define I2C_CONFIG(id)
#define PWM_CONFIG(id)

/* DEVICE CONTROL register - LP8550 */
#define LP8550_PWM_CONFIG
#define LP8550_I2C_CONFIG

/* DEVICE CONTROL register - LP8551 */
#define LP8551_PWM_CONFIG
#define LP8551_I2C_CONFIG

/* DEVICE CONTROL register - LP8552 */
#define LP8552_PWM_CONFIG
#define LP8552_I2C_CONFIG

/* DEVICE CONTROL register - LP8553 */
#define LP8553_PWM_CONFIG
#define LP8553_I2C_CONFIG

/* CONFIG register - LP8555 */
#define LP8555_PWM_STANDBY
#define LP8555_PWM_FILTER
#define LP8555_RELOAD_EPROM
#define LP8555_OFF_OPENLEDS
#define LP8555_PWM_CONFIG
#define LP8555_I2C_CONFIG
#define LP8555_COMB1_CONFIG
#define LP8555_COMB2_CONFIG

/* DEVICE CONTROL register - LP8556 */
#define LP8556_PWM_CONFIG
#define LP8556_COMB1_CONFIG
#define LP8556_I2C_CONFIG
#define LP8556_COMB2_CONFIG
#define LP8556_FAST_CONFIG

/* CONFIG register - LP8557 */
#define LP8557_PWM_STANDBY
#define LP8557_PWM_FILTER
#define LP8557_RELOAD_EPROM
#define LP8557_OFF_OPENLEDS
#define LP8557_PWM_CONFIG
#define LP8557_I2C_CONFIG
#define LP8557_COMB1_CONFIG
#define LP8557_COMB2_CONFIG

enum lp855x_chip_id {};

enum lp8550_brighntess_source {};

enum lp8551_brighntess_source {};

enum lp8552_brighntess_source {};

enum lp8553_brighntess_source {};

enum lp8555_brightness_source {};

enum lp8556_brightness_source {};

enum lp8557_brightness_source {};

struct lp855x_rom_data {};

/**
 * struct lp855x_platform_data
 * @name : Backlight driver name. If it is not defined, default name is set.
 * @device_control : value of DEVICE CONTROL register
 * @initial_brightness : initial value of backlight brightness
 * @period_ns : platform specific pwm period value. unit is nano.
		Only valid when mode is PWM_BASED.
 * @size_program : total size of lp855x_rom_data
 * @rom_data : list of new eeprom/eprom registers
 */
struct lp855x_platform_data {};

#endif