Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e1b9575f
Commit
e1b9575f
authored
Dec 29, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge kroah.com:/home/greg/linux/BK/i2c-2.6
into kroah.com:/home/greg/linux/BK/i2c-new_drivers-2.6
parents
b7b6a182
8685b02d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
7 deletions
+21
-7
Makefile
Makefile
+1
-1
drivers/i2c/busses/i2c-amd756.c
drivers/i2c/busses/i2c-amd756.c
+1
-2
drivers/i2c/busses/i2c-amd8111.c
drivers/i2c/busses/i2c-amd8111.c
+1
-1
drivers/i2c/busses/i2c-piix4.c
drivers/i2c/busses/i2c-piix4.c
+18
-3
No files found.
Makefile
View file @
e1b9575f
VERSION
=
2
PATCHLEVEL
=
6
SUBLEVEL
=
0
EXTRAVERSION
=
-test11
EXTRAVERSION
=
# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
...
...
drivers/i2c/busses/i2c-amd756.c
View file @
e1b9575f
...
...
@@ -215,9 +215,8 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr,
case
I2C_SMBUS_BYTE
:
outw_p
(((
addr
&
0x7f
)
<<
1
)
|
(
read_write
&
0x01
),
SMB_HOST_ADDRESS
);
/* TODO: Why only during write? */
if
(
read_write
==
I2C_SMBUS_WRITE
)
outb_p
(
command
,
SMB_HOST_
COMMAND
);
outb_p
(
command
,
SMB_HOST_
DATA
);
size
=
AMD756_BYTE
;
break
;
case
I2C_SMBUS_BYTE_DATA
:
...
...
drivers/i2c/busses/i2c-amd8111.c
View file @
e1b9575f
...
...
@@ -192,7 +192,7 @@ s32 amd8111_access(struct i2c_adapter * adap, u16 addr, unsigned short flags,
case
I2C_SMBUS_BYTE
:
if
(
read_write
==
I2C_SMBUS_WRITE
)
amd_ec_write
(
smbus
,
AMD_SMB_
DATA
,
data
->
byte
);
amd_ec_write
(
smbus
,
AMD_SMB_
CMD
,
command
);
protocol
|=
AMD_SMB_PRTCL_BYTE
;
break
;
...
...
drivers/i2c/busses/i2c-piix4.c
View file @
e1b9575f
...
...
@@ -99,6 +99,13 @@ MODULE_PARM_DESC(force_addr,
"Forcibly enable the PIIX4 at the given address. "
"EXTREMELY DANGEROUS!"
);
/* If fix_hstcfg is set to anything different from 0, we reset one of the
registers to be a valid value. */
static
int
fix_hstcfg
=
0
;
MODULE_PARM
(
fix_hstcfg
,
"i"
);
MODULE_PARM_DESC
(
fix_hstcfg
,
"Fix config register. Needed on some boards (Force CPCI735)."
);
static
int
piix4_transaction
(
void
);
...
...
@@ -164,9 +171,17 @@ static int piix4_setup(struct pci_dev *PIIX4_dev, const struct pci_device_id *id
/* Some BIOS will set up the chipset incorrectly and leave a register
in an undefined state (causing I2C to act very strangely). */
if
(
temp
&
0x02
)
{
dev_info
(
&
PIIX4_dev
->
dev
,
"Worked around buggy BIOS (I2C)
\n
"
);
temp
=
temp
&
0xfd
;
pci_write_config_byte
(
PIIX4_dev
,
SMBHSTCFG
,
temp
);
if
(
fix_hstcfg
)
{
dev_info
(
&
PIIX4_dev
->
dev
,
"Working around buggy BIOS "
"(I2C)
\n
"
);
temp
&=
0xfd
;
pci_write_config_byte
(
PIIX4_dev
,
SMBHSTCFG
,
temp
);
}
else
{
dev_info
(
&
PIIX4_dev
->
dev
,
"Unusual config register "
"value
\n
"
);
dev_info
(
&
PIIX4_dev
->
dev
,
"Try using fix_hstcfg=1 if "
"you experience problems
\n
"
);
}
}
/* If force_addr is set, we program the new address here. Just to make
...
...
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