Searched refs:twsi (Results 1 – 1 of 1) sorted by relevance
/external/u-boot/drivers/i2c/ |
D | mvtwsi.c | 265 static int twsi_wait(struct mvtwsi_registers *twsi, int expected_status, in twsi_wait() argument 272 control = readl(&twsi->control); in twsi_wait() 274 status = readl(&twsi->status); in twsi_wait() 284 status = readl(&twsi->status); in twsi_wait() 302 static int twsi_start(struct mvtwsi_registers *twsi, int expected_status, in twsi_start() argument 307 MVTWSI_CONTROL_CLEAR_IFLG, &twsi->control); in twsi_start() 309 return twsi_wait(twsi, expected_status, tick); in twsi_start() 325 static int twsi_send(struct mvtwsi_registers *twsi, u8 byte, in twsi_send() argument 329 writel(byte, &twsi->data); in twsi_send() 332 &twsi->control); in twsi_send() [all …]
|