* [3/6] usb: host: xhci-tegra: Add Tegra186 XUSB support
@ 2019-01-25 11:30 Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2019-01-25 11:30 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Mathias Nyman, Jon Hunter, JC Kuo, linux-usb, linux-tegra,
linux-kernel
From: JC Kuo <jckuo@nvidia.com>
This commit adds Tegra186 XUSB host mode controller support. This is
very similar to the existing support for Tegra124 and Tegra210, except
that the number of ports and PHYs differs and the IPFS wrapper being
gone.
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/usb/host/xhci-tegra.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 49e033f953a2..9a07ea0f9c97 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -1423,9 +1423,34 @@ static const struct tegra_xusb_soc tegra210_soc = {
};
MODULE_FIRMWARE("nvidia/tegra210/xusb.bin");
+static const char * const tegra186_supply_names[] = {
+};
+
+static const struct tegra_xusb_phy_type tegra186_phy_types[] = {
+ { .name = "usb3", .num = 3, },
+ { .name = "usb2", .num = 3, },
+ { .name = "hsic", .num = 1, },
+};
+
+static const struct tegra_xusb_soc tegra186_soc = {
+ .firmware = "nvidia/tegra186/xusb.bin",
+ .supply_names = tegra186_supply_names,
+ .num_supplies = ARRAY_SIZE(tegra186_supply_names),
+ .phy_types = tegra186_phy_types,
+ .num_types = ARRAY_SIZE(tegra186_phy_types),
+ .ports = {
+ .usb3 = { .offset = 0, .count = 3, },
+ .usb2 = { .offset = 3, .count = 3, },
+ .hsic = { .offset = 6, .count = 1, },
+ },
+ .scale_ss_clock = false,
+ .has_ipfs = false,
+};
+
static const struct of_device_id tegra_xusb_of_match[] = {
{ .compatible = "nvidia,tegra124-xusb", .data = &tegra124_soc },
{ .compatible = "nvidia,tegra210-xusb", .data = &tegra210_soc },
+ { .compatible = "nvidia,tegra186-xusb", .data = &tegra186_soc },
{ },
};
MODULE_DEVICE_TABLE(of, tegra_xusb_of_match);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [3/6] usb: host: xhci-tegra: Add Tegra186 XUSB support
@ 2019-01-28 7:57 jckuo
0 siblings, 0 replies; 2+ messages in thread
From: jckuo @ 2019-01-28 7:57 UTC (permalink / raw)
To: Thierry Reding, Greg Kroah-Hartman
Cc: Mathias Nyman, Jon Hunter, linux-usb, linux-tegra, linux-kernel
Reviewed-by: JC Kuo <jckuo@nvidia.com>
On 1/25/19 7:30 PM, Thierry Reding wrote:
> From: JC Kuo <jckuo@nvidia.com>
>
> This commit adds Tegra186 XUSB host mode controller support. This is
> very similar to the existing support for Tegra124 and Tegra210, except
> that the number of ports and PHYs differs and the IPFS wrapper being
> gone.
>
> Signed-off-by: JC Kuo <jckuo@nvidia.com>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> drivers/usb/host/xhci-tegra.c | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
> index 49e033f953a2..9a07ea0f9c97 100644
> --- a/drivers/usb/host/xhci-tegra.c
> +++ b/drivers/usb/host/xhci-tegra.c
> @@ -1423,9 +1423,34 @@ static const struct tegra_xusb_soc tegra210_soc = {
> };
> MODULE_FIRMWARE("nvidia/tegra210/xusb.bin");
>
> +static const char * const tegra186_supply_names[] = {
> +};
> +
> +static const struct tegra_xusb_phy_type tegra186_phy_types[] = {
> + { .name = "usb3", .num = 3, },
> + { .name = "usb2", .num = 3, },
> + { .name = "hsic", .num = 1, },
> +};
> +
> +static const struct tegra_xusb_soc tegra186_soc = {
> + .firmware = "nvidia/tegra186/xusb.bin",
> + .supply_names = tegra186_supply_names,
> + .num_supplies = ARRAY_SIZE(tegra186_supply_names),
> + .phy_types = tegra186_phy_types,
> + .num_types = ARRAY_SIZE(tegra186_phy_types),
> + .ports = {
> + .usb3 = { .offset = 0, .count = 3, },
> + .usb2 = { .offset = 3, .count = 3, },
> + .hsic = { .offset = 6, .count = 1, },
> + },
> + .scale_ss_clock = false,
> + .has_ipfs = false,
> +};
> +
> static const struct of_device_id tegra_xusb_of_match[] = {
> { .compatible = "nvidia,tegra124-xusb", .data = &tegra124_soc },
> { .compatible = "nvidia,tegra210-xusb", .data = &tegra210_soc },
> + { .compatible = "nvidia,tegra186-xusb", .data = &tegra186_soc },
> { },
> };
> MODULE_DEVICE_TABLE(of, tegra_xusb_of_match);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-28 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-25 11:30 [3/6] usb: host: xhci-tegra: Add Tegra186 XUSB support Thierry Reding
-- strict thread matches above, loose matches on Subject: below --
2019-01-28 7:57 jckuo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).