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
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
702b23ec
Commit
702b23ec
authored
Oct 13, 2020
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boards: move mac assignment to be done after EP is initialized
parent
378b8dab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
board.c
boards/generic/board.c
+7
-7
board.c
boards/pxie-fmc/board.c
+8
-7
No files found.
boards/generic/board.c
View file @
702b23ec
...
...
@@ -12,7 +12,6 @@ int wrc_board_early_init()
int
memtype
;
uint32_t
sdbfs_entry
;
uint32_t
sector_size
;
uint8_t
mac_addr
[
6
];
if
(
EEPROM_STORAGE
)
{
...
...
@@ -60,6 +59,12 @@ int wrc_board_early_init()
*/
storage_mount
(
&
wrc_storage_dev
);
return
0
;
}
int
wrc_board_init
()
{
uint8_t
mac_addr
[
6
];
/*
* Try reading MAC addr stored in flash
*/
...
...
@@ -73,12 +78,7 @@ int wrc_board_early_init()
mac_addr
[
5
]
=
0x77
;
}
ep_set_mac_addr
(
&
wrc_endpoint_dev
,
mac_addr
);
return
0
;
}
int
wrc_board_init
()
{
ep_pfilter_init_default
(
&
wrc_endpoint_dev
);
return
0
;
}
...
...
boards/pxie-fmc/board.c
View file @
702b23ec
...
...
@@ -23,7 +23,6 @@ int wrc_board_early_init()
{
uint32_t
sdbfs_entry
;
uint32_t
sector_size
;
uint8_t
mac_addr
[
6
];
/* EEPROM support */
...
...
@@ -40,6 +39,13 @@ int wrc_board_early_init()
*/
storage_mount
(
&
wrc_storage_dev
);
return
0
;
}
int
wrc_board_init
()
{
uint8_t
mac_addr
[
6
];
/*
* MAC address assignment
*/
...
...
@@ -61,12 +67,7 @@ int wrc_board_early_init()
mac_addr
[
5
]
=
0x77
;
}
ep_set_mac_addr
(
&
wrc_endpoint_dev
,
mac_addr
);
return
0
;
}
int
wrc_board_init
()
{
ep_pfilter_init_default
(
&
wrc_endpoint_dev
);
return
0
;
}
...
...
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