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
77ea9751
Commit
77ea9751
authored
Mar 18, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boards/afcz: enable all SFPs by default
parent
3ab231ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
9 deletions
+27
-9
board.c
boards/afcz/board.c
+19
-9
board.h
boards/afcz/board.h
+8
-0
No files found.
boards/afcz/board.c
View file @
77ea9751
...
...
@@ -484,17 +484,27 @@ void sfp_setup()
gen_gpio_out
(
&
pin_rtm_4sfp_i2c_reset_n
,
1
);
pp_printf
(
"pre-scan
\n
"
);
bb_i2c_scan
(
&
board
.
si57x
.
master
);
// select SFP0
tca9548_select_channels
(
&
board
.
si57x
.
master
,
0x74
,
1
<<
RTM_4SFP_MUX_SFP0
);
const
int
sfp_busses
[]
=
{
RTM_4SFP_MUX_SFP0
,
RTM_4SFP_MUX_SFP1
,
RTM_4SFP_MUX_SFP2
,
RTM_4SFP_MUX_SFP3
,
RTM_4SFP_MUX_SFP4
,
RTM_4SFP_MUX_SFP5
,
RTM_4SFP_MUX_SFP6
,
-
1
};
int
i
;
pp_printf
(
"post-scan
\n
"
);
bb_i2c_scan
(
&
board
.
si57x
.
master
);
for
(
i
=
0
;
sfp_busses
[
i
]
>=
0
;
i
++
)
{
// select SFPx
tca9548_select_channels
(
&
board
.
si57x
.
master
,
0x74
,
1
<<
sfp_busses
[
i
]
);
gen_gpio_set_dir
(
&
pin_rtm_4sfp_sfp_tx_disable
,
1
);
gen_gpio_out
(
&
pin_rtm_4sfp_sfp_tx_disable
,
0
);
gen_gpio_set_dir
(
&
pin_rtm_4sfp_sfp_tx_disable
,
1
);
gen_gpio_out
(
&
pin_rtm_4sfp_sfp_tx_disable
,
0
);
}
...
...
boards/afcz/board.h
View file @
77ea9751
...
...
@@ -34,6 +34,14 @@
#define AFCZ_I2C_MUX_CHANNEL_RTM 7
#define RTM_4SFP_MUX_SFP0 0
#define RTM_4SFP_MUX_SFP1 1
#define RTM_4SFP_MUX_SFP2 2
#define RTM_4SFP_MUX_SFP3 3
#define RTM_4SFP_MUX_SFP4 4
#define RTM_4SFP_MUX_SFP5 5
#define RTM_4SFP_MUX_SFP6 6
/* Board-specific parameters */
#define TICS_PER_SECOND 1000
...
...
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