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
306bd072
Commit
306bd072
authored
Jan 21, 2021
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add and init I2C_AUX bus (but do nothing else yet)
parent
2bb011bc
Pipeline
#1104
failed with stage
in 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
board.c
boards/spec7/board.c
+9
-0
No files found.
boards/spec7/board.c
View file @
306bd072
...
...
@@ -27,6 +27,8 @@ static struct gpio_pin pin_eeprom_scl = { &board.gpio_aux, 11 };
static
struct
gpio_pin
pin_eeprom_sda
=
{
&
board
.
gpio_aux
,
12
};
static
struct
gpio_pin
pin_pll_even_odd_n_i
=
{
&
board
.
gpio_aux
,
13
};
static
struct
gpio_pin
pin_pll_sync_done_i
=
{
&
board
.
gpio_aux
,
14
};
static
struct
gpio_pin
pin_aux_scl
=
{
&
board
.
gpio_aux
,
15
};
static
struct
gpio_pin
pin_aux_sda
=
{
&
board
.
gpio_aux
,
16
};
#include "configs/ltc6950_defs.h"
static
struct
ltc6950_config
ltc6950_base_config
=
...
...
@@ -223,6 +225,7 @@ int spec7_init()
}
struct
i2c_bus
dev_i2c_eeprom
;
struct
i2c_bus
dev_i2c_aux
;
struct
i2c_eeprom_device
wrc_eeprom_dev
;
struct
i2c_eeprom_device
wrc_uid_dev
;
...
...
@@ -237,6 +240,12 @@ int wrc_board_early_init()
&
pin_eeprom_sda
);
bb_i2c_init
(
&
dev_i2c_eeprom
);
/* create and initialize auxiliary I2C bus */
bb_i2c_create
(
&
dev_i2c_aux
,
&
pin_aux_scl
,
&
pin_aux_sda
);
bb_i2c_init
(
&
dev_i2c_aux
);
i2c_eeprom_create
(
&
wrc_eeprom_dev
,
&
dev_i2c_eeprom
,
EEPROM_ADR
,
2
);
storage_i2ceeprom_create
(
&
wrc_storage_dev
,
&
wrc_eeprom_dev
);
...
...
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