aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2015-10-20 10:08:59 -0400
committerDavid S. Miller <davem@davemloft.net>2015-10-21 22:50:44 -0400
commite2aacd963a06fc558a809ecb62f5833e6c340b28 (patch)
treef5bea15269f7ba90440d1c06869667c6f6ff32f7 /include/linux/platform_data
parent844338e5a46f5d80566fa853c6168a78cdadab01 (diff)
net: mdio-gpio: move platform data header
This header file only contains the platform data structure definition, so move it to the include/linux/platform_data/ directory. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> 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.h33
1 files changed, 33 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..11f00cdabe3d
--- /dev/null
+++ b/include/linux/platform_data/mdio-gpio.h
@@ -0,0 +1,33 @@
1/*
2 * MDIO-GPIO bus platform data structures
3 *
4 * Copyright (C) 2008, Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10
11#ifndef __LINUX_MDIO_GPIO_H
12#define __LINUX_MDIO_GPIO_H
13
14#include <linux/mdio-bitbang.h>
15
16struct mdio_gpio_platform_data {
17 /* GPIO numbers for bus pins */
18 unsigned int mdc;
19 unsigned int mdio;
20 unsigned int mdo;
21
22 bool mdc_active_low;
23 bool mdio_active_low;
24 bool mdo_active_low;
25
26 u32 phy_mask;
27 u32 phy_ignore_ta_mask;
28 int irqs[PHY_MAX_ADDR];
29 /* reset callback */
30 int (*reset)(struct mii_bus *bus);
31};
32
33#endif /* __LINUX_MDIO_GPIO_H */