summaryrefslogtreecommitdiffstats
path: root/include/linux/sh_eth.h
diff options
context:
space:
mode:
authorYoshihiro Shimoda2012-02-15 18:54:56 +0100
committerDavid S. Miller2012-02-16 23:08:09 +0100
commit150647fb2c313d7c5184fca3fa0829a4a7d6f7bc (patch)
tree6bd3edfbc652b6e5321b33d333b67769e3534f18 /include/linux/sh_eth.h
parentnet: sh_eth: add the value of tsu to the SH7757's GETHER (diff)
downloadkernel-qcow2-linux-150647fb2c313d7c5184fca3fa0829a4a7d6f7bc.tar.gz
kernel-qcow2-linux-150647fb2c313d7c5184fca3fa0829a4a7d6f7bc.tar.xz
kernel-qcow2-linux-150647fb2c313d7c5184fca3fa0829a4a7d6f7bc.zip
net: sh_eth: change the condition of initialization
The SH7757 has 2 Fast Ethernet and 2 Gigabit Ethernet, and the first Gigabit channel needs the initialization. So, this patch adds the parameter of "needs_init", and if the sh_eth_plat_data is set it to 1, the driver will initialize the channel. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/sh_eth.h')
-rw-r--r--include/linux/sh_eth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sh_eth.h b/include/linux/sh_eth.h
index 2076acf8294d..b17d765ded84 100644
--- a/include/linux/sh_eth.h
+++ b/include/linux/sh_eth.h
@@ -20,6 +20,7 @@ struct sh_eth_plat_data {
unsigned char mac_addr[6];
unsigned no_ether_link:1;
unsigned ether_link_active_low:1;
+ unsigned needs_init:1;
};
#endif