forked from Ivasoft/openwrt
ar71xx: ag71xx: get max_frame_len and desc_pktlen_mask from platform data
This will allow to use SoC specific values for both. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39145
This commit is contained in:
@@ -786,6 +786,9 @@ void __init ath79_register_eth(unsigned int id)
|
||||
|
||||
pdata = pdev->dev.platform_data;
|
||||
|
||||
pdata->max_frame_len = 1540;
|
||||
pdata->desc_pktlen_mask = 0xfff;
|
||||
|
||||
err = ath79_setup_phy_if_mode(id, pdata);
|
||||
if (err) {
|
||||
printk(KERN_ERR
|
||||
|
||||
@@ -45,6 +45,9 @@ struct ag71xx_platform_data {
|
||||
u32 fifo_cfg1;
|
||||
u32 fifo_cfg2;
|
||||
u32 fifo_cfg3;
|
||||
|
||||
unsigned int max_frame_len;
|
||||
unsigned int desc_pktlen_mask;
|
||||
};
|
||||
|
||||
struct ag71xx_mdio_platform_data {
|
||||
|
||||
Reference in New Issue
Block a user