summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/include/mach/i2c.h
blob: 7ed4f64c86a2a8c19abc4d714f10ee97056d8d40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * 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
 * @reset:	Issue I2C reset if needed (toggle SCL via GPIO access)
 * @bitrate:	Bus speed measured in Hz
 *
 **/
struct imxi2c_platform_data {
	int (*init)(struct device *dev);
	void (*exit)(struct device *dev);
	int (*reset)(struct device *dev);
	int bitrate;
};

#endif /* __ASM_ARCH_I2C_H_ */