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
17744637
Commit
17744637
authored
Jun 05, 2013
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eeprom: remove traces and outdate messages
parent
d983e45b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
i2c.c
kernel/i2c.c
+0
-4
No files found.
kernel/i2c.c
View file @
17744637
...
...
@@ -51,9 +51,7 @@ static inline int mezzanine_present(struct fmc_device *fmc)
uint32_t
presence
;
presence
=
fmc_readl
(
fmc
,
GLD_I2C_CORE_BASE
+
GLD_REG_CSR
);
/*printk("presence: 0x%08x read from 0x%08x\n", presence, GLD_I2C_CORE_BASE + GLD_REG_CSR);*/
presence
=
GLD_CSR_FMC_PRESENT_R
(
presence
)
&
(
1
<<
fmc
->
slot_id
);
/*printk("presence: 0x%08x\n", presence);*/
return
presence
;
}
...
...
@@ -178,7 +176,6 @@ void mi2c_scan(struct fmc_device *fmc)
}
}
/* FIXME: this is very inefficient: read several bytes in a row instead */
int
svec_eeprom_read
(
struct
fmc_device
*
fmc
,
uint32_t
offset
,
void
*
buf
,
size_t
size
)
{
...
...
@@ -201,7 +198,6 @@ int svec_eeprom_read(struct fmc_device *fmc, uint32_t offset,
while
(
size
--
)
{
mi2c_get_byte
(
fmc
,
&
c
,
size
!=
0
);
*
buf8
++
=
c
;
/*printk("read 0x%08x, %4i to go\n", c, size);*/
}
mi2c_stop
(
fmc
);
return
ret
;
...
...
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