Skip to content

Commit 9296dbd

Browse files
committed
Merge branch '3.8/misc-2'
Merge omapdss miscellaneous patches.
2 parents f8fb7d7 + ffc81fc commit 9296dbd

27 files changed

Lines changed: 315 additions & 664 deletions

‎arch/arm/mach-omap2/display.c‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,20 @@ static const struct omap_dss_hwmod_data omap4_dss_hwmod_data[] __initconst = {
100100
{ "dss_hdmi", "omapdss_hdmi", -1 },
101101
};
102102

103-
static void __init omap4_hdmi_mux_pads(enum omap_hdmi_flags flags)
103+
static void __init omap4_tpd12s015_mux_pads(void)
104104
{
105-
u32 reg;
106-
u16 control_i2c_1;
107-
108105
omap_mux_init_signal("hdmi_cec",
109106
OMAP_PIN_INPUT_PULLUP);
110107
omap_mux_init_signal("hdmi_ddc_scl",
111108
OMAP_PIN_INPUT_PULLUP);
112109
omap_mux_init_signal("hdmi_ddc_sda",
113110
OMAP_PIN_INPUT_PULLUP);
111+
}
112+
113+
static void __init omap4_hdmi_mux_pads(enum omap_hdmi_flags flags)
114+
{
115+
u32 reg;
116+
u16 control_i2c_1;
114117

115118
/*
116119
* CONTROL_I2C_1: HDMI_DDC_SDA_PULLUPRESX (bit 28) and
@@ -161,8 +164,10 @@ static int omap4_dsi_mux_pads(int dsi_id, unsigned lanes)
161164

162165
int __init omap_hdmi_init(enum omap_hdmi_flags flags)
163166
{
164-
if (cpu_is_omap44xx())
167+
if (cpu_is_omap44xx()) {
165168
omap4_hdmi_mux_pads(flags);
169+
omap4_tpd12s015_mux_pads();
170+
}
166171

167172
return 0;
168173
}

‎drivers/video/omap2/displays/panel-acx565akm.c‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -710,27 +710,6 @@ static void acx_panel_disable(struct omap_dss_device *dssdev)
710710
dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
711711
}
712712

713-
static int acx_panel_suspend(struct omap_dss_device *dssdev)
714-
{
715-
dev_dbg(&dssdev->dev, "%s\n", __func__);
716-
acx_panel_power_off(dssdev);
717-
dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
718-
return 0;
719-
}
720-
721-
static int acx_panel_resume(struct omap_dss_device *dssdev)
722-
{
723-
int r;
724-
725-
dev_dbg(&dssdev->dev, "%s\n", __func__);
726-
r = acx_panel_power_on(dssdev);
727-
if (r)
728-
return r;
729-
730-
dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
731-
return 0;
732-
}
733-
734713
static void acx_panel_set_timings(struct omap_dss_device *dssdev,
735714
struct omap_video_timings *timings)
736715
{
@@ -752,8 +731,6 @@ static struct omap_dss_driver acx_panel_driver = {
752731

753732
.enable = acx_panel_enable,
754733
.disable = acx_panel_disable,
755-
.suspend = acx_panel_suspend,
756-
.resume = acx_panel_resume,
757734

758735
.set_timings = acx_panel_set_timings,
759736
.check_timings = acx_panel_check_timings,

‎drivers/video/omap2/displays/panel-generic-dpi.c‎

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -688,40 +688,6 @@ static void generic_dpi_panel_disable(struct omap_dss_device *dssdev)
688688
mutex_unlock(&drv_data->lock);
689689
}
690690

691-
static int generic_dpi_panel_suspend(struct omap_dss_device *dssdev)
692-
{
693-
struct panel_drv_data *drv_data = dev_get_drvdata(&dssdev->dev);
694-
695-
mutex_lock(&drv_data->lock);
696-
697-
generic_dpi_panel_power_off(dssdev);
698-
699-
dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
700-
701-
mutex_unlock(&drv_data->lock);
702-
703-
return 0;
704-
}
705-
706-
static int generic_dpi_panel_resume(struct omap_dss_device *dssdev)
707-
{
708-
struct panel_drv_data *drv_data = dev_get_drvdata(&dssdev->dev);
709-
int r;
710-
711-
mutex_lock(&drv_data->lock);
712-
713-
r = generic_dpi_panel_power_on(dssdev);
714-
if (r)
715-
goto err;
716-
717-
dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
718-
719-
err:
720-
mutex_unlock(&drv_data->lock);
721-
722-
return r;
723-
}
724-
725691
static void generic_dpi_panel_set_timings(struct omap_dss_device *dssdev,
726692
struct omap_video_timings *timings)
727693
{
@@ -769,8 +735,6 @@ static struct omap_dss_driver dpi_driver = {
769735

770736
.enable = generic_dpi_panel_enable,
771737
.disable = generic_dpi_panel_disable,
772-
.suspend = generic_dpi_panel_suspend,
773-
.resume = generic_dpi_panel_resume,
774738

775739
.set_timings = generic_dpi_panel_set_timings,
776740
.get_timings = generic_dpi_panel_get_timings,

‎drivers/video/omap2/displays/panel-lgphilips-lb035q02.c‎

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -143,46 +143,12 @@ static void lb035q02_panel_disable(struct omap_dss_device *dssdev)
143143
mutex_unlock(&ld->lock);
144144
}
145145

146-
static int lb035q02_panel_suspend(struct omap_dss_device *dssdev)
147-
{
148-
struct lb035q02_data *ld = dev_get_drvdata(&dssdev->dev);
149-
150-
mutex_lock(&ld->lock);
151-
152-
lb035q02_panel_power_off(dssdev);
153-
dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
154-
155-
mutex_unlock(&ld->lock);
156-
return 0;
157-
}
158-
159-
static int lb035q02_panel_resume(struct omap_dss_device *dssdev)
160-
{
161-
struct lb035q02_data *ld = dev_get_drvdata(&dssdev->dev);
162-
int r;
163-
164-
mutex_lock(&ld->lock);
165-
166-
r = lb035q02_panel_power_on(dssdev);
167-
if (r)
168-
goto err;
169-
dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
170-
171-
mutex_unlock(&ld->lock);
172-
return 0;
173-
err:
174-
mutex_unlock(&ld->lock);
175-
return r;
176-
}
177-
178146
static struct omap_dss_driver lb035q02_driver = {
179147
.probe = lb035q02_panel_probe,
180148
.remove = lb035q02_panel_remove,
181149

182150
.enable = lb035q02_panel_enable,
183151
.disable = lb035q02_panel_disable,
184-
.suspend = lb035q02_panel_suspend,
185-
.resume = lb035q02_panel_resume,
186152

187153
.driver = {
188154
.name = "lgphilips_lb035q02_panel",

‎drivers/video/omap2/displays/panel-n8x0.c‎

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -574,54 +574,6 @@ static void n8x0_panel_disable(struct omap_dss_device *dssdev)
574574
mutex_unlock(&ddata->lock);
575575
}
576576

577-
static int n8x0_panel_suspend(struct omap_dss_device *dssdev)
578-
{
579-
struct panel_drv_data *ddata = get_drv_data(dssdev);
580-
581-
dev_dbg(&dssdev->dev, "suspend\n");
582-
583-
mutex_lock(&ddata->lock);
584-
585-
rfbi_bus_lock();
586-
587-
n8x0_panel_power_off(dssdev);
588-
589-
rfbi_bus_unlock();
590-
591-
dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
592-
593-
mutex_unlock(&ddata->lock);
594-
595-
return 0;
596-
}
597-
598-
static int n8x0_panel_resume(struct omap_dss_device *dssdev)
599-
{
600-
struct panel_drv_data *ddata = get_drv_data(dssdev);
601-
int r;
602-
603-
dev_dbg(&dssdev->dev, "resume\n");
604-
605-
mutex_lock(&ddata->lock);
606-
607-
rfbi_bus_lock();
608-
609-
r = n8x0_panel_power_on(dssdev);
610-
611-
rfbi_bus_unlock();
612-
613-
if (r) {
614-
mutex_unlock(&ddata->lock);
615-
return r;
616-
}
617-
618-
dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
619-
620-
mutex_unlock(&ddata->lock);
621-
622-
return 0;
623-
}
624-
625577
static void n8x0_panel_get_resolution(struct omap_dss_device *dssdev,
626578
u16 *xres, u16 *yres)
627579
{
@@ -683,8 +635,6 @@ static struct omap_dss_driver n8x0_panel_driver = {
683635

684636
.enable = n8x0_panel_enable,
685637
.disable = n8x0_panel_disable,
686-
.suspend = n8x0_panel_suspend,
687-
.resume = n8x0_panel_resume,
688638

689639
.update = n8x0_panel_update,
690640
.sync = n8x0_panel_sync,

‎drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -236,28 +236,6 @@ static void nec_8048_panel_disable(struct omap_dss_device *dssdev)
236236
dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
237237
}
238238

239-
static int nec_8048_panel_suspend(struct omap_dss_device *dssdev)
240-
{
241-
nec_8048_panel_power_off(dssdev);
242-
243-
dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
244-
245-
return 0;
246-
}
247-
248-
static int nec_8048_panel_resume(struct omap_dss_device *dssdev)
249-
{
250-
int r;
251-
252-
r = nec_8048_panel_power_on(dssdev);
253-
if (r)
254-
return r;
255-
256-
dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
257-
258-
return 0;
259-
}
260-
261239
static int nec_8048_recommended_bpp(struct omap_dss_device *dssdev)
262240
{
263241
return 16;
@@ -268,8 +246,6 @@ static struct omap_dss_driver nec_8048_driver = {
268246
.remove = nec_8048_panel_remove,
269247
.enable = nec_8048_panel_enable,
270248
.disable = nec_8048_panel_disable,
271-
.suspend = nec_8048_panel_suspend,
272-
.resume = nec_8048_panel_resume,
273249
.get_recommended_bpp = nec_8048_recommended_bpp,
274250

275251
.driver = {

‎drivers/video/omap2/displays/panel-picodlp.c‎

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -503,47 +503,6 @@ static void picodlp_panel_disable(struct omap_dss_device *dssdev)
503503
dev_dbg(&dssdev->dev, "disabling picodlp panel\n");
504504
}
505505

506-
static int picodlp_panel_suspend(struct omap_dss_device *dssdev)
507-
{
508-
struct picodlp_data *picod = dev_get_drvdata(&dssdev->dev);
509-
510-
mutex_lock(&picod->lock);
511-
/* Turn off DLP Power */
512-
if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE) {
513-
mutex_unlock(&picod->lock);
514-
dev_err(&dssdev->dev, "unable to suspend picodlp panel,"
515-
" panel is not ACTIVE\n");
516-
return -EINVAL;
517-
}
518-
519-
picodlp_panel_power_off(dssdev);
520-
521-
dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
522-
mutex_unlock(&picod->lock);
523-
524-
dev_dbg(&dssdev->dev, "suspending picodlp panel\n");
525-
return 0;
526-
}
527-
528-
static int picodlp_panel_resume(struct omap_dss_device *dssdev)
529-
{
530-
struct picodlp_data *picod = dev_get_drvdata(&dssdev->dev);
531-
int r;
532-
533-
mutex_lock(&picod->lock);
534-
if (dssdev->state != OMAP_DSS_DISPLAY_SUSPENDED) {
535-
mutex_unlock(&picod->lock);
536-
dev_err(&dssdev->dev, "unable to resume picodlp panel,"
537-
" panel is not ACTIVE\n");
538-
return -EINVAL;
539-
}
540-
541-
r = picodlp_panel_power_on(dssdev);
542-
mutex_unlock(&picod->lock);
543-
dev_dbg(&dssdev->dev, "resuming picodlp panel\n");
544-
return r;
545-
}
546-
547506
static void picodlp_get_resolution(struct omap_dss_device *dssdev,
548507
u16 *xres, u16 *yres)
549508
{
@@ -560,9 +519,6 @@ static struct omap_dss_driver picodlp_driver = {
560519

561520
.get_resolution = picodlp_get_resolution,
562521

563-
.suspend = picodlp_panel_suspend,
564-
.resume = picodlp_panel_resume,
565-
566522
.driver = {
567523
.name = "picodlp_panel",
568524
.owner = THIS_MODULE,

‎drivers/video/omap2/displays/panel-sharp-ls037v7dw01.c‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -194,29 +194,12 @@ static void sharp_ls_panel_disable(struct omap_dss_device *dssdev)
194194
dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
195195
}
196196

197-
static int sharp_ls_panel_suspend(struct omap_dss_device *dssdev)
198-
{
199-
sharp_ls_power_off(dssdev);
200-
dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
201-
return 0;
202-
}
203-
204-
static int sharp_ls_panel_resume(struct omap_dss_device *dssdev)
205-
{
206-
int r;
207-
r = sharp_ls_power_on(dssdev);
208-
dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
209-
return r;
210-
}
211-
212197
static struct omap_dss_driver sharp_ls_driver = {
213198
.probe = sharp_ls_panel_probe,
214199
.remove = __exit_p(sharp_ls_panel_remove),
215200

216201
.enable = sharp_ls_panel_enable,
217202
.disable = sharp_ls_panel_disable,
218-
.suspend = sharp_ls_panel_suspend,
219-
.resume = sharp_ls_panel_resume,
220203

221204
.driver = {
222205
.name = "sharp_ls_panel",

0 commit comments

Comments
 (0)