summaryrefslogtreecommitdiff
path: root/drivers/net/bfin_mac.c
AgeCommit message (Collapse)Author
2009-08-25Add debug message for Blackfin Ethernet Rx function.Robin Getz
Add a simple print for the Blackfin's Ethernet Rx function, so we can debug incomming Ethernet functions easier. Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2009-03-20Blackfin: bfin_mac: force boards to setup the MAC themselvesMike Frysinger
Since the on-chip MAC does not have an eeprom or similar interface, force all Blackfin boards that use this driver to setup the board data with a proper MAC. Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
2009-02-02Blackfin: bfin_mac: cleanup pointer/casts for aliasing issuesMike Frysinger
Redo how pointers are managed to get rid of ugly casts and strict pointer aliasing issues that are highlighted by gcc 4.3. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
2009-02-02Blackfin: bfin_mac: convert CONFIG_BFIN_MAC_RMII to CONFIG_RMIIMike Frysinger
No point in having a Blackfin-specific define "CONFIG_BFIN_MAC_RMII" that does exactly the same thing as common "CONFIG_RMII". Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
2009-02-02Blackfin: bfin_mac: use common debug()Mike Frysinger
Rather then defining our own DEBUGF(), just use the common debug(). Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
2009-02-02Blackfin: bfin_mac: respect CONFIG_PHY_{ADDR,CLOCK_FREQ}Mike Frysinger
Rather than having the on-chip MAC hardcoded to phy address 1 and a speed of 2.5mhz, use these as defaults if the board doesn't specify otherwise. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
2009-02-02Blackfin: bfin_mac: cleanup MII/PHY functionsMike Frysinger
Cleanup and rewrite the MII/PHY related functions so that we can reuse the existing common linux/miiphy.h code and hook into the `mii` command. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
2009-02-02Blackfin: bfin_mac: set MDCDIV based on SCLKMike Frysinger
Rather than hardcoding MDCDIV to 24 (which is correct for ~125mhz SCLK), use the real algorithm so it gets set correctly regardless of SCLK. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
2009-01-28Blackfin: bfin_mac: update port muxingMike Frysinger
Adds support more Blackfin parts and fixes broken muxing for older ones. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-10-18rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-09-02Introduce netdev.h header file and remove externsBen Warren
This addresses all drivers whose initializers have already been moved to board_eth_init()/cpu_eth_init(). Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2008-08-26Moved initialization of Blackfin EMAC Ethernet controller to board_eth_init()Ben Warren
Added board_eth_init() function to bf537-stamp board. Removed initialization for the Blackin EMAC driver from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2008-05-21Big white-space cleanup.Wolfgang Denk
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-03-25net/Blackfin: move on-chip MAC driver into drivers/net/Mike Frysinger
The Blackfin on-chip MAC driver was being managed in the BF537-STAMP board directory, but it is not board specific, so relocate it to the drivers dir so that other Blackfin ports can utilize it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>