sakumisu
33dd56b7ce
update(port/ehci): use static qtd pool for qtd alloc & free
...
Signed-off-by: sakumisu <1203593632@qq.com>
2025-04-29 16:25:45 +08:00
sakumisu
e9257baa5d
update(port/ehci): add pad for qh&qtd cachemaintain, add CONFIG_USB_EHCI_DESC_DCACHE_ENABLE for qh&qtd&itd
...
Signed-off-by: sakumisu <1203593632@qq.com>
2025-03-28 13:29:04 +08:00
Zhihong Chen
d9c0d27174
ehci: update config to improve performance
...
- update config to improve performance
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2025-03-28 13:27:23 +08:00
sakumisu
c399be3ea2
feat(common): add usb_phyaddr2ramaddr & usb_ramaddr2phyaddr macro
...
Signed-off-by: sakumisu <1203593632@qq.com>
2025-01-22 17:54:54 +08:00
sakumisu
1a1b475523
update(port): add ehci/ohci/dwc2 dcache support
...
Signed-off-by: sakumisu <1203593632@qq.com>
2025-01-15 17:09:22 +08:00
sakumisu
f86443a70b
update(port/ohci): update ohci common code
2024-12-09 20:17:50 +08:00
sakumisu
2a563dc41f
feat(port/chipidea): add chipidea port, add nxp mxc glue for chipidea and ehci
2024-08-25 20:19:25 +08:00
sakumisu
35da8d6747
fix: fix -Wunused-parameter warning with -Wextra cflag
2024-08-21 20:08:47 +08:00
Zhihong Chen
500367dd82
port: ehci: should not be clear CSC/PEC/OCC flag when usb_hc_init()
...
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-08-16 21:32:09 +08:00
Till Harbaum
9dd52fddf0
Workaround for BL616 power control
2024-07-15 17:01:57 +08:00
Zhihong Chen
a942ec85a8
port: ehci: update init and deinit
...
- update init and deinit
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-07-09 21:11:36 +08:00
sakumisu
53114c0f16
refactor(e(o)hci): rename usb_hc_e(o)hci to usb_e(o)hci_reg, usb_hc_e(o)hci_priv to usb_hc_e(o)hci
2024-07-04 21:35:59 +08:00
sakumisu
c24eea6077
fix(port): enter section before alloc pipe
2024-06-28 16:33:45 +08:00
sakumisu
277f3940f6
remove ununsed code
2024-06-14 00:25:02 +08:00
sakumisu
bf54bc2ff1
update(port/ehci): use static iso pool for iso urb to reduce alloc time
2024-06-11 21:59:37 +08:00
sakumisu
8b070570a7
fix(port/ehci): fix missing busid
2024-05-22 18:51:41 +08:00
sakumisu
0985a7e5fa
fix(port/usb_hc_ehci): clear iaad status
2024-05-16 10:13:52 +08:00
sakumisu
8ecbd32483
remove qh with iaad
2024-05-08 17:17:57 +08:00
sakumisu
b97fc903c0
clear urb timeout after take sem, follow 76f58b93
2024-04-19 11:52:04 +08:00
sakumisu
76f58b93fe
do not clear timeout in irq,urb init will sometime call irq before take sem
2024-04-18 21:11:36 +08:00
sakumisu
db10c62b59
read ehci hcor offset from hccr caplength
2024-04-06 20:19:53 +08:00
sakumisu
808cd454a3
init ohci for ehci
2024-04-04 16:43:05 +08:00
sakumisu
078e21066c
mark errorcode with USB_ERR_SHUTDOWN when kill urb
2024-03-28 21:00:18 +08:00
sakumisu
74bb03b8b4
remove qtd alloc & free, use static pool instead
2024-03-26 20:41:17 +08:00
sakumisu
f99e4ce113
use only one qh for intr, following with linux driver
2024-03-25 19:53:22 +08:00
sakumisu
6cb442503d
add usb_hc_low_level_deinit api
2024-03-21 21:04:10 +08:00
sakumisu
15b97f3348
ehci:fix missing bus param
2024-03-20 21:52:04 +08:00
sakumisu
9e0cc8347c
align for some buffers
2024-02-24 16:38:57 +08:00
sakumisu
e0551b3e7b
config busid and regbase in usbh_initialize and usbd_initialize
2024-02-18 21:15:04 +08:00
sakumisu
1158fc3d8c
support multi USB IP for host
2024-01-08 22:47:28 +08:00
sakumisu
f68a86ea89
add usbh_deinitialize api
2023-12-24 23:37:47 +08:00
sakumisu
14f1f597f1
add usb errno, do not use system errno
2023-12-05 21:34:32 +08:00
sakumisu
82cd79989c
check token only with qtd, not use token in qh
2023-12-05 20:44:30 +08:00
sakumisu
8e0c5b4e7e
find roothub port to check if device is connecting
2023-11-24 21:09:45 +08:00
sakumisu
5b32482c3e
free pipe after sem giving
2023-11-22 21:42:56 +08:00
sakumisu
af1484882d
support ehci suspend & resume
2023-11-22 19:28:30 +08:00
sakumisu
5bbe2a97f2
refactor urb, add ep & hport in urb to make hardware pipe more reusable
2023-11-16 19:56:52 +08:00
sakumisu
d10cbd5daf
check if token is active without errors, if token has errors, go to wakeup sem
2023-11-13 19:49:49 +08:00
sakumisu
0738c09a4d
check qtd active status to fix nbytes = 0 in nak or ping status
2023-11-03 22:18:58 +08:00
Wayne Lin
dd1f1d3ba8
Update hcd-ehci, dcd-dwc2 and examples.
...
1. Add some example Msh commands.
2. Fix device enumeration on EXT hub.
3. Re-file some templates.
4. Extend end-point number of dwc2 device driver.
5. Re-file rndis_host implementation includes
a. rt_mutex_take in ISR
b. 2rd pmsg is unaligned issue.
c. destroy u0 ethernet resource after removing dongle.
2023-09-07 15:07:04 +08:00
Zhihong Chen
b9915e0e1b
port: hpmicro: separate host and device USB instance config
...
- separate host and device USB instance config
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-08-26 12:45:31 +08:00
sakimisu
628e4ee928
improve ehci driver, enable iaad feature
2023-08-25 21:36:14 +08:00
Zhihong Chen
4777a65f54
ehci: update hardcode for hpmicro
...
- should define CONFIG_USB_EHCI_HPMICRO and CONFIG_HPM_USB_BASE in usb_config.h
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-08-01 20:10:02 +08:00
sakimisu
7574063e94
enum device with disposable thread, do not block hub thread
2023-07-05 22:53:13 +08:00
sakumisu
53fe0f2cd5
update ehci iso struct and api
2023-04-20 15:12:38 +08:00
sakimisu
4cd9031d31
replace speed reconfig with mult
2023-03-12 15:05:35 +08:00
sakumisu
043c594cd8
clean ehci iso code
2023-02-23 17:55:11 +08:00
sakumisu
efde616203
format code
2023-02-10 17:34:29 +08:00
sakumisu
1330b98ad8
update ehci driver
2023-02-06 21:08:53 +08:00