Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wrpc-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
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
This is an archived project. Repository and other project resources are read-only.
hdl-core-lib
wr-cores
wrpc-sw
Commits
747effed
Commit
747effed
authored
9 years ago
by
Grzegorz Daniluk
Browse files
Options
Downloads
Patches
Plain Diff
adding Kconfig option to build sw for 16-bit PCS platforms
E.g. Kintex-7
parent
b54a14a8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Kconfig
+8
-0
8 additions, 0 deletions
Kconfig
include/board-wrc.h
+12
-3
12 additions, 3 deletions
include/board-wrc.h
with
20 additions
and
3 deletions
Kconfig
+
8
−
0
View file @
747effed
...
...
@@ -28,6 +28,14 @@ config RAMSIZE
# CONFIG_WR_SWITCH has no further options at all at this point
config WR_NODE_PCS16
depends on WR_NODE
boolean "Compile for 16-bit PCS"
default n
help
This allows to compile the WR PTP Core software for 16-bit PCS platforms
(e.g. Kintex-7).
config STACKSIZE
depends on WR_NODE
int
...
...
This diff is collapsed.
Click to expand it.
include/board-wrc.h
+
12
−
3
View file @
747effed
...
...
@@ -14,8 +14,13 @@
#define CPU_CLOCK 62500000ULL
/* WR Reference clock period (picoseconds) and frequency (Hz) */
#define REF_CLOCK_PERIOD_PS 8000
#define REF_CLOCK_FREQ_HZ 125000000
#ifdef CONFIG_WR_NODE_PCS16
# define REF_CLOCK_PERIOD_PS 16000
# define REF_CLOCK_FREQ_HZ 62500000
#else
# define REF_CLOCK_PERIOD_PS 8000
# define REF_CLOCK_FREQ_HZ 125000000
#endif
/* Baud rate of the builtin UART (does not apply to the VUART) */
#define UART_BAUDRATE 115200ULL
...
...
@@ -33,7 +38,11 @@ int board_init(void);
int
board_update
(
void
);
/* spll parameter that are board-specific */
#define BOARD_DIVIDE_DMTD_CLOCKS 1
#ifdef CONFIG_WR_NODE_PCS16
# define BOARD_DIVIDE_DMTD_CLOCKS 0
#else
# define BOARD_DIVIDE_DMTD_CLOCKS 1
#endif
#define BOARD_MAX_CHAN_REF 1
#define BOARD_MAX_CHAN_AUX 2
#define BOARD_MAX_PTRACKERS 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