Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple VME FMC Carrier SVEC - Software
Commits
edae999b
Commit
edae999b
authored
May 08, 2013
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svec: add offsets of i2c cores of two mezzanines
parent
fd88c6da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
svec-i2c.c
kernel/svec-i2c.c
+4
-2
No files found.
kernel/svec-i2c.c
View file @
edae999b
...
...
@@ -16,14 +16,16 @@
static
int
svec_i2c_dump
;
module_param_named
(
i2c_dump
,
svec_i2c_dump
,
int
,
0444
);
static
uint32_t
core_offset
[]
=
{
0x10000
,
0x11000
};
static
void
i2c_writel
(
struct
fmc_device
*
fmc
,
uint32_t
val
,
int
offset
)
{
fmc_writel
(
fmc
,
val
,
0x10000
+
offset
);
fmc_writel
(
fmc
,
val
,
core_offset
[
fmc
->
slot_id
]
+
offset
);
}
static
uint32_t
i2c_readl
(
struct
fmc_device
*
fmc
,
int
offset
)
{
return
fmc_readl
(
fmc
,
0x10000
+
offset
);
return
fmc_readl
(
fmc
,
core_offset
[
fmc
->
slot_id
]
+
offset
);
}
#define fmc_readl i2c_readl
...
...
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