]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
zynqmp: Avoid setting the framebuffer address
authorSimon Glass <sjg@chromium.org>
Wed, 21 Aug 2024 16:19:00 +0000 (10:19 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2024 20:05:38 +0000 (14:05 -0600)
This is handled by driver model so this driver should not be setting the
framebuffer address. Drop the assignment.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/zynqmp/zynqmp_dpsub.c

index 1405b29cb8b904da628e73bd37bc5349269550f1..76abfeac44339c4280c21c3296047b94d45792b0 100644 (file)
@@ -49,7 +49,7 @@ static void dma_init_video_descriptor(struct udevice *dev)
                             DPDMA_DESCRIPTOR_ADDR_EXT_SRC_ADDR_EXT_SHIFT) |
                             (upper_32_bits((u64)&cur_desc)));
        cur_desc.next_desr = lower_32_bits((u64)&cur_desc);
-       cur_desc.src_addr = lower_32_bits((u64)gd->fb_base);
+       cur_desc.src_addr = lower_32_bits((u64)video_get_fb());
 }
 
 static void dma_set_descriptor_address(struct udevice *dev)
@@ -2134,7 +2134,6 @@ static int zynqmp_dpsub_probe(struct udevice *dev)
        dev_dbg(dev, "BPP in bits %d, bpix %d\n",
                priv->non_live_graphics->bpp, uc_priv->bpix);
 
-       uc_priv->fb = (void *)gd->fb_base;
        uc_priv->xsize = vidc_video_timing_modes[priv->video_mode].video_timing.h_active;
        uc_priv->ysize = vidc_video_timing_modes[priv->video_mode].video_timing.v_active;
        /* Calculated by core but need it for my own setup */