aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mdio-gpio.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2018-04-19 01:02:58 +0200
committerDavid S. Miller <davem@davemloft.net>2018-04-19 15:59:11 -0400
commitfb78a95e22123da57cb79b98bdc62eb33965ca8a (patch)
tree19e4f0c9e0d647c5f19df7809114da463f552c62 /include/linux/mdio-gpio.h
parentnet: phy: mdio-gpio: Parse properties directly into bitbang structure (diff)
downloadlinux-dev-fb78a95e22123da57cb79b98bdc62eb33965ca8a.tar.xz
linux-dev-fb78a95e22123da57cb79b98bdc62eb33965ca8a.zip
net: phy: mdio-gpio: Add #defines for the GPIO index's
The GPIOs are described in device tree using a list, without names. Add defines to indicate what each index in the list means. These defines should also be used by platform devices passing GPIOs via a GPIO lookup table. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mdio-gpio.h')
-rw-r--r--include/linux/mdio-gpio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mdio-gpio.h b/include/linux/mdio-gpio.h
new file mode 100644
index 000000000000..cea443a672cb
--- /dev/null
+++ b/include/linux/mdio-gpio.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __LINUX_MDIO_GPIO_H
+#define __LINUX_MDIO_GPIO_H
+
+#define MDIO_GPIO_MDC 0
+#define MDIO_GPIO_MDIO 1
+#define MDIO_GPIO_MDO 2
+
+#endif