Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - 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
FMC DEL 1ns 4cha - Software
Commits
7c88c76c
Commit
7c88c76c
authored
May 17, 2013
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2c: delay value too low
Reported-by: Tomasz Wlostowski
parent
9b0b02a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
i2c.c
kernel/i2c.c
+2
-2
No files found.
kernel/i2c.c
View file @
7c88c76c
...
...
@@ -27,7 +27,7 @@ static void set_sda(struct fd_dev *fd, int val)
if
(
val
)
reg
|=
FD_I2CR_SDA_OUT
;
fd_writel
(
fd
,
reg
,
FD_REG_I2CR
);
ndelay
(
1250
);
/* 400kHz -> 2.5us/loop */
ndelay
(
2000
);
}
static
void
set_scl
(
struct
fd_dev
*
fd
,
int
val
)
...
...
@@ -38,7 +38,7 @@ static void set_scl(struct fd_dev *fd, int val)
if
(
val
)
reg
|=
FD_I2CR_SCL_OUT
;
fd_writel
(
fd
,
reg
,
FD_REG_I2CR
);
ndelay
(
1250
);
/* 400kHz -> 2.5us/loop */
ndelay
(
2000
);
}
static
int
get_sda
(
struct
fd_dev
*
fd
)
...
...
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