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
6
Merge Requests
6
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
3990f26a
Commit
3990f26a
authored
Nov 06, 2023
by
Tomasz Wlostowski
Committed by
Adam Wujek
Nov 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppsi too early link detection
parent
c65f7616
Pipeline
#4958
passed with stage
in 3 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
phy_calibration.c
boards/ertm14/phy_calibration.c
+5
-1
No files found.
boards/ertm14/phy_calibration.c
View file @
3990f26a
...
...
@@ -209,6 +209,7 @@ static int tx_fsm_update(struct wrc_lpdc_state *lpdc)
spll_init
(
SPLL_MODE_FREE_RUNNING_MASTER
,
0
,
0
);
spll_set_ptracker_average_samples
(
0
,
LPDC_NUM_PTRACKER_SAMPLES
);
tmo_init
(
&
fsm
->
spll_lock_timeout
,
FSM_SPLL_LOCK_TIMEOUT_MS
);
ep_sfp_enable
(
lpdc
->
endpoint
,
0
);
fsm
->
state
=
TX_SETUP_STATE_WAIT_SPLL_LOCK
;
break
;
}
...
...
@@ -378,7 +379,6 @@ static int tx_fsm_update(struct wrc_lpdc_state *lpdc)
// enable the PCS+SFP on the port
mdio_lpdc_write
(
lpdc
,
LPDC_MDIO_CTRL
,
LPDC_MDIO_CTRL_TX_ENABLE
|
LPDC_MDIO_CTRL_DMTD_SOURCE_RXRECCLK
);
ep_sfp_enable
(
lpdc
->
endpoint
,
1
);
if
(
!
fsm
->
cal_saved_phase_valid
)
{
...
...
@@ -770,6 +770,7 @@ s timer_delay_ms(2000);
sfp_info
.
sfp_params
.
dRx
=
1000
+
0
;
sfp_info
.
sfp_params
.
dTx
=
1000
+
fsm_tx
->
tx_delta_correction
;
ep_sfp_enable
(
lpdc
->
endpoint
,
1
);
ep_pcs_write
(
lpdc
->
endpoint
,
EP_MDIO_MCR
,
EP_MDIO_MCR_SPEED1000
|
EP_MDIO_MCR_FULLDPLX
|
EP_MDIO_MCR_ANENABLE
|
EP_MDIO_MCR_ANRESTART
);
fsm
->
state
=
RX_SETUP_DONE
;
phy_dbg
(
"[lpdc] RX Calibration Done!
\n
"
);
...
...
@@ -813,6 +814,9 @@ void phy_calibration_init(void)
ep_pcs_write
(
lpdc
.
endpoint
,
EP_MDIO_MCR
,
EP_MDIO_MCR_RESET
);
/* reset the PHY */
ep_pcs_write
(
lpdc
.
endpoint
,
EP_MDIO_MCR
,
0
);
/* reset the PHY */
mdio_lpdc_write
(
&
lpdc
,
LPDC_MDIO_CTRL
,
0
);
mdio_lpdc_write
(
&
lpdc
,
LPDC_MDIO_CTRL2
,
0
);
tx_fsm_init
(
&
lpdc
.
tx_state
);
rx_fsm_init
(
&
lpdc
.
rx_state
);
}
...
...
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