|
585 | 585 | // matching interrupt clear register. The unmasked raw versions of
|
586 | 586 | // these bits are available in the IC_RAW_INTR_STAT register.
|
587 | 587 | #define I2C_IC_INTR_STAT_OFFSET _u(0x0000002c)
|
588 |
| -#define I2C_IC_INTR_STAT_BITS _u(0x00003fff) |
| 588 | +#define I2C_IC_INTR_STAT_BITS _u(0x00001fff) |
589 | 589 | #define I2C_IC_INTR_STAT_RESET _u(0x00000000)
|
590 | 590 | // -----------------------------------------------------------------------------
|
591 |
| -// Field : I2C_IC_INTR_STAT_R_MASTER_ON_HOLD |
592 |
| -// Description : See IC_RAW_INTR_STAT for a detailed description of |
593 |
| -// R_MASTER_ON_HOLD bit. |
594 |
| -// |
595 |
| -// Reset value: 0x0 |
596 |
| -// 0x0 -> R_MASTER_ON_HOLD interrupt is inactive |
597 |
| -// 0x1 -> R_MASTER_ON_HOLD interrupt is active |
598 |
| -#define I2C_IC_INTR_STAT_R_MASTER_ON_HOLD_RESET _u(0x0) |
599 |
| -#define I2C_IC_INTR_STAT_R_MASTER_ON_HOLD_BITS _u(0x00002000) |
600 |
| -#define I2C_IC_INTR_STAT_R_MASTER_ON_HOLD_MSB _u(13) |
601 |
| -#define I2C_IC_INTR_STAT_R_MASTER_ON_HOLD_LSB _u(13) |
602 |
| -#define I2C_IC_INTR_STAT_R_MASTER_ON_HOLD_ACCESS "RO" |
603 |
| -#define I2C_IC_INTR_STAT_R_MASTER_ON_HOLD_VALUE_INACTIVE _u(0x0) |
604 |
| -#define I2C_IC_INTR_STAT_R_MASTER_ON_HOLD_VALUE_ACTIVE _u(0x1) |
605 |
| -// ----------------------------------------------------------------------------- |
606 | 591 | // Field : I2C_IC_INTR_STAT_R_RESTART_DET
|
607 | 592 | // Description : See IC_RAW_INTR_STAT for a detailed description of
|
608 | 593 | // R_RESTART_DET bit.
|
|
805 | 790 | // register is active low; a value of 0 masks the interrupt,
|
806 | 791 | // whereas a value of 1 unmasks the interrupt.
|
807 | 792 | #define I2C_IC_INTR_MASK_OFFSET _u(0x00000030)
|
808 |
| -#define I2C_IC_INTR_MASK_BITS _u(0x00003fff) |
| 793 | +#define I2C_IC_INTR_MASK_BITS _u(0x00001fff) |
809 | 794 | #define I2C_IC_INTR_MASK_RESET _u(0x000008ff)
|
810 | 795 | // -----------------------------------------------------------------------------
|
811 |
| -// Field : I2C_IC_INTR_MASK_M_MASTER_ON_HOLD_READ_ONLY |
812 |
| -// Description : This M_MASTER_ON_HOLD_read_only bit masks the R_MASTER_ON_HOLD |
813 |
| -// interrupt in IC_INTR_STAT register. |
814 |
| -// |
815 |
| -// Reset value: 0x0 |
816 |
| -// 0x0 -> MASTER_ON_HOLD interrupt is masked |
817 |
| -// 0x1 -> MASTER_ON_HOLD interrupt is unmasked |
818 |
| -#define I2C_IC_INTR_MASK_M_MASTER_ON_HOLD_READ_ONLY_RESET _u(0x0) |
819 |
| -#define I2C_IC_INTR_MASK_M_MASTER_ON_HOLD_READ_ONLY_BITS _u(0x00002000) |
820 |
| -#define I2C_IC_INTR_MASK_M_MASTER_ON_HOLD_READ_ONLY_MSB _u(13) |
821 |
| -#define I2C_IC_INTR_MASK_M_MASTER_ON_HOLD_READ_ONLY_LSB _u(13) |
822 |
| -#define I2C_IC_INTR_MASK_M_MASTER_ON_HOLD_READ_ONLY_ACCESS "RO" |
823 |
| -#define I2C_IC_INTR_MASK_M_MASTER_ON_HOLD_READ_ONLY_VALUE_ENABLED _u(0x0) |
824 |
| -#define I2C_IC_INTR_MASK_M_MASTER_ON_HOLD_READ_ONLY_VALUE_DISABLED _u(0x1) |
825 |
| -// ----------------------------------------------------------------------------- |
826 | 796 | // Field : I2C_IC_INTR_MASK_M_RESTART_DET
|
827 | 797 | // Description : This bit masks the R_RESTART_DET interrupt in IC_INTR_STAT
|
828 | 798 | // register.
|
|
1023 | 993 | // Unlike the IC_INTR_STAT register, these bits are not masked so
|
1024 | 994 | // they always show the true status of the DW_apb_i2c.
|
1025 | 995 | #define I2C_IC_RAW_INTR_STAT_OFFSET _u(0x00000034)
|
1026 |
| -#define I2C_IC_RAW_INTR_STAT_BITS _u(0x00003fff) |
| 996 | +#define I2C_IC_RAW_INTR_STAT_BITS _u(0x00001fff) |
1027 | 997 | #define I2C_IC_RAW_INTR_STAT_RESET _u(0x00000000)
|
1028 | 998 | // -----------------------------------------------------------------------------
|
1029 |
| -// Field : I2C_IC_RAW_INTR_STAT_MASTER_ON_HOLD |
1030 |
| -// Description : Indicates whether master is holding the bus and TX FIFO is |
1031 |
| -// empty. Enabled only when I2C_DYNAMIC_TAR_UPDATE=1 and |
1032 |
| -// IC_EMPTYFIFO_HOLD_MASTER_EN=1. |
1033 |
| -// |
1034 |
| -// Reset value: 0x0 |
1035 |
| -// 0x0 -> MASTER_ON_HOLD interrupt is inactive |
1036 |
| -// 0x1 -> MASTER_ON_HOLD interrupt is active |
1037 |
| -#define I2C_IC_RAW_INTR_STAT_MASTER_ON_HOLD_RESET _u(0x0) |
1038 |
| -#define I2C_IC_RAW_INTR_STAT_MASTER_ON_HOLD_BITS _u(0x00002000) |
1039 |
| -#define I2C_IC_RAW_INTR_STAT_MASTER_ON_HOLD_MSB _u(13) |
1040 |
| -#define I2C_IC_RAW_INTR_STAT_MASTER_ON_HOLD_LSB _u(13) |
1041 |
| -#define I2C_IC_RAW_INTR_STAT_MASTER_ON_HOLD_ACCESS "RO" |
1042 |
| -#define I2C_IC_RAW_INTR_STAT_MASTER_ON_HOLD_VALUE_INACTIVE _u(0x0) |
1043 |
| -#define I2C_IC_RAW_INTR_STAT_MASTER_ON_HOLD_VALUE_ACTIVE _u(0x1) |
1044 |
| -// ----------------------------------------------------------------------------- |
1045 | 999 | // Field : I2C_IC_RAW_INTR_STAT_RESTART_DET
|
1046 | 1000 | // Description : Indicates whether a RESTART condition has occurred on the I2C
|
1047 | 1001 | // interface when DW_apb_i2c is operating in Slave mode and the
|
|
1839 | 1793 | //
|
1840 | 1794 | // The values in this register are in units of ic_clk period. The
|
1841 | 1795 | // value programmed in IC_SDA_TX_HOLD must be greater than the
|
1842 |
| -// minimum hold time in each mode one cycle in master mode, seven |
1843 |
| -// cycles in slave mode for the value to be implemented. |
| 1796 | +// minimum hold time in each mode (one cycle in master mode, seven |
| 1797 | +// cycles in slave mode) for the value to be implemented. |
1844 | 1798 | //
|
1845 | 1799 | // The programmed SDA hold time during transmit (IC_SDA_TX_HOLD)
|
1846 | 1800 | // cannot exceed at any time the duration of the low part of scl.
|
|
0 commit comments