net: ethernet: ave: Add compatible string and SoC-dependent data for NX1 SoC
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Mon, 18 Oct 2021 01:27:37 +0000 (10:27 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2021 12:10:08 +0000 (13:10 +0100)
Add basic support for UniPhier NX1 SoC. This includes a compatible string
and SoC-dependent data.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/sni_ave.c

index 4b0fe0f58bbfeb743daf8d98ad4b25a4654a7867..2c48f8b8ab714e7982c282ae4e56be8ed8d557d3 100644 (file)
@@ -1935,6 +1935,17 @@ static const struct ave_soc_data ave_pxs3_data = {
        .get_pinmode = ave_pxs3_get_pinmode,
 };
 
+static const struct ave_soc_data ave_nx1_data = {
+       .is_desc_64bit = true,
+       .clock_names = {
+               "ether",
+       },
+       .reset_names = {
+               "ether",
+       },
+       .get_pinmode = ave_pxs3_get_pinmode,
+};
+
 static const struct of_device_id of_ave_match[] = {
        {
                .compatible = "socionext,uniphier-pro4-ave4",
@@ -1956,6 +1967,10 @@ static const struct of_device_id of_ave_match[] = {
                .compatible = "socionext,uniphier-pxs3-ave4",
                .data = &ave_pxs3_data,
        },
+       {
+               .compatible = "socionext,uniphier-nx1-ave4",
+               .data = &ave_nx1_data,
+       },
        { /* Sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, of_ave_match);