Skip to content

Commit 58a5353

Browse files
committed
usb: gadget: tegra-xudc: Add Tegra234 support
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122414 Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Tested: Verify USB-A and USB-C are functional on Nvidia Orin board, and no regressions on other platforms. commit 331df1f Author: Sing-Han Chen <singhanc@nvidia.com> Date: Thu Jan 19 10:42:07 2023 +0000 usb: gadget: tegra-xudc: Add Tegra234 support This commit adds support for XUSB device mode controller support on Tegra234 SoC. This is very similar to the existing Tegra194 XUDC. Signed-off-by: Sing-Han Chen <singhanc@nvidia.com> Signed-off-by: Wayne Chang <waynec@nvidia.com> Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Acked-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20230119104208.28726-5-jonathanh@nvidia.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 331df1f) Signed-off-by: David Marlin <dmarlin@redhat.com>
1 parent 0a68d05 commit 58a5353

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/usb/gadget/udc/tegra-xudc.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,6 +3660,19 @@ static struct tegra_xudc_soc tegra194_xudc_soc_data = {
36603660
.has_ipfs = false,
36613661
};
36623662

3663+
static struct tegra_xudc_soc tegra234_xudc_soc_data = {
3664+
.clock_names = tegra186_xudc_clock_names,
3665+
.num_clks = ARRAY_SIZE(tegra186_xudc_clock_names),
3666+
.num_phys = 4,
3667+
.u1_enable = true,
3668+
.u2_enable = true,
3669+
.lpm_enable = true,
3670+
.invalid_seq_num = false,
3671+
.pls_quirk = false,
3672+
.port_reset_quirk = false,
3673+
.has_ipfs = false,
3674+
};
3675+
36633676
static const struct of_device_id tegra_xudc_of_match[] = {
36643677
{
36653678
.compatible = "nvidia,tegra210-xudc",
@@ -3673,6 +3686,10 @@ static const struct of_device_id tegra_xudc_of_match[] = {
36733686
.compatible = "nvidia,tegra194-xudc",
36743687
.data = &tegra194_xudc_soc_data
36753688
},
3689+
{
3690+
.compatible = "nvidia,tegra234-xudc",
3691+
.data = &tegra234_xudc_soc_data
3692+
},
36763693
{ }
36773694
};
36783695
MODULE_DEVICE_TABLE(of, tegra_xudc_of_match);

0 commit comments

Comments
 (0)