| Author: Michael Shych <michaelsh@mellanox.com> |
| This is the Mellanox I2C controller logic, implemented in Lattice CPLD |
| This controller is equipped within the next Mellanox systems: |
| "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", |
| The next transaction types are supported: |
| Resets all the registers. |
| HALF_CYC 0x4 - cycle reg. |
| Configure the width of I2C SCL half clock cycle (in 4 LPC_CLK |
| OE (output enable) is delayed by value set to this register |
| Bit 0, 0 = write, 1 = read. |
| Bits [7:1] - the 7bit Address of the I2C device. |
| It should be written last as it triggers an I2C transaction. |
| NUM_DATA 0x7 - data size reg. |
| Number of data bytes to write in read transaction |
| NUM_ADDR 0x8 - address reg. |
| Number of address bytes to write in read transaction. |
| Bit 0 - transaction is completed. |
| DATAx 0xa - 0x54 - 68 bytes data buffer regs. |
| For write transaction address is specified in four first bytes |
| (DATA1 - DATA4), data starting from DATA4. |
| For read transactions address is sent in a separate transaction and |
| specified in the four first bytes (DATA0 - DATA3). Data is read |