mirror of https://github.com/rusefi/ChibiOS.git
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1240 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
cd66f64dc6
commit
5cdca32dbb
|
@ -46,15 +46,6 @@ void mii_lld_reset(MACDriver *macp) {
|
|||
|
||||
/*
|
||||
* Disables the pullups on all the pins that are latched on reset by the PHY.
|
||||
* The status latched into the PHY is:
|
||||
* PHYADDR = 00001
|
||||
* PCS_LPBK = 0 (disabled)
|
||||
* ISOLATE = 0 (disabled)
|
||||
* RMIISEL = 0 (MII mode)
|
||||
* RMIIBTB = 0 (BTB mode disabled)
|
||||
* SPEED = 1 (100mbps)
|
||||
* DUPLEX = 1 (full duplex)
|
||||
* ANEG_EN = 1 (auto negotiation enabled)
|
||||
*/
|
||||
AT91C_BASE_PIOB->PIO_PPUDR = PHY_LATCHED_PINS;
|
||||
|
||||
|
|
|
@ -51,8 +51,7 @@
|
|||
/**
|
||||
* @brief Pins latched by the PHY at reset.
|
||||
*/
|
||||
#if (PHY_HARDWARE == PHY_MICREL_KS8721)
|
||||
|
||||
#if PHY_HARDWARE == PHY_MICREL_KS8721
|
||||
#define PHY_ADDRESS 1
|
||||
#define PHY_ID MII_KS8721_ID
|
||||
#define PHY_LATCHED_PINS (AT91C_PB4_ECRS | AT91C_PB5_ERX0 | \
|
||||
|
@ -60,15 +59,15 @@
|
|||
AT91C_PB13_ERX2 | AT91C_PB14_ERX3 | \
|
||||
AT91C_PB15_ERXDV_ECRSDV | AT91C_PB16_ECOL | \
|
||||
AT91C_PIO_PB26)
|
||||
#elif (PHY_HARDWARE == PHY_DAVICOM_9161)
|
||||
|
||||
#elif PHY_HARDWARE == PHY_DAVICOM_9161
|
||||
#define PHY_ADDRESS 0
|
||||
#define PHY_ID MII_DM9161_ID
|
||||
#define PHY_LATCHED_PINS (AT91C_PB4_ECRS | AT91C_PB5_ERX0 | \
|
||||
AT91C_PB6_ERX1 | AT91C_PB7_ERXER | \
|
||||
AT91C_PB13_ERX2 | AT91C_PB14_ERX3 | \
|
||||
AT91C_PB15_ERXDV_ECRSDV | AT91C_PB16_ECOL | \
|
||||
AT91C_PB17_ERXCK)
|
||||
#define PHY_LATCHED_PINS (AT91C_PB0_ETXCK_EREFCK | AT91C_PB4_ECRS | \
|
||||
AT91C_PB5_ERX0 | AT91C_PB6_ERX1 | \
|
||||
AT91C_PB7_ERXER | AT91C_PB13_ERX2 | \
|
||||
AT91C_PB14_ERX3 | AT91C_PB15_ERXDV_ECRSDV | \
|
||||
AT91C_PB16_ECOL | AT91C_PB17_ERXCK)
|
||||
#endif /* PHY_HARDWARE */
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
Loading…
Reference in New Issue