]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
phy: cadence-torrent: Add platform dependent initialization structure
authorSwapnil Jakhade <sjakhade@cadence.com>
Thu, 6 Feb 2020 06:11:00 +0000 (07:11 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 20 Mar 2020 14:04:29 +0000 (19:34 +0530)
Add platform dependent initialization data for Torrent PHY used in TI's
J721E SoC.

Signed-off-by: Swapnil Jakhade <sjakhade@cadence.com>
Signed-off-by: Yuti Amonkar <yamonkar@cadence.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/cadence/phy-cadence-torrent.c

index 0e03d3cb4c23c816edaedcb31d2ed80d04ed0653..851a68590788616c0f8f0ad4138442b059da930c 100644 (file)
@@ -1770,11 +1770,20 @@ static const struct cdns_torrent_data cdns_map_torrent = {
        .reg_offset_shift = 0x2,
 };
 
+static const struct cdns_torrent_data ti_j721e_map_torrent = {
+       .block_offset_shift = 0x0,
+       .reg_offset_shift = 0x1,
+};
+
 static const struct of_device_id cdns_torrent_phy_of_match[] = {
        {
                .compatible = "cdns,torrent-phy",
                .data = &cdns_map_torrent,
        },
+       {
+               .compatible = "ti,j721e-serdes-10g",
+               .data = &ti_j721e_map_torrent,
+       },
        {}
 };
 MODULE_DEVICE_TABLE(of, cdns_torrent_phy_of_match);