Add reset of LTDC display controller.
Signed-off-by: yannick fertre <yannick.fertre@st.com>
#include <clk.h>
#include <dm.h>
#include <panel.h>
+#include <reset.h>
#include <video.h>
#include <asm/io.h>
#include <asm/arch/gpio.h>
struct stm32_ltdc_priv *priv = dev_get_priv(dev);
struct udevice *panel;
struct clk pclk, pxclk;
+ struct reset_ctl rst;
int ret;
priv->regs = (void *)dev_read_addr(dev);
return ret;
}
+ ret = reset_get_by_index(dev, 0, &rst);
+ if (ret) {
+ debug("%s: missing ltdc hardware reset\n", __func__);
+ return -ENODEV;
+ }
+
+ /* Reset */
+ reset_deassert(&rst);
+
ret = panel_enable_backlight(panel);
if (ret) {
debug("%s: panel %s enable backlight error %d\n",