From 47ce25d2c51fce65d44c7a17ebf3447dc0ea84c3 Mon Sep 17 00:00:00 2001 From: Aaron Kling Date: Fri, 9 May 2025 02:53:23 -0500 Subject: [PATCH] usb: gadget: tegra-xudc: Add Tegra210B01 Support It doesn't need some of the workarounds that the original Tegra210 does. Signed-off-by: Aaron Kling --- drivers/usb/gadget/udc/tegra-xudc.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c index 7aa46d426f31..3e6a0379c264 100644 --- a/drivers/usb/gadget/udc/tegra-xudc.c +++ b/drivers/usb/gadget/udc/tegra-xudc.c @@ -3648,6 +3648,22 @@ static struct tegra_xudc_soc tegra210_xudc_soc_data = { .has_ipfs = true, }; +static struct tegra_xudc_soc tegra210b01_xudc_soc_data = { + .supply_names = tegra210_xudc_supply_names, + .num_supplies = ARRAY_SIZE(tegra210_xudc_supply_names), + .clock_names = tegra210_xudc_clock_names, + .num_clks = ARRAY_SIZE(tegra210_xudc_clock_names), + .num_phys = 4, + .u1_enable = false, + .u2_enable = true, + .lpm_enable = false, + .invalid_seq_num = false, + .pls_quirk = false, + .port_reset_quirk = true, + .port_speed_quirk = false, + .has_ipfs = true, +}; + static struct tegra_xudc_soc tegra186_xudc_soc_data = { .clock_names = tegra186_xudc_clock_names, .num_clks = ARRAY_SIZE(tegra186_xudc_clock_names), @@ -3694,6 +3710,10 @@ static const struct of_device_id tegra_xudc_of_match[] = { .compatible = "nvidia,tegra210-xudc", .data = &tegra210_xudc_soc_data }, + { + .compatible = "nvidia,tegra210b01-xudc", + .data = &tegra210b01_xudc_soc_data + }, { .compatible = "nvidia,tegra186-xudc", .data = &tegra186_xudc_soc_data