mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
94acf164dc
commit
83a77e9ec4
5 changed files with 195 additions and 5 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue