Skip to content

Commit 8941a10

Browse files
Minh Hoangthenguyenyf
authored andcommitted
drivers: usb: uhc: add support for Renesas RA USB host
First commit to support UHC driver for Renesas RA family Signed-off-by: Minh Hoang <[email protected]> Signed-off-by: The Nguyen <[email protected]>
1 parent c8540e8 commit 8941a10

File tree

8 files changed

+817
-1
lines changed

8 files changed

+817
-1
lines changed

drivers/usb/udc/Kconfig.renesas_ra

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ config UDC_RENESAS_RA
66
default y
77
depends on DT_HAS_RENESAS_RA_UDC_ENABLED
88
select USE_RA_FSP_USB_DEVICE
9-
select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
9+
select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT if DT_HAS_RENESAS_RA_USBHS_ENABLED
1010
select PINCTRL
1111
help
1212
Enable Renesas RA family UDC driver.

drivers/usb/uhc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ zephyr_library_sources_ifdef(CONFIG_UHC_NXP_EHCI uhc_mcux_common.c uhc_mcux_ehci
1111
zephyr_library_sources_ifdef(CONFIG_UHC_NXP_KHCI uhc_mcux_common.c uhc_mcux_khci.c)
1212
zephyr_library_sources_ifdef(CONFIG_UHC_NXP_OHCI uhc_mcux_common.c uhc_mcux_ohci.c)
1313
zephyr_library_sources_ifdef(CONFIG_UHC_NXP_IP3516HS uhc_mcux_common.c uhc_mcux_ip3516hs.c)
14+
zephyr_library_sources_ifdef(CONFIG_UHC_RENESAS_RA uhc_renesas_ra.c)

drivers/usb/uhc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ source "subsys/logging/Kconfig.template.log_config"
3939
source "drivers/usb/uhc/Kconfig.max3421e"
4040
source "drivers/usb/uhc/Kconfig.virtual"
4141
source "drivers/usb/uhc/Kconfig.mcux"
42+
source "drivers/usb/uhc/Kconfig.renesas_ra"
4243

4344
endif # UHC_DRIVER

drivers/usb/uhc/Kconfig.renesas_ra

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
DT_COMPAT_UHC_RENESAS_RA := renesas,ra-uhc
5+
6+
config UHC_RENESAS_RA
7+
bool "Renesas RA family UHC driver"
8+
default y
9+
depends on DT_HAS_RENESAS_RA_UHC_ENABLED
10+
select USE_RA_FSP_USB_HOST
11+
help
12+
Enable Renesas RA family UHC driver.
13+
14+
if UHC_RENESAS_RA
15+
16+
config UHC_RENESAS_RA_STACK_SIZE
17+
int "UHC controller driver internal thread stack size"
18+
default 512
19+
help
20+
Renesas RA device controller driver internal thread stack size.
21+
22+
config UHC_RENESAS_RA_THREAD_PRIORITY
23+
int "Renesas RA family UHC driver thread priority"
24+
default 8
25+
help
26+
Renesas RA device controller driver thread priority.
27+
28+
config UHC_RENESAS_RA_MAX_MSGQ
29+
int "Renesas RA family internal UHC driver msgq size"
30+
default 10
31+
help
32+
Renesas RA device controller driver internal msgq size.
33+
34+
config UHC_RENESAS_RA_OSC_WAIT_RETRIES
35+
int "Maximum retries for oscillator ready event"
36+
default 3
37+
help
38+
Specify the number of retries for oscillator ready event.
39+
40+
endif # UHC_RENESAS_RA

0 commit comments

Comments
 (0)