summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2020-04-27 17:53:05 +0200
committerStefano Babic <sbabic@denx.de>2020-05-01 19:03:18 +0200
commit72fef43d4d4043cf62fc9d8da6b41fe17f3dfb5e (patch)
tree88fa43bba84059547dd39e30bc20f67d5475fd7c /drivers/video
parent2bdfde5a000001e5e401e51e21e0784bc83b9922 (diff)
downloadu-boot-72fef43d4d4043cf62fc9d8da6b41fe17f3dfb5e.tar.gz
u-boot-72fef43d4d4043cf62fc9d8da6b41fe17f3dfb5e.tar.bz2
u-boot-72fef43d4d4043cf62fc9d8da6b41fe17f3dfb5e.zip
video: mxsfb: add clk_enable()
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/mxsfb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
index 8a5a61c9fb..12d00b4689 100644
--- a/drivers/video/mxsfb.c
+++ b/drivers/video/mxsfb.c
@@ -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);