Skip to content

Commit 77f7301

Browse files
committed
hal_nxp: Sync 25.06 usb to hal_nxp
Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent 8e29e14 commit 77f7301

35 files changed

+3068
-153
lines changed

mcux/mcux-sdk-ng/middleware/usb/CMakeLists.txt

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,49 @@ if(CONFIG_MCUX_COMPONENT_middleware.usb.device.khci)
1313
mcux_add_source(SOURCES device/usb_device_khci.c device/usb_device_khci.h)
1414
endif()
1515

16+
if(CONFIG_MCUX_COMPONENT_middleware.usb.device.khci_config_header)
17+
mcux_add_include(INCLUDES config/device/khci TARGET_FILES
18+
config/device/khci/usb_device_config.h)
19+
mcux_add_source(SOURCES config/device/khci/usb_device_config.h CONFIG TRUE)
20+
endif()
21+
1622
if(CONFIG_MCUX_COMPONENT_middleware.usb.device.ehci)
1723
mcux_add_include(INCLUDES device)
1824
mcux_add_source(SOURCES device/usb_device_ehci.c device/usb_device_ehci.h)
1925
endif()
2026

27+
if(CONFIG_MCUX_COMPONENT_middleware.usb.device.ehci_config_header)
28+
mcux_add_include(INCLUDES config/device/ehci TARGET_FILES
29+
config/device/ehci/usb_device_config.h)
30+
mcux_add_source(SOURCES config/device/ehci/usb_device_config.h CONFIG TRUE)
31+
endif()
32+
2133
if(CONFIG_MCUX_COMPONENT_middleware.usb.device.ip3511fs)
2234
mcux_add_include(INCLUDES device)
2335
mcux_add_source(SOURCES device/usb_device_lpcip3511.c
2436
device/usb_device_lpcip3511.h)
2537
endif()
2638

39+
if(CONFIG_MCUX_COMPONENT_middleware.usb.device.ip3511fs_config_header)
40+
mcux_add_include(INCLUDES config/device/ip3511fs TARGET_FILES
41+
config/device/ip3511fs/usb_device_config.h)
42+
mcux_add_source(SOURCES config/device/ip3511fs/usb_device_config.h CONFIG
43+
TRUE)
44+
endif()
45+
2746
if(CONFIG_MCUX_COMPONENT_middleware.usb.device.ip3511hs)
2847
mcux_add_include(INCLUDES device)
2948
mcux_add_source(SOURCES device/usb_device_lpcip3511.c
3049
device/usb_device_lpcip3511.h)
3150
endif()
3251

52+
if(CONFIG_MCUX_COMPONENT_middleware.usb.device.ip3511hs_config_header)
53+
mcux_add_include(INCLUDES config/device/ip3511hs TARGET_FILES
54+
config/device/ip3511hs/usb_device_config.h)
55+
mcux_add_source(SOURCES config/device/ip3511hs/usb_device_config.h CONFIG
56+
TRUE)
57+
endif()
58+
3359
if(CONFIG_MCUX_COMPONENT_middleware.usb.device.controller.driver)
3460
mcux_add_include(INCLUDES device)
3561
mcux_add_source(SOURCES device/usb_device_dci.c device/usb_device_dci.h)
@@ -128,12 +154,24 @@ if(CONFIG_MCUX_COMPONENT_middleware.usb.phydcd)
128154
dcd/usb_charger_detect.h)
129155
endif()
130156

157+
if(CONFIG_MCUX_COMPONENT_middleware.usb.phydcd_config_header)
158+
mcux_add_include(INCLUDES config/dcd/phydcd TARGET_FILES
159+
config/dcd/phydcd/usb_phydcd_config.h)
160+
mcux_add_source(SOURCES config/dcd/phydcd/usb_phydcd_config.h CONFIG TRUE)
161+
endif()
162+
131163
if(CONFIG_MCUX_COMPONENT_middleware.usb.hsdcd)
132164
mcux_add_include(INCLUDES dcd)
133165
mcux_add_source(SOURCES dcd/usb_hsdcd.c dcd/usb_hsdcd.h
134166
dcd/usb_charger_detect.h)
135167
endif()
136168

