blob: e1ab6e86cdb39491e9a1a311d1e6323bf0b2f9ad [file] [log] [blame]
Sachin Sanapa49f37e2010-08-13 21:22:49 +00001/*
2 *pxa168 ethernet platform device data definition file.
3 */
4#ifndef __LINUX_PXA168_ETH_H
5#define __LINUX_PXA168_ETH_H
6
Sebastian Hesselbarth95f259c2014-10-25 12:08:59 +02007#include <linux/phy.h>
8
Sachin Sanapa49f37e2010-08-13 21:22:49 +00009struct pxa168_eth_platform_data {
10 int port_number;
11 int phy_addr;
12
13 /*
14 * If speed is 0, then speed and duplex are autonegotiated.
15 */
16 int speed; /* 0, SPEED_10, SPEED_100 */
17 int duplex; /* DUPLEX_HALF or DUPLEX_FULL */
Sebastian Hesselbarthe7de17a2014-10-22 20:26:45 +020018 phy_interface_t intf;
Sachin Sanapa49f37e2010-08-13 21:22:49 +000019
20 /*
21 * Override default RX/TX queue sizes if nonzero.
22 */
23 int rx_queue_size;
24 int tx_queue_size;
25
26 /*
27 * init callback is used for board specific initialization
28 * e.g on Aspenite its used to initialize the PHY transceiver.
29 */
30 int (*init)(void);
31};
32
33#endif /* __LINUX_PXA168_ETH_H */