Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
3df0d961
Commit
3df0d961
authored
17 years ago
by
吴智聪John
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2c host work ok but conflict with ide driver so disable ide driver temporarily
parent
e1a65f63
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+18
-8
arch/arm/configs/ntosd_644xA_defconfig
arch/arm/configs/ntosd_644xA_defconfig
+1
-1
drivers/i2c/busses/i2c-davinci.c
drivers/i2c/busses/i2c-davinci.c
+16
-6
include/asm-arm/arch-davinci/aic23.h
include/asm-arm/arch-davinci/aic23.h
+1
-1
No files found.
arch/arm/configs/ntosd_644xA_defconfig
View file @
3df0d961
...
...
@@ -493,7 +493,7 @@ CONFIG_BLK_DEV_RAM_SIZE=32768
CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
CONFIG_IDE=y
#
CONFIG_IDE=y
CONFIG_IDE_MAX_HWIFS=4
CONFIG_BLK_DEV_IDE=y
...
...
This diff is collapsed.
Click to expand it.
drivers/i2c/busses/i2c-davinci.c
View file @
3df0d961
...
...
@@ -212,8 +212,13 @@ i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, int stop)
int
i
;
/* Introduce a 100musec delay. Required for Davinci EVM board only */
if
(
machine_is_davinci_evm
())
#ifdef CONFIG_MACH_DAVINCI_EVM
udelay
(
100
);
#else
#ifdef CONFIG_MACH_NTOSD_644XA
udelay
(
100
);
#endif
#endif
/* set the slave address */
dev
->
regs
->
icsar
=
msg
->
addr
;
...
...
@@ -500,13 +505,18 @@ davinci_i2c_probe(struct platform_device *pdev)
* so that the MSP430, which is doing software i2c, has
* some extra processing time
*/
if
(
machine_is_davinci_evm
())
#ifdef CONFIG_MACH_DAVINCI_EVM
bus_freq
=
20
;
else
if
(
bus_freq
>
200
)
#else
#ifdef CONFIG_MACH_NTOSD_644XA
bus_freq
=
20
;
#else
if
(
bus_freq
>
200
)
bus_freq
=
400
;
/* Fast mode */
else
bus_freq
=
100
;
/* Standard mode */
#endif
#endif
dev
->
clk
=
clk_get
(
&
pdev
->
dev
,
"I2CCLK"
);
if
(
IS_ERR
(
dev
->
clk
))
...
...
This diff is collapsed.
Click to expand it.
include/asm-arm/arch-davinci/aic23.h
View file @
3df0d961
...
...
@@ -107,7 +107,7 @@
// Digital interface register
#define ACT_ON 0x0001
#define TLV320AIC23ID1 (0x1
a
) // cs low
#define TLV320AIC23ID1 (0x1
8
) // cs low
#define TLV320AIC23ID2 (0x1b) // cs high
void
tlv320aic23_power_up
(
void
);
...
...
This diff is collapsed.
Click to expand it.
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