summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2019-04-11 15:11:34 +0300
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-05-03 17:42:23 +0300
commit4788704dd803ca7122710d9daf0ca4b337745dfc (patch)
treea85c959d0513704c52e30348d6faa4813a9a0c80 /include
parentd2691b4af2cd2c3cb7f385938fcd63af7de74fca (diff)
downloadu-boot-4788704dd803ca7122710d9daf0ca4b337745dfc.tar.xz
net: mscc: serval: Add ethernet nodes for Serval
Add ethernet nodes for Serval SoCs family. There are 2 pcb in this family: pcb105 and pcb106. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Diffstat (limited to 'include')
-rw-r--r--include/dt-bindings/mscc/serval_data.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/dt-bindings/mscc/serval_data.h b/include/dt-bindings/mscc/serval_data.h
new file mode 100644
index 0000000000..b374fda05e
--- /dev/null
+++ b/include/dt-bindings/mscc/serval_data.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
+/*
+ * Copyright (c) 2018 Microsemi Corporation
+ */
+
+#ifndef _SERVAL_DATA_H_
+#define _SERVAL_DATA_H_
+
+#define SERDES1G(x) (x)
+#define SERDES1G_MAX SERDES1G(9)
+#define SERDES6G(x) (SERDES1G_MAX + 1 + (x))
+#define SERDES6G_MAX SERDES6G(11)
+#define SERDES_MAX (SERDES6G_MAX + 1)
+
+/* similar with phy_interface_t */
+#define PHY_MODE_SGMII 2
+#define PHY_MODE_QSGMII 4
+
+#endif