mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 01:19:49 +00:00
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>
This commit is contained in:
parent
2bdfde5a00
commit
72fef43d4d
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue