Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sing-Han Chen and committed by
Greg Kroah-Hartman
331df1f3 f8162678

+17
+17
drivers/usb/gadget/udc/tegra-xudc.c
··· 3667 3667 .has_ipfs = false, 3668 3668 }; 3669 3669 3670 + static struct tegra_xudc_soc tegra234_xudc_soc_data = { 3671 + .clock_names = tegra186_xudc_clock_names, 3672 + .num_clks = ARRAY_SIZE(tegra186_xudc_clock_names), 3673 + .num_phys = 4, 3674 + .u1_enable = true, 3675 + .u2_enable = true, 3676 + .lpm_enable = true, 3677 + .invalid_seq_num = false, 3678 + .pls_quirk = false, 3679 + .port_reset_quirk = false, 3680 + .has_ipfs = false, 3681 + }; 3682 + 3670 3683 static const struct of_device_id tegra_xudc_of_match[] = { 3671 3684 { 3672 3685 .compatible = "nvidia,tegra210-xudc", ··· 3692 3679 { 3693 3680 .compatible = "nvidia,tegra194-xudc", 3694 3681 .data = &tegra194_xudc_soc_data 3682 + }, 3683 + { 3684 + .compatible = "nvidia,tegra234-xudc", 3685 + .data = &tegra234_xudc_soc_data 3695 3686 }, 3696 3687 { } 3697 3688 };