• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * sky81452.h	SKY81452 backlight driver
4  *
5  * Copyright 2014 Skyworks Solutions Inc.
6  * Author : Gyungoh Yoo <jack.yoo@skyworksinc.com>
7  */
8 
9 #ifndef _SKY81452_BACKLIGHT_H
10 #define _SKY81452_BACKLIGHT_H
11 
12 /**
13  * struct sky81452_platform_data
14  * @name:	backlight driver name.
15 		If it is not defined, default name is lcd-backlight.
16  * @gpio_enable:GPIO number which control EN pin
17  * @enable:	Enable mask for current sink channel 1, 2, 3, 4, 5 and 6.
18  * @ignore_pwm:	true if DPWMI should be ignored.
19  * @dpwm_mode:	true is DPWM dimming mode, otherwise Analog dimming mode.
20  * @phase_shift:true is phase shift mode.
21  * @short_detecion_threshold:	It should be one of 4, 5, 6 and 7V.
22  * @boost_current_limit:	It should be one of 2300, 2750mA.
23  */
24 struct sky81452_bl_platform_data {
25 	const char *name;
26 	int gpio_enable;
27 	unsigned int enable;
28 	bool ignore_pwm;
29 	bool dpwm_mode;
30 	bool phase_shift;
31 	unsigned int short_detection_threshold;
32 	unsigned int boost_current_limit;
33 };
34 
35 #endif
36