[PATCH v2 3/8] USB: dwc2: Fix HBstLen setting for external DMA mode
Marek Vasut
marex at denx.de
Tue Dec 31 19:10:16 CET 2024
On 12/30/24 4:30 AM, Junhui Liu via B4 Relay wrote:
> From: Kongyang Liu <seashell11234455 at gmail.com>
>
> The loop used to calculate HBstLen for extern DMA mode does not produce
> the correct result according to the datasheet [1]. Replacing that loop
> with a direct calculation using LOG2 to correctly assign the burst length
> in the GAHBCFG register for external DMA mode.
>
> [1] https://rockchip.fr/RK312X%20TRM/chapter-26-usb-otg-2-0.pdf#page=24
>
> Signed-off-by: Kongyang Liu <seashell11234455 at gmail.com>
> Signed-off-by: Junhui Liu <liujh2818 at outlook.com>
Reviewed-by: Marek Vasut <marex at denx.de>
More information about the U-Boot
mailing list