usb: host: xhci-tegra: Add Tegra234 XHCI support
authorSing-Han Chen <singhanc@nvidia.com>
Wed, 11 Jan 2023 11:04:50 +0000 (11:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 16:27:42 +0000 (17:27 +0100)
commitee0e40efc4d1bd87c795233c8ceadf4228479c06
treeea5b6867b70b3f681f812eb082d6d88b434f3327
parentd8163a32ca95c6e23cd449868ad12008569ac17a
usb: host: xhci-tegra: Add Tegra234 XHCI support

This change adds Tegra234 XUSB host mode controller support.

In Tegra234, some of the registers have moved to bar2 space.
The new soc variable has_bar2 indicates the chip with bar2
area. This patch adds new reg helper to let the driver reuse
the same code for those chips with bar2 support.

Signed-off-by: Sing-Han Chen <singhanc@nvidia.com>
Co-developed-by: Wayne Chang <waynec@nvidia.com>
Signed-off-by: Wayne Chang <waynec@nvidia.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20230111110450.24617-7-jonathanh@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c