[ar71xx] use platform data to setup the MAC_CFG register in the spi_vsc7385 driver
[openwrt.git] / target / linux / ar71xx / files / include / linux / spi / vsc7385.h
1 /*
2  * Platform data definition for the Vitesse VSC7385 ethernet switch driver
3  *
4  * Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published
8  * by the Free Software Foundation.
9  */
10
11 struct vsc7385_platform_data {
12         void            (* reset)(void);
13         char            *ucode_name;
14         struct {
15                 u32     tx_ipg:5;
16                 u32     bit2:1;
17                 u32     clk_sel:3;
18         } mac_cfg;
19 };