[PATCH] video: zynqmp: Add support for reset

Michal Simek michal.simek at amd.com
Thu Dec 12 16:21:21 CET 2024



On 12/9/24 12:11, Michal Simek wrote:
> In Kria SOM configuration DP is under reset and access to DP is causing
> hang that's why call reset at probe to avoid this situation.
> 
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
> 
>   drivers/video/zynqmp/zynqmp_dpsub.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/video/zynqmp/zynqmp_dpsub.c b/drivers/video/zynqmp/zynqmp_dpsub.c
> index 76abfeac4433..52af23c3c835 100644
> --- a/drivers/video/zynqmp/zynqmp_dpsub.c
> +++ b/drivers/video/zynqmp/zynqmp_dpsub.c
> @@ -11,6 +11,7 @@
>   #include <dm.h>
>   #include <errno.h>
>   #include <generic-phy.h>
> +#include <reset.h>
>   #include <stdlib.h>
>   #include <video.h>
>   #include <wait_bit.h>
> @@ -2093,10 +2094,15 @@ static int zynqmp_dpsub_probe(struct udevice *dev)
>   {
>   	struct video_priv *uc_priv = dev_get_uclass_priv(dev);
>   	struct zynqmp_dpsub_priv *priv = dev_get_priv(dev);
> +	struct reset_ctl_bulk resets;
>   	struct clk clk;
>   	int ret;
>   	int mode = RGBA8888;
>   
> +	ret = reset_get_bulk(dev, &resets);
> +	if (!ret)
> +		reset_deassert_bulk(&resets);
> +
>   	ret = clk_get_by_name(dev, "dp_apb_clk", &clk);
>   	if (ret < 0) {
>   		dev_err(dev, "failed to get clock\n");

Applied.
M


More information about the U-Boot mailing list