diff options
author | Bartosz Folta <bfolta@cadence.com> | 2016-12-14 06:39:15 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-17 10:24:33 -0500 |
commit | 83a77e9ec4150ee4acc635638f7dedd9da523a26 (patch) | |
tree | 7c29f5c99b7221bda73f25ef00ada98ddfaf38d8 /include/linux/platform_data | |
parent | 94acf164dc8f1184e8d0737be7125134c2701dbe (diff) | |
download | blackbird-obmc-linux-83a77e9ec4150ee4acc635638f7dedd9da523a26.tar.gz blackbird-obmc-linux-83a77e9ec4150ee4acc635638f7dedd9da523a26.zip |
net: macb: Added PCI wrapper for Platform Driver.
There are hardware PCI implementations of Cadence GEM network
controller. This patch will allow to use such hardware with reuse of
existing Platform Driver.
Signed-off-by: Bartosz Folta <bfolta@cadence.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/macb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/platform_data/macb.h b/include/linux/platform_data/macb.h index 21b15f6fee25..7815d50c26ff 100644 --- a/include/linux/platform_data/macb.h +++ b/include/linux/platform_data/macb.h @@ -8,6 +8,8 @@ #ifndef __MACB_PDATA_H__ #define __MACB_PDATA_H__ +#include <linux/clk.h> + /** * struct macb_platform_data - platform data for MACB Ethernet * @phy_mask: phy mask passed when register the MDIO bus @@ -15,12 +17,16 @@ * @phy_irq_pin: PHY IRQ * @is_rmii: using RMII interface? * @rev_eth_addr: reverse Ethernet address byte order + * @pclk: platform clock + * @hclk: AHB clock */ struct macb_platform_data { u32 phy_mask; int phy_irq_pin; u8 is_rmii; u8 rev_eth_addr; + struct clk *pclk; + struct clk *hclk; }; #endif /* __MACB_PDATA_H__ */ |