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
ce6d0020
Commit
ce6d0020
authored
Nov 24, 2020
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HPSEC always pll_wr_mode = PLL_WR_MODE_GM
parent
762d23cf
Pipeline
#674
passed with stage
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
board.c
boards/spec7/board.c
+7
-5
No files found.
boards/spec7/board.c
View file @
ce6d0020
...
...
@@ -49,16 +49,17 @@ void spec7_set_pll_wr_mode(int wrc_ptp_mode)
{
int
pll_wr_mode
;
#if defined(CONFIG_HPSEC_GM)
// When HPSEC is used then (Morion MV336) 10MHz is tuned
// and the LTC6950 generates 125 MHz.
pll_wr_mode
=
PLL_WR_MODE_GM
;
#else
// When referecne design is used then (Morion MV336) 10MHz is tuned
// Set clock multiplexers (U63, U64) depending on wrc_ptp_mode
switch
(
wrc_ptp_mode
)
{
case
WRC_MODE_GM
||
WRC_MODE_ABSCAL
:
// Default reference design locks local VCXO to external 10 MHz
pll_wr_mode
=
PLL_WR_MODE_SLAVE
;
#if defined(CONFIG_HPSEC_GM)
// When HPSEC is used in GM mode then HPSEC locks to external
// 10 MHz via LTC6950.
pll_wr_mode
=
PLL_WR_MODE_GM
;
#endif
break
;
case
WRC_MODE_MASTER
:
pll_wr_mode
=
PLL_WR_MODE_MASTER
;
...
...
@@ -66,6 +67,7 @@ void spec7_set_pll_wr_mode(int wrc_ptp_mode)
default:
pll_wr_mode
=
PLL_WR_MODE_SLAVE
;
}
#endif
gen_gpio_out
(
&
pin_pll_wr_mode0_o
,
(
pll_wr_mode
&
0x1
)
?
1
:
0
);
gen_gpio_out
(
&
pin_pll_wr_mode1_o
,
(
pll_wr_mode
&
0x2
)
?
1
:
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