Commit 46069887 authored by Mark A. Greer's avatar Mark A. Greer Committed by Greg Kroah-Hartman

[PATCH] I2C: add Marvell mv64xxx i2c driver

Marvell makes a line of host bridge for PPC and MIPS systems.  On those
bridges is an i2c controller.  This patch adds the driver for that i2c
controller.

Please apply.

Depends on patch submitted by Jean Delvare:
http://archives.andrew.net.au/lm-sensors/msg29405.htmlSigned-off-by: default avatarMark A. Greer <mgreer@mvista.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5196cea7
......@@ -486,4 +486,14 @@ config I2C_PCA_ISA
This driver can also be built as a module. If so, the module
will be called i2c-pca-isa.
config I2C_MV64XXX
tristate "Marvell mv64xxx I2C Controller"
depends on I2C && MV64X60 && EXPERIMENTAL
help
If you say yes to this option, support will be included for the
built-in I2C interface on the Marvell 64xxx line of host bridges.
This driver can also be built as a module. If so, the module
will be called i2c-mv64xxx.
endmenu
......@@ -21,6 +21,7 @@ obj-$(CONFIG_I2C_IXP2000) += i2c-ixp2000.o
obj-$(CONFIG_I2C_IXP4XX) += i2c-ixp4xx.o
obj-$(CONFIG_I2C_KEYWEST) += i2c-keywest.o
obj-$(CONFIG_I2C_MPC) += i2c-mpc.o
obj-$(CONFIG_I2C_MV64XXX) += i2c-mv64xxx.o
obj-$(CONFIG_I2C_NFORCE2) += i2c-nforce2.o
obj-$(CONFIG_I2C_PARPORT) += i2c-parport.o
obj-$(CONFIG_I2C_PARPORT_LIGHT) += i2c-parport-light.o
......
This diff is collapsed.
......@@ -310,4 +310,7 @@
/* --- MCP107 adapter */
#define I2C_HW_MPC107 0x00
/* --- Marvell mv64xxx i2c adapter */
#define I2C_HW_MV64XXX 0x00
#endif /* LINUX_I2C_ID_H */
......@@ -977,12 +977,9 @@
/* I2C Registers */
/****************************************/
#define MV64340_I2C_SLAVE_ADDR 0xc000
#define MV64340_I2C_EXTENDED_SLAVE_ADDR 0xc010
#define MV64340_I2C_DATA 0xc004
#define MV64340_I2C_CONTROL 0xc008
#define MV64340_I2C_STATUS_BAUDE_RATE 0xc00C
#define MV64340_I2C_SOFT_RESET 0xc01c
#define MV64XXX_I2C_CTLR_NAME "mv64xxx i2c"
#define MV64XXX_I2C_OFFSET 0xc000
#define MV64XXX_I2C_REG_BLOCK_SIZE 0x0020
/****************************************/
/* GPP Interface Registers */
......@@ -1085,4 +1082,12 @@ struct mpsc_pdata {
u32 brg_clk_freq;
};
/* i2c Platform Device, Driver Data */
struct mv64xxx_i2c_pdata {
u32 freq_m;
u32 freq_n;
u32 timeout; /* In milliseconds */
u32 retries;
};
#endif /* __ASM_MV64340_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment