diff options
author | Tom Rini | 2019-06-10 09:41:19 -0400 |
---|---|---|
committer | Tom Rini | 2019-06-10 09:41:19 -0400 |
commit | 99e14d5249a1b46ec4a4321d6125449a8f09b549 (patch) | |
tree | 6e5e4d72c8dbb4a542782514410c59181e0b1752 /drivers/video/meson/meson_dw_hdmi.c | |
parent | eb53a18c9e903e35e8e8d52da96c33b63822881c (diff) | |
parent | f944b15966d410fd81f6051a836f86d5263f617e (diff) |
Merge tag 'video-updates-for-2019.07-rc3' of git://git.denx.de/u-boot-video
- mxsfb DM_VIDEO conversion
- splash fix for DM_VIDEO configurations
- meson HDMI fix for boards without hdmi-supply regulator
Diffstat (limited to 'drivers/video/meson/meson_dw_hdmi.c')
-rw-r--r-- | drivers/video/meson/meson_dw_hdmi.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/video/meson/meson_dw_hdmi.c b/drivers/video/meson/meson_dw_hdmi.c index 7a1c060856a..483c93f6b6c 100644 --- a/drivers/video/meson/meson_dw_hdmi.c +++ b/drivers/video/meson/meson_dw_hdmi.c @@ -361,13 +361,19 @@ static int meson_dw_hdmi_probe(struct udevice *dev) priv->hdmi.i2c_clk_high = 0x67; priv->hdmi.i2c_clk_low = 0x78; +#if CONFIG_IS_ENABLED(DM_REGULATOR) ret = device_get_supply_regulator(dev, "hdmi-supply", &supply); - if (ret) + if (ret && ret != -ENOENT) { + pr_err("Failed to get HDMI regulator\n"); return ret; + } - ret = regulator_set_enable(supply, true); - if (ret) - return ret; + if (!ret) { + ret = regulator_set_enable(supply, true); + if (ret) + return ret; + } +#endif ret = reset_get_bulk(dev, &resets); if (ret) |