Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
5a7b2757
Commit
5a7b2757
authored
9 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Add definitions for SMSC LAN8742A PHY
parent
9c9c31ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/net/Kconfig
+3
-0
3 additions, 0 deletions
drivers/net/Kconfig
include/nuttx/net/mii.h
+6
-1
6 additions, 1 deletion
include/nuttx/net/mii.h
with
9 additions
and
1 deletion
drivers/net/Kconfig
+
3
−
0
View file @
5a7b2757
...
...
@@ -349,6 +349,9 @@ config ETH0_PHY_LAN8740
config ETH0_PHY_LAN8740A
bool "SMSC LAN8740A PHY"
config ETH0_PHY_LAN8742A
bool "SMSC LAN8742A PHY"
config ETH0_PHY_DM9161
bool "Davicom DM9161 PHY"
...
...
This diff is collapsed.
Click to expand it.
include/nuttx/net/mii.h
+
6
−
1
View file @
5a7b2757
...
...
@@ -169,7 +169,7 @@
#define MII_LAN8720_IMR 0x1e
/* Interrupt Mask Register */
#define MII_LAN8720_SCSR 0x1f
/* PHY Special Control/Status Register */
/* SMSC LAN8740 PHY Extended Registers */
/* SMSC LAN8740
/LAN8742A
PHY Extended Registers */
#define MII_LAN8740_CONFIG 0x10
/* EDPD NDL/Crossover Timer/EEE Configuration */
#define MII_LAN8740_MCSR 0x11
/* Mode Control/Status Register */
...
...
@@ -361,6 +361,11 @@
#define MII_PHYID1_LAN8740A 0x0007
/* ID1 value for LAN8740A */
#define MII_PHYID2_LAN8740A 0xc111
/* ID2 value for LAN8740A */
/* SMSC LAN8742A MII ID1/2 register bits */
#define MII_PHYID1_LAN8742A 0x0007
/* ID1 value for LAN8742A */
#define MII_PHYID2_LAN8742A 0xc130
/* ID2 value for LAN8742A */
/* Am79c874-specific register bit settings **********************************/
/* Am79c874 MII ID1/2 register bits */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment