1
2
3
4
5
6
7
8
9 #ifndef __I2C_S3C2410_H
10 #define __I2C_S3C2410_H __FILE__
11
12 #define S3C_IICFLG_FILTER (1<<0)
13
14 struct platform_device;
15
16
17
18
19
20
21
22
23
24
25
26
27
28 struct s3c2410_platform_i2c {
29 int bus_num;
30 unsigned int flags;
31 unsigned int slave_addr;
32 unsigned long frequency;
33 unsigned int sda_delay;
34
35 void (*cfg_gpio)(struct platform_device *dev);
36 };
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53 extern void s3c_i2c0_set_platdata(struct s3c2410_platform_i2c *i2c);
54 extern void s3c_i2c1_set_platdata(struct s3c2410_platform_i2c *i2c);
55 extern void s3c_i2c2_set_platdata(struct s3c2410_platform_i2c *i2c);
56 extern void s3c_i2c3_set_platdata(struct s3c2410_platform_i2c *i2c);
57 extern void s3c_i2c4_set_platdata(struct s3c2410_platform_i2c *i2c);
58 extern void s3c_i2c5_set_platdata(struct s3c2410_platform_i2c *i2c);
59 extern void s3c_i2c6_set_platdata(struct s3c2410_platform_i2c *i2c);
60 extern void s3c_i2c7_set_platdata(struct s3c2410_platform_i2c *i2c);
61 extern void s5p_i2c_hdmiphy_set_platdata(struct s3c2410_platform_i2c *i2c);
62
63
64 extern void s3c_i2c0_cfg_gpio(struct platform_device *dev);
65 extern void s3c_i2c1_cfg_gpio(struct platform_device *dev);
66 extern void s3c_i2c2_cfg_gpio(struct platform_device *dev);
67 extern void s3c_i2c3_cfg_gpio(struct platform_device *dev);
68 extern void s3c_i2c4_cfg_gpio(struct platform_device *dev);
69 extern void s3c_i2c5_cfg_gpio(struct platform_device *dev);
70 extern void s3c_i2c6_cfg_gpio(struct platform_device *dev);
71 extern void s3c_i2c7_cfg_gpio(struct platform_device *dev);
72
73 extern struct s3c2410_platform_i2c default_i2c_data;
74
75 #endif