Skip to content
Commit f0677e5a authored by Tomasz Moń's avatar Tomasz Moń Committed by Carles Cufí
Browse files

drivers: udc_dwc2: Respect maximum fifo depth



When dynamic fifo sizing is enabled the driver can assign fifo size
lower or equal to the reset value. Software must respect the maximum
sizes because fifo width registers are optimized during synthesis and
the larger values simply get discarded.

Use 16-bit values for FIFO depths because maximum FIFO depth the vendor
can configure the DWC2 otg is 32768.

Signed-off-by: default avatarTomasz Moń <tomasz.mon@nordicsemi.no>
parent f09ea475
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment