Skip to content

drivers: udc: renesas: enable high-speed USB support #89064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/usb/udc/Kconfig.renesas_ra
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ config UDC_RENESAS_RA
default y
depends on DT_HAS_RENESAS_RA_UDC_ENABLED
select USE_RA_FSP_USB_DEVICE
select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
select PINCTRL
help
Enable Renesas RA family UDC driver.
Expand Down
8 changes: 5 additions & 3 deletions drivers/usb/udc/udc_renesas_ra.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,11 @@ static const struct udc_api udc_renesas_ra_api = {
(DT_NODE_HAS_COMPAT(id, renesas_ra_usbhs) ? UDC_BUS_SPEED_HS : UDC_BUS_SPEED_FS)

#define USB_RENESAS_RA_SPEED_IDX(id) \
(DT_NODE_HAS_COMPAT(id, renesas_ra_usbhs) \
? DT_ENUM_IDX_OR(id, maximum_speed, UDC_BUS_SPEED_HS) \
: DT_ENUM_IDX_OR(id, maximum_speed, UDC_BUS_SPEED_FS))
COND_CODE_1(CONFIG_UDC_DRIVER_HIGH_SPEED_SUPPORT_ENABLED, \
(DT_NODE_HAS_COMPAT(id, renesas_ra_usbhs) \
? DT_ENUM_IDX_OR(id, maximum_speed, UDC_BUS_SPEED_HS) \
: DT_ENUM_IDX_OR(id, maximum_speed, UDC_BUS_SPEED_FS)), \
(UDC_BUS_SPEED_FS))

#define USB_RENESAS_RA_IRQ_CONNECT(idx, n) \
IRQ_CONNECT(DT_IRQ_BY_IDX(DT_INST_PARENT(n), idx, irq), \
Expand Down