mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 14:26:56 +07:00
79ad3b5add
The Tegra 2 SoC has 3 EHCI compatible USB controllers. This patch adds the necessary glue to allow the ehci-hcd driver to work on Tegra 2 SoCs. The platform data is used to configure board-specific phy settings and to configure the operating mode, as one of the ports may be used as a otg port. For additional power saving, the driver supports powering down the phy on bus suspend when it is used, for example, to connect an internal device that use an out-of-band remote wakeup mechanism (e.g. a gpio). Signed-off-by: Benoit Goby <benoit@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
32 lines
843 B
C
32 lines
843 B
C
/*
|
|
* Copyright (C) 2010 Google, Inc.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef _TEGRA_USB_H_
|
|
#define _TEGRA_USB_H_
|
|
|
|
enum tegra_usb_operating_modes {
|
|
TEGRA_USB_DEVICE,
|
|
TEGRA_USB_HOST,
|
|
TEGRA_USB_OTG,
|
|
};
|
|
|
|
struct tegra_ehci_platform_data {
|
|
enum tegra_usb_operating_modes operating_mode;
|
|
/* power down the phy on bus suspend */
|
|
int power_down_on_bus_suspend;
|
|
void *phy_config;
|
|
};
|
|
|
|
#endif /* _TEGRA_USB_H_ */
|