phy: tegra: xusb: Add Tegra234 support
authorSing-Han Chen <singhanc@nvidia.com>
Wed, 11 Jan 2023 11:04:49 +0000 (11:04 +0000)
committerVinod Koul <vkoul@kernel.org>
Thu, 12 Jan 2023 17:27:06 +0000 (22:57 +0530)
commit5c7f94f8bad88a448250e19486ee99a55de21fa9
tree5b87b767e70e990792f9ac7f040eefd2a02a1665
parente5f9124404d0c11fd19d1431901bcf76c535e241
phy: tegra: xusb: Add Tegra234 support

Add support for the XUSB pad controller found on Tegra234 SoCs. It is
mostly similar to the same IP found on Tegra194, because most of
the Tegra234 XUSB PADCTL registers definition and programming sequence
are the same as Tegra194, Tegra234 XUSB PADCTL can share the same
driver with Tegra186 and Tegra194 XUSB PADCTL.

Introduce a new feature, USB2 HW tracking, for Tegra234.
The feature is to enable HW periodical PAD tracking which measure
and capture the electric parameters of USB2.0 PAD.

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-6-jonathanh@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/tegra/Makefile
drivers/phy/tegra/xusb-tegra186.c
drivers/phy/tegra/xusb.c
drivers/phy/tegra/xusb.h