Gyungoh Yoo | f705806 | 2015-02-27 15:42:22 +0900 | [diff] [blame] | 1 | /* |
| 2 | * sky81452.h SKY81452 backlight driver |
| 3 | * |
| 4 | * Copyright 2014 Skyworks Solutions Inc. |
| 5 | * Author : Gyungoh Yoo <jack.yoo@skyworksinc.com> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify it |
| 8 | * under the terms of the GNU General Public License version 2 |
| 9 | * as published by the Free Software Foundation. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, but |
| 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along |
| 17 | * with this program; if not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #ifndef _SKY81452_BACKLIGHT_H |
| 21 | #define _SKY81452_BACKLIGHT_H |
| 22 | |
| 23 | /** |
| 24 | * struct sky81452_platform_data |
| 25 | * @name: backlight driver name. |
| 26 | If it is not defined, default name is lcd-backlight. |
| 27 | * @gpio_enable:GPIO number which control EN pin |
| 28 | * @enable: Enable mask for current sink channel 1, 2, 3, 4, 5 and 6. |
| 29 | * @ignore_pwm: true if DPWMI should be ignored. |
| 30 | * @dpwm_mode: true is DPWM dimming mode, otherwise Analog dimming mode. |
| 31 | * @phase_shift:true is phase shift mode. |
| 32 | * @short_detecion_threshold: It should be one of 4, 5, 6 and 7V. |
| 33 | * @boost_current_limit: It should be one of 2300, 2750mA. |
| 34 | */ |
| 35 | struct sky81452_bl_platform_data { |
| 36 | const char *name; |
| 37 | int gpio_enable; |
| 38 | unsigned int enable; |
| 39 | bool ignore_pwm; |
| 40 | bool dpwm_mode; |
| 41 | bool phase_shift; |
| 42 | unsigned int short_detection_threshold; |
| 43 | unsigned int boost_current_limit; |
| 44 | }; |
| 45 | |
| 46 | #endif |