1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Cortina Access, <www.cortina-access.com>
10 #include <linux/bitops.h>
11 #include <linux/delay.h>
13 #if !defined(__ASSEMBLER__) && !defined(__ASSEMBLY__)
30 u32 biw_soft_reset : 1;
66 #endif /* !__ASSEMBLER__*/
69 struct i2c_regs *regs;
76 #define BIW_CTRL_DONE BIT(0)
77 #define BIW_CTRL_ACK_IN BIT(3)
78 #define BIW_CTRL_WRITE BIT(4)
79 #define BIW_CTRL_READ BIT(5)
80 #define BIW_CTRL_STOP BIT(6)
81 #define BIW_CTRL_START BIT(7)
83 #define I2C_BYTE_TO (CONFIG_SYS_HZ / 500)
84 #define I2C_STOPDET_TO (CONFIG_SYS_HZ / 500)
85 #define I2C_BYTE_TO_BB (10)
87 #endif /* __CA_I2C_H_ */