Jean-Jacques Hiblot | 58994fc | 2018-12-07 14:50:42 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | |
| 3 | #ifndef _OMAP_I2C_H |
| 4 | #define _OMAP_I2C_H |
| 5 | |
Igor Opaniuk | f7c9176 | 2021-02-09 13:52:45 +0200 | [diff] [blame] | 6 | #if CONFIG_IS_ENABLED(DM_I2C) |
Jean-Jacques Hiblot | 58994fc | 2018-12-07 14:50:42 +0100 | [diff] [blame] | 7 | |
| 8 | /* Information about a GPIO bank */ |
Simon Glass | b75b15b | 2020-12-03 16:55:23 -0700 | [diff] [blame] | 9 | struct omap_i2c_plat { |
Jean-Jacques Hiblot | 58994fc | 2018-12-07 14:50:42 +0100 | [diff] [blame] | 10 | ulong base; /* address of registers in physical memory */ |
| 11 | int speed; |
| 12 | int ip_rev; |
| 13 | }; |
| 14 | |
| 15 | #endif |
| 16 | |
| 17 | enum { |
| 18 | OMAP_I2C_REV_V1 = 0, |
| 19 | OMAP_I2C_REV_V2 = 1, |
| 20 | }; |
| 21 | |
| 22 | #endif /* _OMAP_I2C_H */ |