imx8mp-somdevices: Remove warnings and printf of LVDS.
authorJosep Orga <jorga@somdevices.com>
Tue, 12 Sep 2023 11:21:41 +0000 (13:21 +0200)
committerJosep Orga <jorga@somdevices.com>
Wed, 13 Sep 2023 07:30:33 +0000 (09:30 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
drivers/video/nxp/imx/imx8mp_lvds.c
drivers/video/nxp/imx/imx_lcdifv3.c

index 091d606..c6dde88 100644 (file)
@@ -20,6 +20,8 @@
 #include <regmap.h>
 #include <syscon.h>
 
+#include <panel.h>
+
 #define DRIVER_NAME "imx8mp-ldb"
 
 
@@ -98,7 +100,6 @@ static int imx8mp_lvds_phy_power_on(struct udevice *dev)
        struct imx8mp_ldb_priv *priv = dev_get_priv(dev);
        
        unsigned int val;
-       u32 ldb_ctrl;
        bool bg_en;
 
        media_blk_write(priv, LVDS_CTRL, HS_DISABLE);
@@ -146,7 +147,6 @@ static int imx8mp_ldb_probe(struct udevice *dev)
        int ret;
 
        debug("%s\n", __func__);
-       printf("imx8mp_ldb_probe");
 
        if (dev->plat_ == NULL) {
                priv->regmap = syscon_regmap_lookup_by_phandle(dev, "gpr");
@@ -202,7 +202,6 @@ static int imx8mp_ldb_probe(struct udevice *dev)
                        }
                }
        }
-    printf("imx8mp_ldb_probe\n");
 
        return 0;
 
@@ -210,7 +209,6 @@ static int imx8mp_ldb_probe(struct udevice *dev)
 
 static int imx8mp_ldb_bind(struct udevice *dev)
 {
-       struct imx8mp_ldb_priv *priv = dev_get_priv(dev);
        ofnode lvds_ch_node;
        int ret = 0;
 
index 8a2d7e8..72707de 100644 (file)
@@ -345,9 +345,7 @@ static int lcdifv3_video_probe(struct udevice *dev)
 
        lcdifv3_of_parse_thres(dev);
 
-       printf("lcdifv3_video_probe000\n");
-
-       ret = display_enable(priv->disp_dev, NULL, NULL);
+       ret = display_enable(priv->disp_dev, 24, NULL);
        if (ret) {
                debug("%s: Display enable error %d\n", __func__, ret);
                return ret;