diff options
author | Hayden Du <haydend@nvidia.com> | 2013-06-03 19:28:44 +0800 |
---|---|---|
committer | Harshada Kale <hkale@nvidia.com> | 2013-06-05 07:08:44 -0700 |
commit | 52f67a0d6804a36ad59e9e84c8c3965dad4499bb (patch) | |
tree | 52db4bff929ebbe113ece57175531d20c22c05ab /include | |
parent | 846dfcc14e58f9702b36207e4160746dc81bb60d (diff) |
backlight: pwm_bl: Add support for EDP
Added EDP support for pwm backlight
bug 1299129
Change-Id: I0164a1b5c79dad36651641720aca0a8b0f715c4c
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/234977
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pwm_backlight.h | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h index 7b4365dcd089..ea5c0a0f9967 100644 --- a/include/linux/pwm_backlight.h +++ b/include/linux/pwm_backlight.h @@ -1,11 +1,36 @@ -/* - * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c +/* Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c + * + * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef __LINUX_PWM_BACKLIGHT_H #define __LINUX_PWM_BACKLIGHT_H #include <linux/backlight.h> +enum tegra_pwm_bl_edp_states { + TEGRA_PWM_BL_EDP_NEG_3, + TEGRA_PWM_BL_EDP_NEG_2, + TEGRA_PWM_BL_EDP_NEG_1, + TEGRA_PWM_BL_EDP_ZERO, + TEGRA_PWM_BL_EDP_1, + TEGRA_PWM_BL_EDP_2, + TEGRA_PWM_BL_EDP_NUM_STATES, +}; + struct platform_pwm_backlight_data { int pwm_id; unsigned int max_brightness; @@ -13,6 +38,8 @@ struct platform_pwm_backlight_data { unsigned int lth_brightness; unsigned int pwm_period_ns; unsigned int pwm_gpio; + unsigned int edp_states[TEGRA_PWM_BL_EDP_NUM_STATES]; + unsigned int edp_brightness[TEGRA_PWM_BL_EDP_NUM_STATES]; int (*init)(struct device *dev); int (*notify)(struct device *dev, int brightness); void (*notify_after)(struct device *dev, int brightness); |