Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
39
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
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
Projects
Software for White Rabbit PTP Core
Commits
5cbbec15
Commit
5cbbec15
authored
8 years ago
by
Grzegorz Daniluk
Browse files
Options
Downloads
Patches
Plain Diff
generate net reset when LM32 starts
parent
c268940a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dev/syscon.c
+6
-0
6 additions, 0 deletions
dev/syscon.c
include/syscon.h
+2
-0
2 additions, 0 deletions
include/syscon.h
wrc_main.c
+1
-0
1 addition, 0 deletions
wrc_main.c
with
9 additions
and
0 deletions
dev/syscon.c
+
6
−
0
View file @
5cbbec15
...
...
@@ -104,3 +104,9 @@ int diag_write_word(uint32_t adr, uint32_t val)
return
0
;
}
void
net_rst
(
void
)
{
syscon
->
GPSR
|=
SYSC_GPSR_NET_RST
;
}
This diff is collapsed.
Click to expand it.
include/syscon.h
+
2
−
0
View file @
5cbbec15
...
...
@@ -111,5 +111,7 @@ void diag_read_info(uint32_t *id, uint32_t *ver, uint32_t *nrw, uint32_t *nro);
int
diag_read_word
(
uint32_t
adr
,
int
bank
,
uint32_t
*
val
);
int
diag_write_word
(
uint32_t
adr
,
uint32_t
val
);
void
net_rst
(
void
);
#endif
/* CONFIG_WR_NODE */
#endif
This diff is collapsed.
Click to expand it.
wrc_main.c
+
1
−
0
View file @
5cbbec15
...
...
@@ -80,6 +80,7 @@ static void wrc_initialize(void)
mac_addr
[
0
],
mac_addr
[
1
],
mac_addr
[
2
],
mac_addr
[
3
],
mac_addr
[
4
],
mac_addr
[
5
]);
net_rst
();
ep_init
(
mac_addr
);
ep_enable
(
1
,
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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