summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-09-22 16:39:01 -0400
committerTom Rini <trini@konsulko.com>2019-09-22 16:39:01 -0400
commit780a17e814503f71d1b51d578b32bc9c89933183 (patch)
tree28f94b08a26f0be8d5dde75da601aac8ac5901fb /drivers
parent390183b58179ddaf986422f4d9446c596660f7e0 (diff)
parentf34e7fc29b32066a8af6c4d22a1f6e0fbfd8e6db (diff)
downloadu-boot-780a17e814503f71d1b51d578b32bc9c89933183.tar.gz
u-boot-780a17e814503f71d1b51d578b32bc9c89933183.tar.bz2
u-boot-780a17e814503f71d1b51d578b32bc9c89933183.zip
Merge tag 'fixes-for-2019.10' of https://gitlab.denx.de/u-boot/custodians/u-boot-video.git
- fix sunxi LCD clock divider - fix splash logo with DM_VIDEO and CONFIG_VIDEO_LOGO - fix splash banner output with DM_VIDEO
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/sunxi/sunxi_dw_hdmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c
index cec23295b5..66a319187c 100644
--- a/drivers/video/sunxi/sunxi_dw_hdmi.c
+++ b/drivers/video/sunxi/sunxi_dw_hdmi.c
@@ -254,7 +254,7 @@ static void sunxi_dw_hdmi_lcdc_init(int mux, const struct display_timing *edid,
{
struct sunxi_ccm_reg * const ccm =
(struct sunxi_ccm_reg *)SUNXI_CCM_BASE;
- int div = clock_get_pll3() / edid->pixelclock.typ;
+ int div = DIV_ROUND_UP(clock_get_pll3(), edid->pixelclock.typ);
struct sunxi_lcdc_reg *lcdc;
if (mux == 0) {