diff options
| author | Gyungoh Yoo <jack.yoo@skyworksinc.com> | 2015-02-27 01:42:22 -0500 |
|---|---|---|
| committer | Lee Jones <lee.jones@linaro.org> | 2015-03-12 05:08:19 -0400 |
| commit | f705806c9f355fc63911dea72a65d8eeff0c2586 (patch) | |
| tree | f84836db753b34b05ffe203eea86c2ea78d77eae /include/linux/platform_data | |
| parent | 2698dc22292e3e5fc2b24b2748018dcc09d70989 (diff) | |
backlight: Add support Skyworks SKY81452 backlight driver
Signed-off-by: Gyungoh Yoo <jack.yoo@skyworksinc.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Bryan Wu <cooloney@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/sky81452-backlight.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/linux/platform_data/sky81452-backlight.h b/include/linux/platform_data/sky81452-backlight.h new file mode 100644 index 000000000000..1231e9bb00f1 --- /dev/null +++ b/include/linux/platform_data/sky81452-backlight.h | |||
| @@ -0,0 +1,46 @@ | |||
| 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 | ||
