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
67867dd9
Commit
67867dd9
authored
Apr 19, 2022
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
4f131f8e
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 @
67867dd9
...
...
@@ -48,6 +48,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
ltc695x_config
ltc6950_base_config
=
...
...
@@ -190,6 +192,7 @@ int spec7_init()
return
0
;
}
struct
i2c_bus
dev_i2c_aux
;
struct
i2c_eeprom_device
wrc_uid_dev
;
int
wrc_board_early_init
()
...
...
@@ -203,6 +206,12 @@ int wrc_board_early_init()
&
pin_eeprom_sda
);
bb_i2c_init
(
&
i2c_wrc_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
,
&
i2c_wrc_eeprom
,
FMC_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