phy: cadence-torrent: Use a common header file for Cadence SERDES
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 19 Mar 2021 12:41:23 +0000 (18:11 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 31 Mar 2021 11:13:20 +0000 (16:43 +0530)
No functional change. In order to have a single header file for all
Cadence SERDES move phy-cadence-torrent.h to phy-cadence.h. This is
in preparation for adding Cadence Sierra SERDES specific macros.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Swapnil Jakhade <sjakhade@cadence.com>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210319124128.13308-9-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
drivers/phy/cadence/phy-cadence-torrent.c
include/dt-bindings/phy/phy-cadence-torrent.h [deleted file]
include/dt-bindings/phy/phy-cadence.h [new file with mode: 0644]

index 4608599..01dcd14 100644 (file)
@@ -184,7 +184,7 @@ examples:
     };
   - |
     #include <dt-bindings/phy/phy.h>
-    #include <dt-bindings/phy/phy-cadence-torrent.h>
+    #include <dt-bindings/phy/phy-cadence.h>
 
     bus {
         #address-cells = <2>;
index 95160da..3fdab0d 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #include <dt-bindings/phy/phy.h>
-#include <dt-bindings/phy/phy-cadence-torrent.h>
+#include <dt-bindings/phy/phy-cadence.h>
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/delay.h>
diff --git a/include/dt-bindings/phy/phy-cadence-torrent.h b/include/dt-bindings/phy/phy-cadence-torrent.h
deleted file mode 100644 (file)
index 3c92c61..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * This header provides constants for Cadence Torrent SERDES.
- */
-
-#ifndef _DT_BINDINGS_TORRENT_SERDES_H
-#define _DT_BINDINGS_TORRENT_SERDES_H
-
-#define TORRENT_SERDES_NO_SSC          0
-#define TORRENT_SERDES_EXTERNAL_SSC    1
-#define TORRENT_SERDES_INTERNAL_SSC    2
-
-#define CDNS_TORRENT_REFCLK_DRIVER      0
-
-#endif /* _DT_BINDINGS_TORRENT_SERDES_H */
diff --git a/include/dt-bindings/phy/phy-cadence.h b/include/dt-bindings/phy/phy-cadence.h
new file mode 100644 (file)
index 0000000..4a5ea52
--- /dev/null
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * This header provides constants for Cadence SERDES.
+ */
+
+#ifndef _DT_BINDINGS_CADENCE_SERDES_H
+#define _DT_BINDINGS_CADENCE_SERDES_H
+
+/* Torrent */
+#define TORRENT_SERDES_NO_SSC          0
+#define TORRENT_SERDES_EXTERNAL_SSC    1
+#define TORRENT_SERDES_INTERNAL_SSC    2
+
+#define CDNS_TORRENT_REFCLK_DRIVER      0
+
+#endif /* _DT_BINDINGS_CADENCE_SERDES_H */