summaryrefslogtreecommitdiff
path: root/drivers/tsec.c
Commit message (Collapse)AuthorAgeLines
* Don't wait for disconnected TSECsAndy Fleming2007-08-16-13/+17
| | | | | | | | | The TSEC driver's PHY code waits a long time for autonegotiation to complete, even if the link is down. The PHY knows the link is down or up before autonegotiation completes, so we can short-circuit the process if the link is down. Signed-off-by: Andy Fleming <afleming@freescale.com>
* Define tsec flag values in config filesAndy Fleming2007-08-16-19/+11
| | | | | | | | | | The tsec_info structure and array has a "flags" field for each ethernet controller. This field is the only reason there are settings. Switch to defining TSECn_FLAGS for each controller in the config header, and we can greatly simplify the array, and also simplify the addition of future boards. Signed-off-by: Andy Fleming <afleming@freescale.com>
* multicast tftp: RFC2090David Updegraff2007-08-13-0/+48
| | | | | | | | Implemented IETF RFC2090, Multicast TFTP. Initial implementation on Realtek RTL8139 and Freescale TSEC. Signed-off-by: David Updegraff <dave@cray.com> Signed-off-by: Ben Warren <bwarren@qstreams.com>
* tsec: fix multiple PHY supportZach Sadecki2007-08-09-0/+2
| | | | | | | | The change entitled "Reduce CONFIG_MPC8YXX_TSECx to CONFIG_TSECx" broke multiple PHY support in tsec.c. This fixes it. Signed-off-by: Zach Sadecki <Zach.Sadecki@ripcode.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
* tsec: Allow Ten Bit Interface address to be configurableJoe Hamman2007-08-09-2/+2
| | | | | | | Allow the address of the Ten Bit Interface (TBI) to be changed in the event of a conflict with another device. Signed-off by: Joe Hamman <joe.hamman@embeddedspecialties.com>
* Coding style cleanup. Update CHANGELOG.Wolfgang Denk2007-08-06-31/+31
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* Add Marvell 1149 PHY support to the TSECAndy Fleming2007-08-03-0/+34
|
* Merge branch 'testing' into workingAndy Fleming2007-08-03-4/+3
|\ | | | | | | | | | | | | | | | | | | Conflicts: CHANGELOG fs/fat/fat.c include/configs/MPC8560ADS.h include/configs/pcs440ep.h net/eth.c
| * drivers/[n-z]*: Remove obsolete references to CONFIG_COMMANDSJon Loeliger2007-07-09-4/+3
| | | | | | | | Signed-off-by: Jon Loeliger <jdl@freescale.com>
| * drivers/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger2007-07-04-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: Jon Loeliger <jdl@freescale.com>
* | Remove erroneous errata code from Marvel 88E1111S driverAndy Fleming2007-07-11-5/+0
| | | | | | | | | | | | | | | | The Marvel 88E1111S driver for the TSEC was copied from the 88E1101 driver, and included a fix for an erratum which does not exist on that part. Now it is removed Signed-off-by: Andy Fleming <afleming@freescale.com>
* | tsec: Fix PHY code to match first driverAndy Fleming2007-07-11-1/+3
| | | | | | | | | | | | | | | | Jarrold Wen noticed that the generic PHY code always matches under the current implementation. Change it so the first match wins, and *only* unknown PHYs trigger the generic driver Signed-off-by: Andy Fleming <afleming@freescale.com>
* | Fix Marvell 88e1145 PHY init codeAndy Fleming2007-07-11-2/+4
|/ | | | | | | | | Fix a bug in the Marvell 88e1145 PHY init code in the TSEC driver where the reset was being done after the errata code instead of before. Signed-off-by: Haiying Wang <haiying.wang@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
* Reduce CONFIG_MPC8YXX_TSECx to CONFIG_TSECxKim Phillips2007-05-17-10/+8
| | | | | | | For all practical u-boot purposes, TSECs don't differ throughout the mpc8[356]xx families; reduce CONFIG_MPC8YXX_TSECx to CONFIG_TSECx. Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
* Add support for BCM5464 Quad PhyJoe Hamman2007-05-15-0/+28
| | | | | | Added support for Broadcom's BCM5464 Quad Phy Signed-off-by: Joe Hamman <joe.hamman@embeddedspecialties.com>
* Coding stylke cleanup; update CHANGELOG.Wolfgang Denk2007-05-05-1/+1
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* Add support for treating unknown PHYs as generic PHYs.David Updegraff2007-05-02-0/+93
| | | | | | | | | | | | | When bringing up u-boot on new boards, PHY support sometimes gets neglected. Most PHYs don't really need any special support, though. By adding a generic entry that always matches if nothing else does, we can provide support for "unsupported" PHYs for the tsec. The generic PHY driver supports most PHYs, including gigabit. Signed-off-by: David Updegraff <dave@cray.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
* Enable 8544 supportAndy Fleming2007-04-23-1/+5
| | | | | | | | | * Add support to the Makefile * Add 8544 configuration support to the tsec driver * Add 8544 SVR numbers to processor.h Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com> Signed-off-by: Jon Loeliger <jdl@freescale.com>
* mpc83xx: U-Boot support for Wind River SBC8349Paul Gortmaker2007-03-02-0/+84
| | | | | | | | | | | | | | | | | | | | | | | I've redone the SBC8349 support to match git-current, which incorporates all the MPC834x updates from Freescale since the 1.1.6 release, including the DDR changes. I've kept all the SBC8349 files as parallel as possible to the MPC8349EMDS ones for ease of maintenance and to allow for easy inspection of what was changed to support this board. Hence the SBC8349 U-Boot has FDT support and everything else that the MPC8349EMDS has. Fortunately the Freescale updates added support for boards using CS0, but I had to change spd_sdram.c to allow for board specific settings for the sdram_clk_cntl (it is/was hard coded to zero, and that remains the default if the board doesn't specify a value.) Hopefully this should be mergeable as-is and require no whitespace cleanups or similar, but if something doesn't measure up then let me know and I'll fix it. Thanks, Paul.
* mpc83xx: Add support for the MPC8349E-mITXTimur Tabi2006-11-03-3/+1
| | | | | | | | | | | | | | | | | | | PREREQUISITE PATCHES: * This patch can only be applied after the following patches have been applied: 1) DNX#2006090742000024 "Add support for multiple I2C buses" 2) DNX#2006090742000033 "Multi-bus I2C implementation of MPC834x" 3) DNX#2006091242000041 "Additional MPC8349 support for multibus i2c" 4) DNX#2006091242000078 "Add support for variable flash memory sizes on 83xx systems" 5) DNX#2006091242000069 "Add support for Errata DDR6 on MPC 834x systems" CHANGELOG: * Add support for the Freescale MPC8349E-mITX reference design platform. The second TSEC (Vitesse 7385 switch) is not supported at this time. Signed-off-by: Timur Tabi <timur@freescale.com>
* Added RGMII support to the TSECs and Marvell 881111 PhyNick Spence2006-11-03-4/+4
| | | | | | | Added a phy initialization to adjust the RGMII RX and TX timing Always set the R100 bit in 100 BaseT mode regardless of the TSEC mode Signed-off-by: Nick Spence <nick.spence@freescale.com>
* Fix TSEC driver (now for real): avoid crashes if PHY is not attachedBen Warren2006-10-26-3/+6
| | | | | | | to a TSEC (e.g. a switch is connected via RMII) or if the PHY is defective/incorrectly configured. Signed-off-by: Ben Warren <bwarren@qstreams.com>
* Remove unneeded include files and local variable.Jon Loeliger2006-10-12-3/+0
| | | | Signed-off-by: Jon Loeliger <jdl@freescale.com>
* Ran lindent and cleaned up whitespace issues.Jon Loeliger2006-10-10-441/+455
| | | | Format for 80-columns too.
* Merge branch 'mpc85xx'Jon Loeliger2006-09-19-13/+60
|\ | | | | | | | | | | Conflicts: drivers/tsec.c
| * Add support for eTSEC 3 & 4 on 8548 CDSAndy Fleming2006-09-19-10/+59
| | | | | | | | | | | | | | * Added support for using eTSEC 3 and eTSEC 4 on the 8548 CDS. This will only work on rev 1.3 boards (but doesn't break older boards) * Cleaned up some comments to reflect the expanded role of tsec in other systems
* | Fix Tsec bug when no linkJin Zhengxiong-R641882006-06-27-1/+1
| | | | | | | | | | | | | | | | When tftp a non-exist file from the tftp server, u-boot will check the link of all eth port. The original file will return wrong link state on the no link ports. signed-off-by: Jason Jin <Jason.Jin@freescale.com>
* | Initial support for MPC8641 HPCN board.Jon Loeliger2006-04-26-6/+63
|/
* GCC-4.x fixes: clean up global data pointer initialization for all boards.Wolfgang Denk2006-03-31-1/+2
|
* Add Nat Semi DP83865 PHY support to MPC85xx TSEC driverWolfgang Denk2006-03-12-0/+51
| | | | Patch by Murray Jensen, 08 Jul 2005
* Add support for multiple PHYs.Marian Balakowicz2005-10-28-5/+19
|
* Cleanup for GCC-4.xWolfgang Denk2005-10-13-2/+2
|
* Fix autonegotiation in tsec ethernet driverStefan Roese2005-09-21-10/+56
| | | | Patch by Stefan Roese, 21 Sep 2005
* Fix style issues primarily in 85xx and 83xx boards.Jon Loeliger2005-08-01-5/+5
| | | | | | | | - C++ comments - Trailing white space - Indentation not by TAB - Excessive amount of empty lines - Trailing empty lines
* * Patch by Eran LibertyEran Liberty2005-07-28-12/+11
| | | | Add support for the Freescale MPC8349ADS board.
* * Patch by Jon Loeliger, 2005-07-25Jon Loeliger2005-07-25-0/+1074
Move the TSEC driver out of cpu/mpc85xx as it will be shared by the upcoming mpc83xx family as well.