diff options
author | Darius Augulis <augulis.darius@gmail.com> | 2009-01-30 09:32:28 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-04-07 11:18:32 +0200 |
commit | aa11e38ce6fe8846fec046a95cecd5d4690c48cd (patch) | |
tree | a7141c19434ecaf75e459c2e3d2daf18e4797245 /arch | |
parent | NFS: Fix a double free in nfs_parse_mount_options() (diff) | |
download | linux-aa11e38ce6fe8846fec046a95cecd5d4690c48cd.tar.xz linux-aa11e38ce6fe8846fec046a95cecd5d4690c48cd.zip |
i2c: iMX/MXC support
Implementation of I2C Adapter/Algorithm Driver for I2C Bus integrated
in Freescale's i.MX/MXC processors.
Signed-off-by: Darius Augulis <augulis.darius@gmail.com>
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/i2c.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/i2c.h b/arch/arm/plat-mxc/include/mach/i2c.h new file mode 100644 index 000000000000..4a5dc5c6d8e8 --- /dev/null +++ b/arch/arm/plat-mxc/include/mach/i2c.h @@ -0,0 +1,25 @@ +/* + * i2c.h - i.MX I2C driver header file + * + * Copyright (c) 2008, Darius Augulis <augulis.darius@gmail.com> + * + * This file is released under the GPLv2 + */ + +#ifndef __ASM_ARCH_I2C_H_ +#define __ASM_ARCH_I2C_H_ + +/** + * struct imxi2c_platform_data - structure of platform data for MXC I2C driver + * @init: Initialise gpio's and other board specific things + * @exit: Free everything initialised by @init + * @bitrate: Bus speed measured in Hz + * + **/ +struct imxi2c_platform_data { + int (*init)(struct device *dev); + void (*exit)(struct device *dev); + int bitrate; +}; + +#endif /* __ASM_ARCH_I2C_H_ */ |