commit | 80a0de1d5272afb87d18084a81fcd3d4be6e4b85 | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@st.com> | Fri Mar 29 15:42:19 2019 +0100 |
committer | Marek Vasut <marex@denx.de> | Sun Apr 21 10:26:52 2019 +0200 |
tree | 38c08b8374b88914e318ca47b3a0125b9ee1752a | |
parent | e2ad779daf5e60515c59d7c256cf302d26af1730 [diff] |
usb: dwc2_udc_otg: Read MAX_HW_ENDPOINT from HWCFG4 register Some DWC2 ip variant doesn't use 16 hardware endpoint as hardcoded in the driver. Bits INEps [29:26] of HWCFG4 register allows to get this information. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>