Giuseppe CAVALLARO | 3c9732c | 2010-01-06 23:07:13 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | |
| 3 | Header file for stmmac platform data |
| 4 | |
| 5 | Copyright (C) 2009 STMicroelectronics Ltd |
| 6 | |
| 7 | This program is free software; you can redistribute it and/or modify it |
| 8 | under the terms and conditions of the GNU General Public License, |
| 9 | version 2, as published by the Free Software Foundation. |
| 10 | |
| 11 | This program is distributed in the hope it will be useful, but WITHOUT |
| 12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 14 | more details. |
| 15 | |
| 16 | You should have received a copy of the GNU General Public License along with |
| 17 | this program; if not, write to the Free Software Foundation, Inc., |
| 18 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | |
| 20 | The full GNU General Public License is included in this distribution in |
| 21 | the file called "COPYING". |
| 22 | |
| 23 | Author: Giuseppe Cavallaro <peppe.cavallaro@st.com> |
| 24 | *******************************************************************************/ |
| 25 | |
| 26 | #ifndef __STMMAC_PLATFORM_DATA |
| 27 | #define __STMMAC_PLATFORM_DATA |
| 28 | |
Viresh KUMAR | 57a503c | 2011-05-02 18:36:45 +0000 | [diff] [blame] | 29 | #include <linux/platform_device.h> |
| 30 | |
Giuseppe CAVALLARO | 36bcfe7 | 2011-07-20 00:05:23 +0000 | [diff] [blame^] | 31 | /* Platfrom data for platform device structure's platform_data field */ |
Giuseppe CAVALLARO | 3c9732c | 2010-01-06 23:07:13 +0000 | [diff] [blame] | 32 | |
Giuseppe CAVALLARO | 36bcfe7 | 2011-07-20 00:05:23 +0000 | [diff] [blame^] | 33 | struct stmmac_mdio_bus_data { |
| 34 | int bus_id; |
| 35 | int (*phy_reset)(void *priv); |
| 36 | unsigned int phy_mask; |
| 37 | int *irqs; |
| 38 | int probed_phy_irq; |
| 39 | }; |
| 40 | |
Giuseppe CAVALLARO | 3c9732c | 2010-01-06 23:07:13 +0000 | [diff] [blame] | 41 | struct plat_stmmacenet_data { |
| 42 | int bus_id; |
Giuseppe CAVALLARO | 36bcfe7 | 2011-07-20 00:05:23 +0000 | [diff] [blame^] | 43 | int phy_addr; |
| 44 | int interface; |
| 45 | struct stmmac_mdio_bus_data *mdio_bus_data; |
Giuseppe CAVALLARO | 3c9732c | 2010-01-06 23:07:13 +0000 | [diff] [blame] | 46 | int pbl; |
Giuseppe CAVALLARO | dfb8fb9 | 2010-09-17 03:23:39 +0000 | [diff] [blame] | 47 | int clk_csr; |
Giuseppe CAVALLARO | 3c9732c | 2010-01-06 23:07:13 +0000 | [diff] [blame] | 48 | int has_gmac; |
Giuseppe CAVALLARO | e326e85 | 2010-04-13 20:21:14 +0000 | [diff] [blame] | 49 | int enh_desc; |
Giuseppe CAVALLARO | ebbb293 | 2010-09-17 03:23:40 +0000 | [diff] [blame] | 50 | int tx_coe; |
| 51 | int bugged_jumbo; |
Giuseppe Cavallaro | 543876c | 2010-09-24 21:27:41 -0700 | [diff] [blame] | 52 | int pmt; |
Srinivas Kandagatla | 61b8013 | 2011-07-17 20:54:09 +0000 | [diff] [blame] | 53 | int force_sf_dma_mode; |
Giuseppe CAVALLARO | 3c9732c | 2010-01-06 23:07:13 +0000 | [diff] [blame] | 54 | void (*fix_mac_speed)(void *priv, unsigned int speed); |
Giuseppe CAVALLARO | ad01b7d | 2010-08-23 20:40:42 +0000 | [diff] [blame] | 55 | void (*bus_setup)(void __iomem *ioaddr); |
Giuseppe CAVALLARO | 293bb1c | 2010-11-24 02:38:05 +0000 | [diff] [blame] | 56 | int (*init)(struct platform_device *pdev); |
| 57 | void (*exit)(struct platform_device *pdev); |
| 58 | void *custom_cfg; |
Giuseppe CAVALLARO | 3c9732c | 2010-01-06 23:07:13 +0000 | [diff] [blame] | 59 | void *bsp_priv; |
| 60 | }; |
Giuseppe CAVALLARO | 3c9732c | 2010-01-06 23:07:13 +0000 | [diff] [blame] | 61 | #endif |