]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc3: reference clock period configuration
authorBalaji Prakash J <bjagadee@codeaurora.org>
Sun, 27 Nov 2022 14:31:53 +0000 (15:31 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 27 Nov 2022 14:34:56 +0000 (15:34 +0100)
commit57548e8bc7cb6eb1c1a0206579c2a84737a70650
treec973f7b72bd5edb756692edd022bb9298a90a31a
parent8ae84e64530e81f23066d86417b9225388ba96ae
usb: dwc3: reference clock period configuration

Set reference clock period when it differs from dwc3 default hardware
set.

We could calculate clock period based on reference clock frequency. But
this information is not always available. This is the case of PCI bus
attached USB host. For that reason we use a custom property.

Tested (USB2 only) on IPQ6010 SoC based board with 24 MHz reference
clock while hardware default is 19.2 MHz.

[ baruch: rewrite commit message; drop GFLADJ code; remove 'quirk-' from
  property name; mention tested hardware ]

[ marek: Ported from Linux kernel commit
         7bee318838890 ("usb: dwc3: reference clock period configuration") ]

Reviewed-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Marek Vasut <marex@denx.de> # Port from Linux
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h