twsi: add more of status definitions

For completeness and for future use.

MFC after:	1 week
This commit is contained in:
Andriy Gapon 2021-11-26 08:30:22 +02:00
parent 26559dd177
commit de86f339cd

View File

@ -68,16 +68,19 @@ __FBSDID("$FreeBSD$");
#define TWSI_CONTROL_TWSIEN (1 << 6)
#define TWSI_CONTROL_INTEN (1 << 7)
#define TWSI_STATUS_BUS_ERROR 0x00
#define TWSI_STATUS_START 0x08
#define TWSI_STATUS_RPTD_START 0x10
#define TWSI_STATUS_ADDR_W_ACK 0x18
#define TWSI_STATUS_ADDR_W_NACK 0x20
#define TWSI_STATUS_DATA_WR_ACK 0x28
#define TWSI_STATUS_DATA_WR_NACK 0x30
#define TWSI_STATUS_ARBITRATION_LOST 0x38
#define TWSI_STATUS_ADDR_R_ACK 0x40
#define TWSI_STATUS_ADDR_R_NACK 0x48
#define TWSI_STATUS_DATA_RD_ACK 0x50
#define TWSI_STATUS_DATA_RD_NOACK 0x58
#define TWSI_STATUS_IDLE 0xf8
#define TWSI_DEBUG
#undef TWSI_DEBUG