mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 07:04:00 +08:00
8b95274784
This structure was used intensively for machine specific values when DT was not used. Since the removal of AVR32 from the kernel, this structure is only used for passing clocks from PCI macb wrapper, all other fields being 0. All other known platforms use DT. Remove the leftovers but make sure that PCI macb still works as expected by using default values: - phydev->irq is set to PHY_POLL by mdiobus_alloc() - mii_bus->phy_mask is cleared while allocating it - bp->phy_interface is set to PHY_INTERFACE_MODE_MII if mode not found in DT. This simplifies driver probe path and particularly phy handling. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
24 lines
535 B
C
24 lines
535 B
C
/*
|
|
* Copyright (C) 2004-2006 Atmel Corporation
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __MACB_PDATA_H__
|
|
#define __MACB_PDATA_H__
|
|
|
|
#include <linux/clk.h>
|
|
|
|
/**
|
|
* struct macb_platform_data - platform data for MACB Ethernet
|
|
* @pclk: platform clock
|
|
* @hclk: AHB clock
|
|
*/
|
|
struct macb_platform_data {
|
|
struct clk *pclk;
|
|
struct clk *hclk;
|
|
};
|
|
|
|
#endif /* __MACB_PDATA_H__ */
|