diff options
author | Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com> | 2013-10-15 10:31:18 +0530 |
---|---|---|
committer | Mitch Luban <mluban@nvidia.com> | 2013-10-24 13:46:09 -0700 |
commit | 74df06fb565b7250bc86d79727b66bb02259d54c (patch) | |
tree | f2803a3c7ca7e406763d1f223cbc197ab3fcf8aa /arch/arm/mach-tegra/panel-s-wqxga-10-1.c | |
parent | 6acb6f2626b1569de075574e67619a5dd934c48b (diff) |
video: backlight: EDP client for backlight
Implements EDP client for TN8 & Shield ERS backlight system
Bug 1359894
Bug 1358209
Change-Id: I4ca1e49d18f9b91d2a6be55235f82bd3f4681ac5
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/299293
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/panel-s-wqxga-10-1.c')
-rw-r--r-- | arch/arm/mach-tegra/panel-s-wqxga-10-1.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/panel-s-wqxga-10-1.c b/arch/arm/mach-tegra/panel-s-wqxga-10-1.c index c3bfc1d52c2c..6cf89951b8a1 100644 --- a/arch/arm/mach-tegra/panel-s-wqxga-10-1.c +++ b/arch/arm/mach-tegra/panel-s-wqxga-10-1.c @@ -660,9 +660,39 @@ static struct platform_device __maybe_unused &dsi_s_wqxga_10_1_bl_device, }; +static unsigned int dsi_s_shield_edp_states[] = { + 909, 809, 709, 609, 509, 410, 310, 210, 110, 0 +}; +static unsigned int dsi_s_shield_edp_brightness[] = { + 255, 227, 199, 171, 143, 115, 87, 59, 31, 0 +}; +static unsigned int dsi_s_tn8_edp_states[] = { + 909, 809, 709, 609, 509, 410, 310, 210, 110, 0 +}; +static unsigned int dsi_s_tn8_edp_brightness[] = { + 255, 227, 199, 171, 143, 115, 87, 59, 31, 0 +}; + static int __init dsi_s_wqxga_10_1_register_bl_dev(void) { int err = 0; + struct board_info board_info; + tegra_get_board_info(&board_info); + + if (board_info.board_id == BOARD_E1780) { + if (board_info.sku == 1000) { + dsi_s_wqxga_10_1_bl_data.edp_states = + dsi_s_shield_edp_states; + dsi_s_wqxga_10_1_bl_data.edp_brightness = + dsi_s_shield_edp_brightness; + } else if (board_info.sku == 1100) { + dsi_s_wqxga_10_1_bl_data.edp_states = + dsi_s_tn8_edp_states; + dsi_s_wqxga_10_1_bl_data.edp_brightness = + dsi_s_tn8_edp_brightness; + } + } + err = platform_add_devices(dsi_s_wqxga_10_1_bl_devices, ARRAY_SIZE(dsi_s_wqxga_10_1_bl_devices)); if (err) { |