drm: Use new DRM_BUS_FLAG_*_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags
The DRM_BUS_FLAG_PIXDATA_(POS|NEG)EDGE and DRM_BUS_FLAG_SYNC_(POS|NEG)EDGE flags are deprecated in favour of the new DRM_BUS_FLAG_PIXDATA_(DRIVE|SAMPLE)_(POS|NEG)EDGE and new DRM_BUS_FLAG_SYNC_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags. Replace them through the code. This effectively changes the value of the .sampling_edge bridge timings field in the dumb-vga-dac driver. This is safe to do as no driver consumes these values yet. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Stefan Agner <stefan@agner.ch> Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
这个提交包含在:
@@ -86,8 +86,9 @@ static int tfp410_probe(struct platform_device *pdev)
|
||||
dssdev->type = OMAP_DISPLAY_TYPE_DPI;
|
||||
dssdev->owner = THIS_MODULE;
|
||||
dssdev->of_ports = BIT(1) | BIT(0);
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_SYNC_POSEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_POSEDGE;
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH
|
||||
| DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE;
|
||||
|
||||
dssdev->next = omapdss_of_find_connected_device(pdev->dev.of_node, 1);
|
||||
if (IS_ERR(dssdev->next)) {
|
||||
|
@@ -207,8 +207,9 @@ static int lb035q02_panel_spi_probe(struct spi_device *spi)
|
||||
* DE is active LOW
|
||||
* DATA needs to be driven on the FALLING edge
|
||||
*/
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_SYNC_NEGEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_POSEDGE;
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH
|
||||
| DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE;
|
||||
|
||||
omapdss_display_init(dssdev);
|
||||
omapdss_device_register(dssdev);
|
||||
|
@@ -196,8 +196,9 @@ static int nec_8048_probe(struct spi_device *spi)
|
||||
dssdev->owner = THIS_MODULE;
|
||||
dssdev->of_ports = BIT(0);
|
||||
dssdev->ops_flags = OMAP_DSS_DEVICE_OP_MODES;
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_SYNC_POSEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_POSEDGE;
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH
|
||||
| DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE;
|
||||
|
||||
omapdss_display_init(dssdev);
|
||||
omapdss_device_register(dssdev);
|
||||
|
@@ -216,8 +216,9 @@ static int sharp_ls_probe(struct platform_device *pdev)
|
||||
* Note: According to the panel documentation:
|
||||
* DATA needs to be driven on the FALLING edge
|
||||
*/
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_SYNC_NEGEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_POSEDGE;
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH
|
||||
| DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE;
|
||||
|
||||
omapdss_display_init(dssdev);
|
||||
omapdss_device_register(dssdev);
|
||||
|
@@ -710,8 +710,9 @@ static int acx565akm_probe(struct spi_device *spi)
|
||||
dssdev->owner = THIS_MODULE;
|
||||
dssdev->of_ports = BIT(0);
|
||||
dssdev->ops_flags = OMAP_DSS_DEVICE_OP_MODES;
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_SYNC_NEGEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_POSEDGE;
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH
|
||||
| DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE;
|
||||
|
||||
omapdss_display_init(dssdev);
|
||||
omapdss_device_register(dssdev);
|
||||
|
@@ -330,8 +330,9 @@ static int td028ttec1_panel_probe(struct spi_device *spi)
|
||||
* Note: According to the panel documentation:
|
||||
* SYNC needs to be driven on the FALLING edge
|
||||
*/
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_SYNC_POSEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_NEGEDGE;
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH
|
||||
| DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE;
|
||||
|
||||
omapdss_display_init(dssdev);
|
||||
omapdss_device_register(dssdev);
|
||||
|
@@ -429,8 +429,9 @@ static int tpo_td043_probe(struct spi_device *spi)
|
||||
* Note: According to the panel documentation:
|
||||
* SYNC needs to be driven on the FALLING edge
|
||||
*/
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_SYNC_POSEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_NEGEDGE;
|
||||
dssdev->bus_flags = DRM_BUS_FLAG_DE_HIGH
|
||||
| DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE
|
||||
| DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE;
|
||||
|
||||
omapdss_display_init(dssdev);
|
||||
omapdss_device_register(dssdev);
|
||||
|
在新工单中引用
屏蔽一个用户