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
4
Merge Requests
4
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
b86e4e6e
Commit
b86e4e6e
authored
Mar 08, 2022
by
Vincent van Beveren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrong register
😳
parent
f89de741
Pipeline
#3301
failed with stages
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
endpoint.c
dev/endpoint.c
+2
-4
No files found.
dev/endpoint.c
View file @
b86e4e6e
...
...
@@ -234,18 +234,16 @@ void ep_set_autonegotiation(bool autoneg)
// this only works for the non-broadcast version
#ifndef BROADCAST
uint32_t
val
;
val
=
pcs_read
(
MDIO_REG_
ECTRL
);
val
=
pcs_read
(
MDIO_REG_
MCR
);
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
);
pcs_write
(
MDIO_REG_
MCR
,
val
);
autoneg_enabled
=
autoneg
;
#endif
}
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