diff options
author | Timo Alho <talho@nvidia.com> | 2013-11-06 15:44:23 +0200 |
---|---|---|
committer | Juha Tukkinen <jtukkinen@nvidia.com> | 2013-11-08 04:14:59 -0800 |
commit | e5e08fd4c5726839aa81e7e4484cdfc9d21b3862 (patch) | |
tree | 9ff27f2cd88891bfd4ede420dd004fae9ce81173 /arch/arm/mach-tegra/board-tn8-sysedp.c | |
parent | e991a062db686edc9f894f87d86d03411a525c0f (diff) |
EDP: tn8: add consumer data for 8" display
Add support for 8" display. Detect the used panel and apply correct
consumer data accordingly.
Change-Id: I0d2fc0b7eb371c9a89892b85fdb8b694af64d039
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/327109
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-tn8-sysedp.c')
-rw-r--r-- | arch/arm/mach-tegra/board-tn8-sysedp.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-tn8-sysedp.c b/arch/arm/mach-tegra/board-tn8-sysedp.c index 3ecf2ee0eb99..259a04b45539 100644 --- a/arch/arm/mach-tegra/board-tn8-sysedp.c +++ b/arch/arm/mach-tegra/board-tn8-sysedp.c @@ -29,8 +29,12 @@ static unsigned int mt9m114_states[] = { 0, 150 }; static unsigned int sdhci_states[] = { 0, 966 }; static unsigned int speaker_states[] = { 0, 1080 }; static unsigned int wifi_states[] = { 0, 1020 }; -/* 10" panel */ static unsigned int pwm_backlight_states[] = { + 0, 125, 250, 375, 500, 625, 750, 875, 1000, 1125, 1250 +}; + +/* (optional) 10" panel */ +static unsigned int pwm_backlight_10_states[] = { 0, 425, 851, 1276, 1702, 2127, 2553, 2978, 3404, 3829, 4255 }; static unsigned int as364x_states[] = { @@ -63,6 +67,14 @@ static struct platform_device tn8_sysedp_device = { void __init tn8_new_sysedp_init(void) { int r; + struct board_info board; + + tegra_get_display_board_info(&board); + + /* Some TN8 boards use non-default display */ + if (board.board_id != BOARD_E1549) + memcpy(pwm_backlight_states, pwm_backlight_10_states, + sizeof(pwm_backlight_states)); r = platform_device_register(&tn8_sysedp_device); WARN_ON(r); |