forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/phy/tegra/xusb-tegra124.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
124 */
135
146 #include <linux/delay.h>
....@@ -1430,6 +1422,8 @@
14301422 }
14311423
14321424 static const struct tegra_xusb_port_ops tegra124_usb2_port_ops = {
1425
+ .release = tegra_xusb_usb2_port_release,
1426
+ .remove = tegra_xusb_usb2_port_remove,
14331427 .enable = tegra124_usb2_port_enable,
14341428 .disable = tegra124_usb2_port_disable,
14351429 .map = tegra124_usb2_port_map,
....@@ -1451,6 +1445,7 @@
14511445 }
14521446
14531447 static const struct tegra_xusb_port_ops tegra124_ulpi_port_ops = {
1448
+ .release = tegra_xusb_ulpi_port_release,
14541449 .enable = tegra124_ulpi_port_enable,
14551450 .disable = tegra124_ulpi_port_disable,
14561451 .map = tegra124_ulpi_port_map,
....@@ -1472,6 +1467,7 @@
14721467 }
14731468
14741469 static const struct tegra_xusb_port_ops tegra124_hsic_port_ops = {
1470
+ .release = tegra_xusb_hsic_port_release,
14751471 .enable = tegra124_hsic_port_enable,
14761472 .disable = tegra124_hsic_port_disable,
14771473 .map = tegra124_hsic_port_map,
....@@ -1655,6 +1651,8 @@
16551651 }
16561652
16571653 static const struct tegra_xusb_port_ops tegra124_usb3_port_ops = {
1654
+ .release = tegra_xusb_usb3_port_release,
1655
+ .remove = tegra_xusb_usb3_port_remove,
16581656 .enable = tegra124_usb3_port_enable,
16591657 .disable = tegra124_usb3_port_disable,
16601658 .map = tegra124_usb3_port_map,
....@@ -1721,6 +1719,13 @@
17211719 .hsic_set_idle = tegra124_hsic_set_idle,
17221720 };
17231721
1722
+static const char * const tegra124_xusb_padctl_supply_names[] = {
1723
+ "avdd-pll-utmip",
1724
+ "avdd-pll-erefe",
1725
+ "avdd-pex-pll",
1726
+ "hvdd-pex-pll-e",
1727
+};
1728
+
17241729 const struct tegra_xusb_padctl_soc tegra124_xusb_padctl_soc = {
17251730 .num_pads = ARRAY_SIZE(tegra124_pads),
17261731 .pads = tegra124_pads,
....@@ -1743,6 +1748,8 @@
17431748 },
17441749 },
17451750 .ops = &tegra124_xusb_padctl_ops,
1751
+ .supply_names = tegra124_xusb_padctl_supply_names,
1752
+ .num_supplies = ARRAY_SIZE(tegra124_xusb_padctl_supply_names),
17461753 };
17471754 EXPORT_SYMBOL_GPL(tegra124_xusb_padctl_soc);
17481755