Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spec-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
fmc-projects
spec
spec-sw
Commits
a0a8c8ea
Commit
a0a8c8ea
authored
12 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
i2c: only dump on moduleparam
parent
79d5f4c1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/spec-i2c.c
+6
-1
6 additions, 1 deletion
kernel/spec-i2c.c
with
6 additions
and
1 deletion
kernel/spec-i2c.c
+
6
−
1
View file @
a0a8c8ea
...
...
@@ -18,10 +18,14 @@
#include
"spec.h"
#include
"hw/fd_main_regs.h"
static
int
spec_i2c_dump
;
module_param_named
(
i2c_dump
,
spec_i2c_dump
,
int
,
0444
);
/* The eeprom is at address 0x50 */
#define I2C_ADDR 0x50
#define I2C_SIZE (8 * 1024)
/* FIXME: this is a temporary hack: we should use the operations instead */
static
inline
uint32_t
spec_readl
(
struct
spec_dev
*
spec
,
int
off
)
{
return
readl
(
spec
->
remap
[
0
]
+
0x80000
+
off
);
...
...
@@ -228,7 +232,8 @@ int spec_i2c_init(struct fmc_device *fmc)
fmc
->
eeprom
=
buf
;
fmc
->
eeprom_len
=
I2C_SIZE
;
dumpstruct
(
"eeprom"
,
buf
,
I2C_SIZE
);
if
(
spec_i2c_dump
)
dumpstruct
(
"eeprom"
,
buf
,
I2C_SIZE
);
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment