Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
i2c-s3c2410.h
Go to the documentation of this file.
1 /* arch/arm/plat-s3c/include/plat/iic.h
2  *
3  * Copyright 2004-2009 Simtec Electronics
4  * Ben Dooks <[email protected]>
5  *
6  * S3C - I2C Controller platform_device info
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11 */
12 
13 #ifndef __ASM_ARCH_IIC_H
14 #define __ASM_ARCH_IIC_H __FILE__
15 
16 #define S3C_IICFLG_FILTER (1<<0) /* enable s3c2440 filter */
17 
31  int bus_num;
32  unsigned int flags;
33  unsigned int slave_addr;
34  unsigned long frequency;
35  unsigned int sda_delay;
36 
38 };
39 
55 extern void s3c_i2c0_set_platdata(struct s3c2410_platform_i2c *i2c);
56 extern void s3c_i2c1_set_platdata(struct s3c2410_platform_i2c *i2c);
57 extern void s3c_i2c2_set_platdata(struct s3c2410_platform_i2c *i2c);
58 extern void s3c_i2c3_set_platdata(struct s3c2410_platform_i2c *i2c);
59 extern void s3c_i2c4_set_platdata(struct s3c2410_platform_i2c *i2c);
60 extern void s3c_i2c5_set_platdata(struct s3c2410_platform_i2c *i2c);
61 extern void s3c_i2c6_set_platdata(struct s3c2410_platform_i2c *i2c);
62 extern void s3c_i2c7_set_platdata(struct s3c2410_platform_i2c *i2c);
63 extern void s5p_i2c_hdmiphy_set_platdata(struct s3c2410_platform_i2c *i2c);
64 
65 /* defined by architecture to configure gpio */
66 extern void s3c_i2c0_cfg_gpio(struct platform_device *dev);
67 extern void s3c_i2c1_cfg_gpio(struct platform_device *dev);
68 extern void s3c_i2c2_cfg_gpio(struct platform_device *dev);
69 extern void s3c_i2c3_cfg_gpio(struct platform_device *dev);
70 extern void s3c_i2c4_cfg_gpio(struct platform_device *dev);
71 extern void s3c_i2c5_cfg_gpio(struct platform_device *dev);
72 extern void s3c_i2c6_cfg_gpio(struct platform_device *dev);
73 extern void s3c_i2c7_cfg_gpio(struct platform_device *dev);
74 
76 
77 #endif /* __ASM_ARCH_IIC_H */