Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
f89de741
Commit
f89de741
authored
Mar 08, 2022
by
Vincent van Beveren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added feedback for autoneg
parent
03f3e702
Pipeline
#3298
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
endpoint.c
dev/endpoint.c
+2
-0
No files found.
dev/endpoint.c
View file @
f89de741
...
...
@@ -237,10 +237,12 @@ void ep_set_autonegotiation(bool autoneg)
val
=
pcs_read
(
MDIO_REG_ECTRL
);
if
(
autoneg
)
{
puts
(
"Enabeling auto-negotiation"
);
val
|=
MDIO_MCR_ANENABLE
|
MDIO_MCR_ANRESTART
;
}
else
{
puts
(
"Disabling auto-negotiation"
);
val
&=
~
(
MDIO_MCR_ANENABLE
|
MDIO_MCR_ANRESTART
);
}
pcs_write
(
MDIO_REG_ECTRL
,
val
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment