Darius Augulis | aa11e38 | 2009-01-30 10:32:28 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * i2c.h - i.MX I2C driver header file |
| 3 | * |
| 4 | * Copyright (c) 2008, Darius Augulis <augulis.darius@gmail.com> |
| 5 | * |
| 6 | * This file is released under the GPLv2 |
| 7 | */ |
| 8 | |
| 9 | #ifndef __ASM_ARCH_I2C_H_ |
| 10 | #define __ASM_ARCH_I2C_H_ |
| 11 | |
| 12 | /** |
| 13 | * struct imxi2c_platform_data - structure of platform data for MXC I2C driver |
| 14 | * @init: Initialise gpio's and other board specific things |
| 15 | * @exit: Free everything initialised by @init |
| 16 | * @bitrate: Bus speed measured in Hz |
| 17 | * |
| 18 | **/ |
| 19 | struct imxi2c_platform_data { |
| 20 | int (*init)(struct device *dev); |
| 21 | void (*exit)(struct device *dev); |
| 22 | int bitrate; |
| 23 | }; |
| 24 | |
| 25 | #endif /* __ASM_ARCH_I2C_H_ */ |