Lines Matching +full:16 +full:- +full:bit
1 /* spi_pw.h - Penwell SPI driver definitions */
6 * SPDX-License-Identifier: Apache-2.0
41 #define PW_SPI_CTRLR0_SSE_BIT BIT(7)
42 #define PW_SPI_CTRLR0_EDSS_BIT BIT(20)
43 #define PW_SPI_CTRLR0_RIM_BIT BIT(22)
44 #define PW_SPI_CTRLR0_TIM_BIT BIT(23)
45 #define PW_SPI_CTRLR0_MOD_BIT BIT(31)
71 #define PW_SPI_CTRL1_RIE_BIT BIT(0)
72 #define PW_SPI_CTRL1_TIE_BIT BIT(1)
73 #define PW_SPI_CTRL1_LBM_BIT BIT(2)
74 #define PW_SPI_CTRL1_SPO_BIT BIT(3)
75 #define PW_SPI_CTRL1_SPH_BIT BIT(4)
76 #define PW_SPI_CTRL1_IFS_BIT BIT(16)
77 #define PW_SPI_CTRL1_TINTE_BIT BIT(19)
78 #define PW_SPI_CTRL1_RSRE_BIT BIT(20)
79 #define PW_SPI_CTRL1_TSRE_BIT BIT(21)
80 #define PW_SPI_CTRL1_TRAIL_BIT BIT(22)
81 #define PW_SPI_CTRL1_RWOT_BIT BIT(23)
87 #define PW_SPI_SSSR_TNF_BIT BIT(2)
88 #define PW_SPI_SSSR_RNE_BIT BIT(3)
89 #define PW_SPI_SSSR_BSY_BIT BIT(4)
90 #define PW_SPI_SSSR_TFS_BIT BIT(5)
91 #define PW_SPI_SSSR_RFS_BIT BIT(6)
92 #define PW_SPI_SSSR_ROR_BIT BIT(7)
93 #define PW_SPI_SSSR_PINT_BIT BIT(18)
94 #define PW_SPI_SSSR_TINT_BIT BIT(19)
95 #define PW_SPI_SSSR_TUR_BIT BIT(21)
106 #define PW_SPI_SITF_LWM_2_ENTRY (BIT(0) << 8)
107 #define PW_SPI_SITF_LWM_3_ENTRY (BIT(1) << 8)
108 #define PW_SPI_SITF_LWM_4_ENTRY ((BIT(1) | BIT(0)) << 8)
110 /* SPI Tx FIFO Level SITF[21:16] */
111 #define PW_SPI_SITF_SITFL_MASK (BIT_MASK(6) << 16)
131 #define PW_SPI_SITF_LOW_WM_DFLT BIT(PW_SPI_SITF_LWMTF_SHIFT)
136 #define PW_SPI_CLKS_EN_BIT BIT(0)
137 #define PW_SPI_CLKS_MVAL BIT(1)
138 #define PW_SPI_CLKS_NVAL BIT(16)
139 #define PW_SPI_CLKS_UPDATE_BIT BIT(31)
144 /* nval mask [30:16] */
145 #define PW_SPI_CLKS_NVAL_MASK (BIT_MASK(15) << 16)
172 #define PW_SPI_CS_CTRL_SW_MODE BIT(0)
173 #define PW_SPI_CS_HIGH BIT(1)
177 #define PW_SPI_CS0_SELECT (~(BIT(PW_SPI_CS_EN_SHIFT)))
178 #define PW_SPI_CS1_SELECT BIT(PW_SPI_CS_EN_SHIFT)