Commit 36c333f3 authored by Peter Jansweijer's avatar Peter Jansweijer

Define NS_PER_CLOCK=16 for WR_NODEs that have CONFIG_WR_NODE_PCS16 set.

Repairs mode abscal that failed to send PTP_SYNC after each PPS on CLB.
parent c0025472
Pipeline #135 passed with stages
in 26 seconds
......@@ -20,9 +20,11 @@
/* WR Reference clock period (picoseconds) and frequency (Hz) */
#ifdef CONFIG_WR_NODE_PCS16
# define NS_PER_CLOCK 16
# define REF_CLOCK_PERIOD_PS 16000
# define REF_CLOCK_FREQ_HZ 62500000
#else
# define NS_PER_CLOCK 8
# define REF_CLOCK_PERIOD_PS 8000
# define REF_CLOCK_FREQ_HZ 125000000
#endif
......
......@@ -10,6 +10,7 @@
#define CPU_CLOCK 62500000
#define REF_CLOCK_FREQ_HZ 62500000
#define NS_PER_CLOCK 16
#define REF_CLOCK_PERIOD_PS 16000
#define UART_BAUDRATE 115200
......
......@@ -53,13 +53,6 @@ extern int wrc_vlan_number;
int wrc_mon_gui(void);
void shell_init(void);
/* This header is included by softpll: manage wrc/wrs difference */
#ifdef CONFIG_WR_NODE
#define NS_PER_CLOCK 8
#else /* CONFIG_WR_SWITCH */
#define NS_PER_CLOCK 16
#endif
/* Default width (in 8ns/16ns units) of the pulses on the PPS output */
#define PPS_WIDTH (10 * 1000 * 1000 / NS_PER_CLOCK) /* 10ms */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment