blob: 7815d50c26ff4bf021484cf801ee53be0ce09aaf [file] [log] [blame]
Jamie Iles84e0cdb2011-03-08 20:17:06 +00001/*
2 * Copyright (C) 2004-2006 Atmel Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8#ifndef __MACB_PDATA_H__
9#define __MACB_PDATA_H__
10
Bartosz Folta83a77e92016-12-14 06:39:15 +000011#include <linux/clk.h>
12
Andy Shevchenkoe018a0c2015-07-24 21:24:04 +030013/**
14 * struct macb_platform_data - platform data for MACB Ethernet
15 * @phy_mask: phy mask passed when register the MDIO bus
16 * within the driver
17 * @phy_irq_pin: PHY IRQ
18 * @is_rmii: using RMII interface?
19 * @rev_eth_addr: reverse Ethernet address byte order
Bartosz Folta83a77e92016-12-14 06:39:15 +000020 * @pclk: platform clock
21 * @hclk: AHB clock
Andy Shevchenkoe018a0c2015-07-24 21:24:04 +030022 */
Jamie Iles84e0cdb2011-03-08 20:17:06 +000023struct macb_platform_data {
24 u32 phy_mask;
Andy Shevchenkoe018a0c2015-07-24 21:24:04 +030025 int phy_irq_pin;
26 u8 is_rmii;
27 u8 rev_eth_addr;
Bartosz Folta83a77e92016-12-14 06:39:15 +000028 struct clk *pclk;
29 struct clk *hclk;
Jamie Iles84e0cdb2011-03-08 20:17:06 +000030};
31
32#endif /* __MACB_PDATA_H__ */