diff options
author | Tzachi Perelstein <tzachi@marvell.com> | 2007-11-12 19:38:51 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-26 15:03:59 +0000 |
commit | a0832798c05241f15e793805b6024919c07b8292 (patch) | |
tree | 32651dbe7acda8a17efe4f44e75547e6266bb49b /include/linux/mv643xx_i2c.h | |
parent | 60ce1c20068ec2c138cdf9e5cbe583cc60883c62 (diff) | |
download | linux-a0832798c05241f15e793805b6024919c07b8292.tar.gz linux-a0832798c05241f15e793805b6024919c07b8292.tar.bz2 linux-a0832798c05241f15e793805b6024919c07b8292.zip |
[I2C] Split mv643xx I2C platform support
The motivation for this change is to allow other chips, like the
Marvell Orion ARM SoC family, to use the existing i2c-mv64xxx driver.
Signed-off-by: Tzachi Perelstein <tzachi@marvell.com>
Acked-by: Nicolas Pitre <nico@marvell.com>
Acked-by: Dale Farnsworth <dale@farnsworth.org>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include/linux/mv643xx_i2c.h')
-rw-r--r-- | include/linux/mv643xx_i2c.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/mv643xx_i2c.h b/include/linux/mv643xx_i2c.h new file mode 100644 index 000000000000..adb629b15477 --- /dev/null +++ b/include/linux/mv643xx_i2c.h @@ -0,0 +1,23 @@ +/* + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + +#ifndef _MV64XXX_I2C_H_ +#define _MV64XXX_I2C_H_ + +#include <linux/types.h> + +#define MV64XXX_I2C_CTLR_NAME "mv64xxx_i2c" + +/* i2c Platform Device, Driver Data */ +struct mv64xxx_i2c_pdata { + u32 freq_m; + u32 freq_n; + u32 timeout; /* In milliseconds */ + u32 retries; +}; + +#endif /*_MV64XXX_I2C_H_*/ |