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
adbc0637
Commit
adbc0637
authored
May 05, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boards: add comments to generic/board-config.h
parent
7a298d7b
Pipeline
#4512
passed with stage
in 3 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
6 deletions
+28
-6
board-config.h
boards/generic/board-config.h
+28
-6
No files found.
boards/generic/board-config.h
View file @
adbc0637
...
...
@@ -11,20 +11,28 @@
* when wrpc-sw is build for wrc (node) -- as opposed to wrs (switch)
*/
/* Support etherbone: define the address of the etherbone core. */
#define BASE_ETHERBONE_CFG BASE_AUXWB
/* Board-specific parameters */
/* Board-specific parameters: the number of tics per seconds, or by how many
steps SYSCON->TVR is incremented each second.
This is controlled by the g_cntr_period generic in wrc_periph.vhd, the
value is 62500 and is not expected to change.
If clk_sys is 62.5Mhz, there are 1000 tics per second. */
#define TICS_PER_SECOND 1000
/* WR Core system/CPU clock frequency in Hz */
/* WR Core system/CPU clock frequency in Hz
(clk_sys)
*/
#define CPU_CLOCK 62500000ULL
/* WR Reference clock period (picoseconds) and frequency (Hz) */
/* WR Reference clock period (picoseconds) and frequency (Hz)
The eth phy interface datarate is 125MB/s. */
#ifdef CONFIG_TARGET_GENERIC_PHY_16BIT
/* So if the phy interface use 16b, it is clocked at 62.5Mhz */
# define NS_PER_CLOCK 16
# define REF_CLOCK_PERIOD_PS 16000
# define REF_CLOCK_FREQ_HZ 62500000
#else
/* So if the phy interface use 8b, it is clocked at 125Mhz */
# define NS_PER_CLOCK 8
# define REF_CLOCK_PERIOD_PS 8000
# define REF_CLOCK_FREQ_HZ 125000000
...
...
@@ -40,22 +48,36 @@
#ifdef CONFIG_TARGET_GENERIC_PHY_16BIT
# define BOARD_DIVIDE_DMTD_CLOCKS 0
#else
/* For timing closure, DMTD clock is divided by 2 when the RX clock
is 125Mhz. This is controlled by the g_divide_input_by_2 generic
in wr_core.vhd */
# define BOARD_DIVIDE_DMTD_CLOCKS 1
#endif
/* Number of reference channels (RX clocks) */
#define BOARD_MAX_CHAN_REF 1
/* Number of external pll that can be disciplined */
#define BOARD_MAX_CHAN_AUX 2
/* Should be the same as reference channels */
#define BOARD_MAX_PTRACKERS 1
/* Events are not used on this platform */
#define BOARD_USE_EVENTS 0
/* Use one uart at 115200 baud. Some boards may add extra uart. */
#define BOARD_CONSOLE_DEVICES 1
#define CONSOLE_UART_BAUDRATE 115200
#define FMC_EEPROM_ADR 0x50
/* Maximum number of files in the sdb filesystem.
Need at least 4: ., sfp database, init script and calibration */
#define SDBFS_REC 5
/* Specific to this board (see board.c) */
/* I2C address of the storage eeprom */
#define FMC_EEPROM_ADR 0x50
/* However it is not used. */
#define EEPROM_STORAGE 0
#endif
/* __BOARD_CONFIG_GENERIC_H */
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