summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-12-09 08:33:31 +0300
committerDavid S. Miller <davem@davemloft.net>2018-12-09 08:33:31 +0300
commit120d633f199b264e0ad4c98eedc0564a89171c1d (patch)
treef6472abc7aacc40c5c41f2d3f548f3b6f1a0e974 /include/linux/platform_data
parent97ef7b4c5501b081c6144a08bba6d87baf69b6e5 (diff)
parentdc9d38cec71c508963b8f41c9d6d9cfd7e4ee393 (diff)
downloadlinux-120d633f199b264e0ad4c98eedc0564a89171c1d.tar.xz
Merge branch 'platform-data-controls-for-mdio-gpio'
Andrew Lunn says: ==================== platform data controls for mdio-gpio Soon to be mainlined is an x86 platform with a Marvell switch, and a bit-banging MDIO bus. In order to make this work, the phy_mask of the MDIO bus needs to be set to prevent scanning for PHYs, and the phy_ignore_ta_mask needs to be set because the switch has broken turnaround. Add a platform_data structure with these parameters. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/mdio-gpio.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/platform_data/mdio-gpio.h b/include/linux/platform_data/mdio-gpio.h
new file mode 100644
index 000000000000..13874fa6e767
--- /dev/null
+++ b/include/linux/platform_data/mdio-gpio.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * MDIO-GPIO bus platform data structure
+ */
+
+#ifndef __LINUX_MDIO_GPIO_PDATA_H
+#define __LINUX_MDIO_GPIO_PDATA_H
+
+struct mdio_gpio_platform_data {
+ u32 phy_mask;
+ u32 phy_ignore_ta_mask;
+};
+
+#endif /* __LINUX_MDIO_GPIO_PDATA_H */