]> git.ipfire.org Git - thirdparty/u-boot.git/commit
usb: dwc2: Extract macro definitions to common header
authorKongyang Liu <seashell11234455@gmail.com>
Fri, 10 Jan 2025 13:55:25 +0000 (21:55 +0800)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Mon, 2 Jun 2025 07:57:25 +0000 (09:57 +0200)
commit24b0e2604e2980dd04078b85a7a8929588dc0988
tree71d284e0975ef10a61ea4640c3adbcf3740fba47
parent6def014bba5ee779c7faeec012bc93d2ff90f6d3
usb: dwc2: Extract macro definitions to common header

Some macros are shared between host and gadget code, causing duplicated
definitions. Move DWC2 macro definitions from host and gadget code into a
common header to reduce duplication.

Signed-off-by: Kongyang Liu <seashell11234455@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Junhui Liu <junhui.liu@pigmoral.tech>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20250110-dwc2-dev-v4-6-987f4fd6f8b2@pigmoral.tech
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
drivers/usb/common/dwc2_core.h
drivers/usb/gadget/dwc2_udc_otg_regs.h
drivers/usb/host/dwc2.h