Googler | 40bc9d0 | 2023-12-15 16:42:49 +0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| 2 | /* |
| 3 | * include/amlogic/i2c.h |
| 4 | * |
| 5 | * Copyright (C) 2020 Amlogic, Inc. All rights reserved. |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #ifndef __I2C_H__ |
| 10 | #define __I2C_H__ |
| 11 | |
| 12 | /* |
| 13 | * @i2c_index: Controller Index. |
| 14 | * @reg: Controller registers address. |
| 15 | * @clock_rate: clock source rate. |
| 16 | * @div_factor: divider factor. |
| 17 | * @i2c_index: Filter delay count ,if not, i2c frequecy |
| 18 | * is not correct. |
| 19 | */ |
| 20 | |
| 21 | struct meson_i2c_platdata { |
| 22 | unsigned int i2c_index; |
| 23 | ulong reg; |
| 24 | unsigned int clock_rate; |
| 25 | unsigned int div_factor; |
| 26 | unsigned int delay_ajust; |
| 27 | unsigned int clock_frequency; |
| 28 | }; |
| 29 | |
| 30 | struct meson_i2c_slavedata { |
| 31 | uint chip_addr; |
| 32 | uint offset_len; |
| 33 | uint flags; |
| 34 | }; |
| 35 | |
| 36 | #endif /* __I2C_H__ */ |