tegra: video: enable lgd-wxga-7 for tegranote7c
David Pu [Fri, 22 Nov 2013 03:09:36 +0000 (11:09 +0800)]
Bug 1410152

Change-Id: I2a4671472a6036d7e7581b6754cd0faed6d5ae60
Reviewed-on: http://git-master/r/334277
(cherry picked from commit 4caab090c88260e25246d91255275512b54a4adb)

Signed-off-by: David Pu <dpu@nvidia.com>
Change-Id: I7b3f69b6bd43b6fa2c0b037c4c371d9cfbe7c569
Reviewed-on: http://git-master/r/337149
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

drivers/video/backlight/of_pwm_bl_device_data/Makefile
drivers/video/backlight/of_pwm_bl_device_data/tegratab_pwm_bl_dev_data.c
drivers/video/tegra/of_lcd_device_data/Makefile
drivers/video/tegra/of_lcd_device_data/tegratab_lcd_dev_data.c

index 5156682..f21ff09 100644 (file)
@@ -1,3 +1,4 @@
 OV_PROFILE := y
 obj-${CONFIG_MACH_TEGRATAB}             += tegratab_pwm_bl_dev_data.o
+obj-${CONFIG_MACH_TEGRANOTE7C}          += tegratab_pwm_bl_dev_data.o
 
index 5e38390..9a237e1 100644 (file)
@@ -141,7 +141,8 @@ static int tegratab_pwm_bl_devdata_gen_probe(struct platform_device *pdev)
                return -ENOMEM;
 
 
-       if (of_find_compatible_node(NULL, NULL, "lgd-pwm-bl,tegratab")) {
+       if (of_find_compatible_node(NULL, NULL, "lgd-pwm-bl,tegratab")||
+               of_find_compatible_node(NULL, NULL, "lgd-pwm-bl,tegranote7c")) {
                tegratab_lgd_pwm_bl_devdata(&tegratab_lgd_pwm_bl);
                memcpy(pwm_bl_devdata, &tegratab_lgd_pwm_bl,
                                sizeof(struct of_tegra_pwm_bl_devdata));
@@ -159,6 +160,7 @@ static int tegratab_pwm_bl_devdata_gen_remove(struct platform_device *pdev)
 
 static struct of_device_id tegratab_pwm_bl_of_match[] = {
        { .compatible = "lgd-pwm-bl,tegratab", },
+       { .compatible = "lgd-pwm-bl,tegranote7c", },
        { },
 };
 
index c5541ad..06f2669 100644 (file)
@@ -1,2 +1,3 @@
 GCOV_PROFILE := y
 obj-${CONFIG_MACH_TEGRATAB}            += tegratab_lcd_dev_data.o
+obj-${CONFIG_MACH_TEGRANOTE7C}         += tegratab_lcd_dev_data.o
index dc25227..a578f84 100644 (file)
@@ -296,7 +296,8 @@ static int tegratab_lcd_devdata_gen_probe(struct platform_device *pdev)
                return -ENOMEM;
 
 
-       if (of_find_compatible_node(NULL, NULL, "lgd,tegratab")) {
+       if (of_find_compatible_node(NULL, NULL, "lgd,tegratab") ||
+               of_find_compatible_node(NULL, NULL, "lgd,tegranote7c")) {
                tegratab_lgd_lcd_devdata(&tegratab_lgd_lcd);
                memcpy(lcd_devdata, &tegratab_lgd_lcd,
                                sizeof(struct of_tegra_lcd_devdata));
@@ -314,6 +315,7 @@ static int tegratab_lcd_devdata_gen_remove(struct platform_device *pdev)
 
 static struct of_device_id tegratab_lcd_of_match[] = {
        { .compatible = "lgd,tegratab", },
+       { .compatible = "lgd,tegranote7c", },
        { },
 };