169+
if(CONFIG_MCUX_COMPONENT_middleware.usb.hsdcd_config_header)
170+
mcux_add_include(INCLUDES config/dcd/hsdcd TARGET_FILES
171+
config/dcd/hsdcd/usb_hsdcd_config.h)
172+
mcux_add_source(SOURCES config/dcd/hsdcd/usb_hsdcd_config.h CONFIG TRUE)
173+
endif()
174+
137175
if(CONFIG_MCUX_COMPONENT_middleware.usb.host.common_header)
138176
mcux_add_include(INCLUDES host)
139177
mcux_add_source(SOURCES host/usb_host.h host/usb_host_hci.h
@@ -145,21 +183,45 @@ if(CONFIG_MCUX_COMPONENT_middleware.usb.host.khci)
145183
mcux_add_source(SOURCES host/usb_host_khci.c host/usb_host_khci.h)
146184
endif()
147185

186+
if(CONFIG_MCUX_COMPONENT_middleware.usb.host.khci_config_header)
187+
mcux_add_include(INCLUDES config/host/khci TARGET_FILES
188+
config/host/khci/usb_host_config.h)
189+
mcux_add_source(SOURCES config/host/khci/usb_host_config.h CONFIG TRUE)
190+
endif()
191+
148192
if(CONFIG_MCUX_COMPONENT_middleware.usb.host.ehci)
149193
mcux_add_include(INCLUDES host)
150194
mcux_add_source(SOURCES host/usb_host_ehci.c host/usb_host_ehci.h)
151195
endif()
152196

197+
if(CONFIG_MCUX_COMPONENT_middleware.usb.host.ehci_config_header)
198+
mcux_add_include(INCLUDES config/host/ehci TARGET_FILES
199+
config/host/ehci/usb_host_config.h)
200+
mcux_add_source(SOURCES config/host/ehci/usb_host_config.h CONFIG TRUE)
201+
endif()
202+
153203
if(CONFIG_MCUX_COMPONENT_middleware.usb.host.ohci)
154204
mcux_add_include(INCLUDES host)
155205
mcux_add_source(SOURCES host/usb_host_ohci.c host/usb_host_ohci.h)
156206
endif()
157207

208+
if(CONFIG_MCUX_COMPONENT_middleware.usb.host.ohci_config_header)
209+
mcux_add_include(INCLUDES config/host/ohci TARGET_FILES
210+
config/host/ohci/usb_host_config.h)
211+
mcux_add_source(SOURCES config/host/ohci/usb_host_config.h CONFIG TRUE)
212+
endif()
213+
158214
if(CONFIG_MCUX_COMPONENT_middleware.usb.host.ip3516hs)
159215
mcux_add_include(INCLUDES host)
160216
mcux_add_source(SOURCES host/usb_host_ip3516hs.c host/usb_host_ip3516hs.h)
161217
endif()
162218

219+
if(CONFIG_MCUX_COMPONENT_middleware.usb.host.ip3516hs_config_header)
220+
mcux_add_include(INCLUDES config/host/ip3516hs TARGET_FILES
221+
config/host/ip3516hs/usb_host_config.h)
222+
mcux_add_source(SOURCES config/host/ip3516hs/usb_host_config.h CONFIG TRUE)
223+
endif()
224+
163225
if(CONFIG_MCUX_COMPONENT_middleware.usb.host.stack)
164226
mcux_add_include(INCLUDES host host/class)
165227
mcux_add_source(
@@ -241,6 +303,11 @@ if(CONFIG_MCUX_COMPONENT_middleware.usb_pd)
241303
pd/usb_pd_auto_policy.h)
242304
endif()
243305

306+
if(CONFIG_MCUX_COMPONENT_middleware.usb_pd.config_header)
307+
mcux_add_include(INCLUDES config/pd TARGET_FILES config/pd/usb_pd_config.h)
308+
mcux_add_source(SOURCES config/pd/usb_pd_config.h CONFIG TRUE)
309+
endif()
310+
244311
if(CONFIG_MCUX_COMPONENT_middleware.usb_pd.phy.ptn5110)
245312
mcux_add_include(INCLUDES pd pd/ptn5110 pd/phy_interface)
246313
mcux_add_source(

mcux/mcux-sdk-ng/middleware/usb/ChangeLogKSDK.txt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,26 @@
22
@page middleware_log Middleware Change Log
33

44
@section USB USB stack for MCUXpresso SDK
5-
The current version of USB stack is 2.11.0.
5+
The current version of USB stack is 2.12.0.
6+
- 2.12.0
7+
- Bug fixes:
8+
- Fix the dependency issue to meet NPW of CONFIG tool.
9+
- Fix disk mount issue for host_msd_fatfs during testing throughput.
10+
- Improvement:
11+
- Improve performance of example dev_cdc_ecm_nic.
12+
- Pass mandatory and required rules for MSG on Coverity system.
13+
- Add USB markdown documentation.
14+
- New features and demos:
15+
- Support eUSB functionality on RT700 including repeater mode and native mode.
16+
- Enable USB device CDC ECM example: dev_cdc_ecm_nic_bm, dev_cdc_ecm_nic_freertos, dev_cdc_ecm_nic_lite_bm.
617
- 2.11.0
718
- Improvement:
819
- Support USB for KConfig Configuration System and CMake Build System.
920
- Enable cache maintentance on i.MX RT 4-digit series and mimxrt700evk.
1021
- Split usb audio cases for LPC54xxx series with others.
1122
- 2.10.1
1223
- Improvement:
13-
- Host cdc acm
24+
- Host cdc ECM
1425
- Add link state detection in DHCP and DNS processing.
1526
- Unify and simplify application processing log.
1627
- Add static IP supporting.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# MCUXpresso SDK : mcux-sdk-middleware-usb
2+
3+
## Overview
4+
5+
This repository is for MCUXpresso SDK USB middleware delivery and it contains USB components officially provided in NXP MCUXpresso SDK. This repository is part of the MCUXpresso SDK overall delivery which is composed of several sub-repositories/projects. Navigate to the top/parent repository [mcuxsdk](https://github.com/nxp-mcuxpresso/mcuxsdk-manifests/) for the complete delivery of MCUXpresso SDK to be able to build and run USB examples that are based on mcux-sdk-middleware-usb components.
6+
7+
## Documentation
8+
9+
Overall details can be reviewed here: [MCUXpresso SDK Online Documentation](https://mcuxpresso.nxp.com/mcuxsdk/latest/html/introduction/README.html)
10+
11+
Visit [USB - Documentation](https://mcuxpresso.nxp.com/mcuxsdk/latest/html/middleware/usb/docs/index.html) to review details on the contents in this sub-repo.
12+
13+
## Setup
14+
15+
Instructions on how to install the MCUXpresso SDK provided from GitHub via west manifest [Getting Started with SDK - Detailed Installation Instructions](https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/installation.html#installation)
16+
17+
## Contribution
18+
19+
We welcome and encourage the community to submit patches directly to the mcux-sdk-middleware-usb project placed on github. Contributing can be managed via pull-requests. Before a pull-request is created the code should be tested and properly formatted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"SPDXID": "SPDXRef-DOCUMENT",
3+
"spdxVersion": "SPDX-2.3",
4+
"creationInfo": {
5+
"created": "2025-06-12T08:24:48Z",
6+
"creators": [
7+
"Organization: NXP"
8+
],
9+
"licenseListVersion": "3.20"
10+
},
11+
"name": "mcux-sdk-middleware-usb-2.12.0",
12+
"dataLicense": "CC0-1.0",
13+
"documentNamespace": "https://nxp.com/spdx/8a38eebe-6935-48eb-9367-06e933604546",
14+
"packages": [
15+
{
16+
"SPDXID": "SPDXRef-package-8a38eebe-6935-48eb-9367-06e933604546",
17+
"name": "mcux-sdk-middleware-usb",
18+
"versionInfo": "2.12.0",
19+
"licenseConcluded": "(BSD-3-Clause)",
20+
"licenseDeclared": "(BSD-3-Clause)",
21+
"downloadLocation": "https://github.com/nxp-mcuxpresso/mcux-sdk-middleware-usb",
22+
"originator": "Organization: NXP",
23+
"supplier": "NOASSERTION",
24+
"externalRefs": [],
25+
"filesAnalyzed": false
26+
}
27+
],
28+
"relationships": [
29+
{
30+
"spdxElementId": "SPDXRef-DOCUMENT",
31+
"relationshipType": "DESCRIBES",
32+
"relatedSpdxElement": "SPDXRef-package-8a38eebe-6935-48eb-9367-06e933604546"
33+
}
34+
]
35+
}

mcux/mcux-sdk-ng/middleware/usb/SCR.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
NXP Software Content Register
22

33
Package: mcux-sdk-middleware-usb
4-
Version: 2.11.0
4+
Version: 2.12.0
55
Outgoing License: BSD-3-Clause
66
License File: LICENSE
77
Type of Content: source code, header files
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright 2023 NXP
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
#ifndef _USB_DEVICE_HSDCD_CONFIG_H_
7+
#define _USB_DEVICE_HSDCD_CONFIG_H_
8+
/*******************************************************************************
9+
* Definitions
10+
******************************************************************************/
11+
12+
/*${macro:start}*/
13+
/* USB DCD config*/
14+
15+
/*! @brief The clock speed, Numerical Value of Clock Speed in Binary. */
16+
/*The valid clock range is from 1 to 1023 when clock unit is MHz and 4 to 1023 when clock unit is kHz.this value depend
17+
* on board desgin, different board may has different value*/
18+
/* This template provides default value 0, please set appropriate vaule referring to the existed usb_device_hid_mouse demo in SDK */
19+
#define USB_HSDCD_CLOCK_SPEED (0U)
20+
21+
/*${macro:end}*/
22+
23+
#endif /* _USB_DEVICE_HSDCD_CONFIG_H_ */
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2023 NXP
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
#ifndef _USB_DEVICE_PHYDCD_CONFIG_H_
7+
#define _USB_DEVICE_PHYDCD_CONFIG_H_
8+
/*******************************************************************************
9+
* Definitions
10+
******************************************************************************/
11+
12+
/*${macro:start}*/
13+
/* USB DCD config*/
14+
15+
/*reserved for future use*/
16+
17+
/*${macro:end}*/
18+
19+
#endif /* _USB_DEVICE_PHYDCD_CONFIG_H_ */

0 commit comments

Comments
 (0)