diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2021-05-13 12:18:47 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-06-09 13:01:33 +0200 |
commit | 006f0dfb1d6dfa2bf7b1a08d2abcaf40eee6ae96 (patch) | |
tree | 7f01a2554622a5a06bc03eab7165ef45fd2c09d6 /drivers/video | |
parent | ee62a053447ec7f204d086d8c072a601056f10d0 (diff) | |
download | u-boot-006f0dfb1d6dfa2bf7b1a08d2abcaf40eee6ae96.zip u-boot-006f0dfb1d6dfa2bf7b1a08d2abcaf40eee6ae96.tar.gz u-boot-006f0dfb1d6dfa2bf7b1a08d2abcaf40eee6ae96.tar.bz2 |
video: mxsfb: add enabling of "disp_axi" clock
Some SoC needs "disp_axi" clock to be enabled, so let's try to retrieve it
and enabling. If it fails it gives only a debug(), but this clock as well
as "axi" clock is not mandatory.
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/mxsfb.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 147bd66..523d8a8 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -98,6 +98,17 @@ static void mxs_lcd_init(struct udevice *dev, u32 fb_addr, return; } } + + ret = clk_get_by_name(dev, "disp_axi", &clk); + if (!ret) { + debug("%s: Failed to get mxs disp_axi clk: %d\n", __func__, ret); + } else { + ret = clk_enable(&clk); + if (ret < 0) { + dev_err(dev, "Failed to enable mxs disp_axi clk: %d\n", ret); + return; + } + } #else /* Kick in the LCDIF clock */ mxs_set_lcdclk(MXS_LCDIF_BASE, timings->pixelclock.typ / 1000); |