mirror of
https://github.com/apache/nuttx.git
synced 2026-09-01 22:53:01 +00:00
LC17 Ethernet: Ignore 4-bit versin number when checking for PHY ID match
This commit is contained in:
parent
e96ec630c1
commit
54bbdca913
2 changed files with 8 additions and 2 deletions
|
|
@ -2688,12 +2688,18 @@ static inline int lpc17_phyinit(struct lpc17_driver_s *priv)
|
|||
phyreg = (unsigned int)lpc17_phyread(phyaddr, MII_PHYID1);
|
||||
nvdbg("Addr: %d PHY ID1: %04x\n", phyaddr, phyreg);
|
||||
|
||||
/* Compare OUI bits 3-18 */
|
||||
|
||||
if (phyreg == LPC17_PHYID1)
|
||||
{
|
||||
phyreg = lpc17_phyread(phyaddr, MII_PHYID2);
|
||||
nvdbg("Addr: %d PHY ID2: %04x\n", phyaddr, phyreg);
|
||||
|
||||
if (phyreg == LPC17_PHYID2)
|
||||
/* Compare OUI bits 19-24 and the 6-bit model number (ignoring the
|
||||
* 4-bit revision number).
|
||||
*/
|
||||
|
||||
if ((phyreg & 0xfff0) == LPC17_PHYID2)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ CONFIG_BOARD_LOOPSPERMSEC=7982
|
|||
# Interrupt options
|
||||
#
|
||||
CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
|
||||
CONFIG_ARCH_INTERRUPTSTACK=0
|
||||
CONFIG_ARCH_INTERRUPTSTACK=1536
|
||||
CONFIG_ARCH_HAVE_HIPRI_INTERRUPT=y
|
||||
# CONFIG_ARCH_HIPRI_INTERRUPT is not set
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue