diff options
Diffstat (limited to 'drivers/video/omap2')
| -rw-r--r-- | drivers/video/omap2/displays/panel-generic.c | 22 | ||||
| -rw-r--r-- | drivers/video/omap2/displays/panel-taal.c | 16 | ||||
| -rw-r--r-- | drivers/video/omap2/displays/panel-tpo-td043mtea1.c | 1 | ||||
| -rw-r--r-- | drivers/video/omap2/dss/dss.c | 3 | ||||
| -rw-r--r-- | drivers/video/omap2/dss/manager.c | 1 | ||||
| -rw-r--r-- | drivers/video/omap2/dss/overlay.c | 1 | ||||
| -rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 1 | ||||
| -rw-r--r-- | drivers/video/omap2/vram.c | 12 |
8 files changed, 46 insertions, 11 deletions
diff --git a/drivers/video/omap2/displays/panel-generic.c b/drivers/video/omap2/displays/panel-generic.c index c59e4baed8b2..300eff5de1b4 100644 --- a/drivers/video/omap2/displays/panel-generic.c +++ b/drivers/video/omap2/displays/panel-generic.c | |||
| @@ -116,6 +116,24 @@ static int generic_panel_resume(struct omap_dss_device *dssdev) | |||
| 116 | return 0; | 116 | return 0; |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | static void generic_panel_set_timings(struct omap_dss_device *dssdev, | ||
| 120 | struct omap_video_timings *timings) | ||
| 121 | { | ||
| 122 | dpi_set_timings(dssdev, timings); | ||
| 123 | } | ||
| 124 | |||
| 125 | static void generic_panel_get_timings(struct omap_dss_device *dssdev, | ||
| 126 | struct omap_video_timings *timings) | ||
| 127 | { | ||
| 128 | *timings = dssdev->panel.timings; | ||
| 129 | } | ||
| 130 | |||
| 131 | static int generic_panel_check_timings(struct omap_dss_device *dssdev, | ||
| 132 | struct omap_video_timings *timings) | ||
| 133 | { | ||
| 134 | return dpi_check_timings(dssdev, timings); | ||
| 135 | } | ||
| 136 | |||
| 119 | static struct omap_dss_driver generic_driver = { | 137 | static struct omap_dss_driver generic_driver = { |
| 120 | .probe = generic_panel_probe, | 138 | .probe = generic_panel_probe, |
| 121 | .remove = generic_panel_remove, | 139 | .remove = generic_panel_remove, |
| @@ -125,6 +143,10 @@ static struct omap_dss_driver generic_driver = { | |||
| 125 | .suspend = generic_panel_suspend, | 143 | .suspend = generic_panel_suspend, |
| 126 | .resume = generic_panel_resume, | 144 | .resume = generic_panel_resume, |
| 127 | 145 | ||
| 146 | .set_timings = generic_panel_set_timings, | ||
| 147 | .get_timings = generic_panel_get_timings, | ||
| 148 | .check_timings = generic_panel_check_timings, | ||
| 149 | |||
| 128 | .driver = { | 150 | .driver = { |
| 129 | .name = "generic_panel", | 151 | .name = "generic_panel", |
| 130 | .owner = THIS_MODULE, | 152 | .owner = THIS_MODULE, |
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c index fcd6a61a91eb..4f3988a41082 100644 --- a/drivers/video/omap2/displays/panel-taal.c +++ b/drivers/video/omap2/displays/panel-taal.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | #include <linux/gpio.h> | 30 | #include <linux/gpio.h> |
| 31 | #include <linux/completion.h> | 31 | #include <linux/completion.h> |
| 32 | #include <linux/workqueue.h> | 32 | #include <linux/workqueue.h> |
| 33 | #include <linux/slab.h> | ||
| 33 | 34 | ||
| 34 | #include <plat/display.h> | 35 | #include <plat/display.h> |
| 35 | 36 | ||
| @@ -486,6 +487,7 @@ static struct attribute_group taal_attr_group = { | |||
| 486 | 487 | ||
| 487 | static int taal_probe(struct omap_dss_device *dssdev) | 488 | static int taal_probe(struct omap_dss_device *dssdev) |
| 488 | { | 489 | { |
| 490 | struct backlight_properties props; | ||
| 489 | struct taal_data *td; | 491 | struct taal_data *td; |
| 490 | struct backlight_device *bldev; | 492 | struct backlight_device *bldev; |
| 491 | int r; | 493 | int r; |
| @@ -520,11 +522,16 @@ static int taal_probe(struct omap_dss_device *dssdev) | |||
| 520 | 522 | ||
| 521 | /* if no platform set_backlight() defined, presume DSI backlight | 523 | /* if no platform set_backlight() defined, presume DSI backlight |
| 522 | * control */ | 524 | * control */ |
| 525 | memset(&props, 0, sizeof(struct backlight_properties)); | ||
| 523 | if (!dssdev->set_backlight) | 526 | if (!dssdev->set_backlight) |
| 524 | td->use_dsi_bl = true; | 527 | td->use_dsi_bl = true; |
| 525 | 528 | ||
| 529 | if (td->use_dsi_bl) | ||
| 530 | props.max_brightness = 255; | ||
| 531 | else | ||
| 532 | props.max_brightness = 127; | ||
| 526 | bldev = backlight_device_register("taal", &dssdev->dev, dssdev, | 533 | bldev = backlight_device_register("taal", &dssdev->dev, dssdev, |
| 527 | &taal_bl_ops); | 534 | &taal_bl_ops, &props); |
| 528 | if (IS_ERR(bldev)) { | 535 | if (IS_ERR(bldev)) { |
| 529 | r = PTR_ERR(bldev); | 536 | r = PTR_ERR(bldev); |
| 530 | goto err2; | 537 | goto err2; |
| @@ -534,13 +541,10 @@ static int taal_probe(struct omap_dss_device *dssdev) | |||
| 534 | 541 | ||
| 535 | bldev->props.fb_blank = FB_BLANK_UNBLANK; | 542 | bldev->props.fb_blank = FB_BLANK_UNBLANK; |
| 536 | bldev->props.power = FB_BLANK_UNBLANK; | 543 | bldev->props.power = FB_BLANK_UNBLANK; |
| 537 | if (td->use_dsi_bl) { | 544 | if (td->use_dsi_bl) |
| 538 | bldev->props.max_brightness = 255; | ||
| 539 | bldev->props.brightness = 255; | 545 | bldev->props.brightness = 255; |
| 540 | } else { | 546 | else |
| 541 | bldev->props.max_brightness = 127; | ||
| 542 | bldev->props.brightness = 127; | 547 | bldev->props.brightness = 127; |
| 543 | } | ||
| 544 | 548 | ||
| 545 | taal_bl_update_status(bldev); | 549 | taal_bl_update_status(bldev); |
| 546 | 550 | ||
diff --git a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c index d578feee3550..e866e76b13d0 100644 --- a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include <linux/regulator/consumer.h> | 15 | #include <linux/regulator/consumer.h> |
| 16 | #include <linux/gpio.h> | 16 | #include <linux/gpio.h> |
| 17 | #include <linux/err.h> | 17 | #include <linux/err.h> |
| 18 | #include <linux/slab.h> | ||
| 18 | 19 | ||
| 19 | #include <plat/display.h> | 20 | #include <plat/display.h> |
| 20 | 21 | ||
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 8254a4232a53..54344184dd73 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
| @@ -590,6 +590,9 @@ int dss_init(bool skip_init) | |||
| 590 | } | 590 | } |
| 591 | } | 591 | } |
| 592 | 592 | ||
| 593 | dss.dsi_clk_source = DSS_SRC_DSS1_ALWON_FCLK; | ||
| 594 | dss.dispc_clk_source = DSS_SRC_DSS1_ALWON_FCLK; | ||
| 595 | |||
| 593 | dss_save_context(); | 596 | dss_save_context(); |
| 594 | 597 | ||
| 595 | rev = dss_read_reg(DSS_REVISION); | 598 | rev = dss_read_reg(DSS_REVISION); |
diff --git a/drivers/video/omap2/dss/manager.c b/drivers/video/omap2/dss/manager.c index 9acef00c47ea..0820986d4a68 100644 --- a/drivers/video/omap2/dss/manager.c +++ b/drivers/video/omap2/dss/manager.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #define DSS_SUBSYS_NAME "MANAGER" | 23 | #define DSS_SUBSYS_NAME "MANAGER" |
| 24 | 24 | ||
| 25 | #include <linux/kernel.h> | 25 | #include <linux/kernel.h> |
| 26 | #include <linux/slab.h> | ||
| 26 | #include <linux/module.h> | 27 | #include <linux/module.h> |
| 27 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
| 28 | #include <linux/spinlock.h> | 29 | #include <linux/spinlock.h> |
diff --git a/drivers/video/omap2/dss/overlay.c b/drivers/video/omap2/dss/overlay.c index aed3f3194347..82336583adef 100644 --- a/drivers/video/omap2/dss/overlay.c +++ b/drivers/video/omap2/dss/overlay.c | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <linux/kobject.h> | 29 | #include <linux/kobject.h> |
| 30 | #include <linux/platform_device.h> | 30 | #include <linux/platform_device.h> |
| 31 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
| 32 | #include <linux/slab.h> | ||
| 32 | 33 | ||
| 33 | #include <plat/display.h> | 34 | #include <plat/display.h> |
| 34 | #include <plat/cpu.h> | 35 | #include <plat/cpu.h> |
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 4a76917b7cc8..4b4506da96da 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
| 24 | #include <linux/delay.h> | 24 | #include <linux/delay.h> |
| 25 | #include <linux/slab.h> | ||
| 25 | #include <linux/fb.h> | 26 | #include <linux/fb.h> |
| 26 | #include <linux/dma-mapping.h> | 27 | #include <linux/dma-mapping.h> |
| 27 | #include <linux/vmalloc.h> | 28 | #include <linux/vmalloc.h> |
diff --git a/drivers/video/omap2/vram.c b/drivers/video/omap2/vram.c index 55a4de5e5d10..3b1237ad85ed 100644 --- a/drivers/video/omap2/vram.c +++ b/drivers/video/omap2/vram.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
| 24 | #include <linux/mm.h> | 24 | #include <linux/mm.h> |
| 25 | #include <linux/list.h> | 25 | #include <linux/list.h> |
| 26 | #include <linux/slab.h> | ||
| 26 | #include <linux/seq_file.h> | 27 | #include <linux/seq_file.h> |
| 27 | #include <linux/bootmem.h> | 28 | #include <linux/bootmem.h> |
| 28 | #include <linux/completion.h> | 29 | #include <linux/completion.h> |
| @@ -511,13 +512,14 @@ static u32 omap_vram_sdram_size __initdata; | |||
| 511 | static u32 omap_vram_def_sdram_size __initdata; | 512 | static u32 omap_vram_def_sdram_size __initdata; |
| 512 | static u32 omap_vram_def_sdram_start __initdata; | 513 | static u32 omap_vram_def_sdram_start __initdata; |
| 513 | 514 | ||
| 514 | static void __init omap_vram_early_vram(char **p) | 515 | static int __init omap_vram_early_vram(char *p) |
| 515 | { | 516 | { |
| 516 | omap_vram_def_sdram_size = memparse(*p, p); | 517 | omap_vram_def_sdram_size = memparse(p, &p); |
| 517 | if (**p == ',') | 518 | if (*p == ',') |
| 518 | omap_vram_def_sdram_start = simple_strtoul((*p) + 1, p, 16); | 519 | omap_vram_def_sdram_start = simple_strtoul(p + 1, &p, 16); |
| 520 | return 0; | ||
| 519 | } | 521 | } |
| 520 | __early_param("vram=", omap_vram_early_vram); | 522 | early_param("vram", omap_vram_early_vram); |
| 521 | 523 | ||
| 522 | /* | 524 | /* |
| 523 | * Called from map_io. We need to call to this early enough so that we | 525 | * Called from map_io. We need to call to this early enough so that we |
