]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: mxsfb: add clk_enable()
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Mon, 27 Apr 2020 15:53:05 +0000 (17:53 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 1 May 2020 17:03:18 +0000 (19:03 +0200)
BROM doesn't enable lcdif by default so add clk_enable() after
clk_set_rate().

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
drivers/video/mxsfb.c

index 8a5a61c9fb7c88043d6868414c92dccf26f62b8c..12d00b468948d87084238a26848e3b7aabca0e17 100644 (file)
@@ -77,6 +77,12 @@ static void mxs_lcd_init(struct udevice *dev, u32 fb_addr,
                dev_err(dev, "Failed to set mxs clk: %d\n", ret);
                return;
        }
+
+       ret = clk_enable(&per_clk);
+       if (ret < 0) {
+               dev_err(dev, "Failed to enable mxs clk: %d\n", ret);
+               return;
+       }
 #else
        /* Kick in the LCDIF clock */
        mxs_set_lcdclk(MXS_LCDIF_BASE, timings->pixelclock.typ / 1000);