Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (c) 2022, Google LLC
4 */
5
6#ifndef _USB_MISC_ONBOARD_USB_HUB_H
7#define _USB_MISC_ONBOARD_USB_HUB_H
8
9struct onboard_hub_pdata {
10 unsigned long reset_us; /* reset pulse width in us */
11};
12
13static const struct onboard_hub_pdata microchip_usb424_data = {
14 .reset_us = 1,
15};
16
17static const struct onboard_hub_pdata realtek_rts5411_data = {
18 .reset_us = 0,
19};
20
21static const struct onboard_hub_pdata ti_tusb8041_data = {
22 .reset_us = 3000,
23};
24
25static const struct of_device_id onboard_hub_match[] = {
26 { .compatible = "usb424,2514", .data = µchip_usb424_data, },
27 { .compatible = "usb451,8140", .data = &ti_tusb8041_data, },
28 { .compatible = "usb451,8142", .data = &ti_tusb8041_data, },
29 { .compatible = "usbbda,411", .data = &realtek_rts5411_data, },
30 { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, },
31 { .compatible = "usbbda,414", .data = &realtek_rts5411_data, },
32 { .compatible = "usbbda,5414", .data = &realtek_rts5411_data, },
33 {}
34};
35
36#endif /* _USB_MISC_ONBOARD_USB_HUB_H */