brcm47xx: add support for ipv6 in default network config
[openwrt.git] / target / linux / kirkwood / patches-3.10 / 0020-net-mv643xx_eth-add-phy_node-to-platform_data-struct.patch
1 From 76a09d3052c7c1c5d4a3fcdfee3a12cfc998d58f Mon Sep 17 00:00:00 2001
2 From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
3 Date: Wed, 29 May 2013 21:32:45 +0200
4 Subject: [PATCH 20/29] net: mv643xx_eth: add phy_node to platform_data struct
5
6 This adds a struct device_node pointer for a phy passed by phandle
7 to mv643xx_eth node.
8
9 Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
10 ---
11  include/linux/mv643xx_eth.h | 2 ++
12  1 file changed, 2 insertions(+)
13
14 diff --git a/include/linux/mv643xx_eth.h b/include/linux/mv643xx_eth.h
15 index 141d395..6e8215b 100644
16 --- a/include/linux/mv643xx_eth.h
17 +++ b/include/linux/mv643xx_eth.h
18 @@ -30,6 +30,7 @@ struct mv643xx_eth_shared_platform_data {
19  #define MV643XX_ETH_PHY_ADDR(x)                (0x80 | (x))
20  #define MV643XX_ETH_PHY_NONE           0xff
21  
22 +struct device_node;
23  struct mv643xx_eth_platform_data {
24         /*
25          * Pointer back to our parent instance, and our port number.
26 @@ -41,6 +42,7 @@ struct mv643xx_eth_platform_data {
27          * Whether a PHY is present, and if yes, at which address.
28          */
29         int                     phy_addr;
30 +       struct device_node      *phy_node;
31  
32         /*
33          * Use this MAC address if it is valid, overriding the
34 -- 
35 1.8.4.rc1
36