summaryrefslogtreecommitdiff
path: root/include/amlogic/i2c.h (plain)
blob: dea47894105afb5ecee951f97a6169b1958e36f8
1/*
2 * Amlogic I2C controller Diver
3 *
4 * Copyright (C) 2018 Amlogic Corporation
5 *
6 * Licensed under the GPL-2 or later.
7 *
8 */
9
10#ifndef __I2C_H__
11#define __I2C_H__
12
13/*
14 * @i2c_index: Controller Index.
15 * @reg: Controller registers address.
16 * @clock_rate: clock source rate.
17 * @div_factor: divider factor.
18 * @i2c_index: Filter delay count ,if not, i2c frequecy
19 * is not correct.
20 */
21
22struct meson_i2c_platdata {
23 unsigned int i2c_index;
24 ulong reg;
25 unsigned int clock_rate;
26 unsigned int div_factor;
27 unsigned int delay_ajust;
28 unsigned int clock_frequency;
29};
30
31struct meson_i2c_slavedata {
32 uint chip_addr;
33 uint offset_len;
34 uint flags;
35};
36
37#endif /* __I2C_H__ */