Commit c5eb1c523fa2d0f6b503fa860d9291bbf97fc1bc

Authored by Eric Lee
1 parent af765ab7cc
Exists in emb_lf_v2022.04

Fixed compiler warning messages for i.mx8mp lvds support

Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff

drivers/video/nxp/imx/imx_lcdifv3.c
... ... @@ -32,6 +32,9 @@
32 32 #define PS2KHZ(ps) (1000000000UL / (ps))
33 33 #define HZ2PS(hz) (1000000000UL / ((hz) / 1000))
34 34  
  35 +int display_enable(struct udevice *dev, int panel_bpp,
  36 + const struct display_timing *timing);
  37 +
35 38 struct lcdifv3_priv {
36 39 fdt_addr_t reg_base;
37 40 struct udevice *disp_dev;
... ... @@ -352,7 +355,7 @@
352 355  
353 356 printf("lcdifv3_video_probe000\n");
354 357  
355   - ret = display_enable(priv->disp_dev, NULL, NULL);
  358 + ret = display_enable(priv->disp_dev, 32, NULL);
356 359 if (ret) {
357 360 debug("%s: Display enable error %d\n", __func__, ret);
358 361 return ret;
... ... @@ -418,6 +421,7 @@
418 421 }
419 422  
420 423 static const struct udevice_id lcdifv3_video_ids[] = {
  424 + { .compatible = "fsl,imx8mp-lcdif1" },
421 425 { .compatible = "fsl,imx8mp-lcdif2" },
422 426 { .compatible = "fsl,imx93-lcdif" },
423 427 { /* sentinel */ }