blob: 882af62063efd80354549b6ab60e035fa5678d37 [file] [log] [blame]
Rajeshwari Shinde91dffb12012-07-23 21:23:52 +00001/*
2 * Copyright (C) 2012 Samsung Electronics
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Rajeshwari Shinde91dffb12012-07-23 21:23:52 +00005 */
6
7#ifndef _S3C24X0_I2C_H
8#define _S3C24X0_I2C_H
9
10struct s3c24x0_i2c {
11 u32 iiccon;
12 u32 iicstat;
13 u32 iicadd;
14 u32 iicds;
15 u32 iiclc;
16};
Rajeshwari Shindea9d2ae72012-12-26 20:03:12 +000017
18struct s3c24x0_i2c_bus {
Simon Glass940dd162013-10-15 16:02:10 +053019 bool active; /* port is active and available */
Rajeshwari Shindea9d2ae72012-12-26 20:03:12 +000020 int node; /* device tree node */
21 int bus_num; /* i2c bus number */
22 struct s3c24x0_i2c *regs;
Rajeshwari Shinded04df3c2013-01-13 19:49:36 +000023 int id;
Rajeshwari Shindea9d2ae72012-12-26 20:03:12 +000024};
Rajeshwari Shinde91dffb12012-07-23 21:23:52 +000025#endif /* _S3C24X0_I2C_H */