Skip to content

Commit dae4f1d

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 6d69efd commit dae4f1d

File tree

7 files changed

+800
-0
lines changed

7 files changed

+800
-0
lines changed

drivers/usb/uhc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ zephyr_library()
66
zephyr_library_sources(uhc_common.c)
77
zephyr_library_sources_ifdef(CONFIG_UHC_MAX3421E uhc_max3421e.c)
88
zephyr_library_sources_ifdef(CONFIG_UHC_VIRTUAL uhc_virtual.c)
9+
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
@@ -38,5 +38,6 @@ source "subsys/logging/Kconfig.template.log_config"
3838

3939
source "drivers/usb/uhc/Kconfig.max3421e"
4040
source "drivers/usb/uhc/Kconfig.virtual"
41+
source "drivers/usb/uhc/Kconfig.renesas_ra"
4142

4243
endif # UHC_DRIVER

drivers/usb/uhc/Kconfig.renesas_ra

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
endif # UHC_RENESAS_RA

0 commit comments

Comments
 (0)