Lines Matching +full:16 +full:- +full:bit

4  * SPDX-License-Identifier: Apache-2.0
25 * 32-bit R/W
26 * 16-bit Basic timers: bits[15:0]=R/W, bits[31:15]=RO=0
32 * 32-bit R/W
33 * 16-bit Basic timers: bits[15:0]=R/W, bits[31:15]=RO=0
54 #define MCHP_BTMR_CTRL_PRESCALE_POS 16u
74 /** @brief Basic Timer(32 and 16 bit) registers. Total size = 20(0x14) bytes */
87 * Set count resolution in bit[0]
93 #define MCHP_HTMR_CTRL_RESOL_MASK BIT(MCHP_HTMR_CTRL_EN_POS)
95 #define MCHP_HTMR_CTRL_RESOL_125MS BIT(MCHP_HTMR_CTRL_EN_POS)
100 * Writing a non-zero value resets and start the counter counting down.
117 /* Control register at offset 0x00. Must use 32-bit access */
118 #define MCHP_CCT_CTRL_ACTIVATE BIT(0)
119 #define MCHP_CCT_CTRL_FRUN_EN BIT(1)
120 #define MCHP_CCT_CTRL_FRUN_RESET BIT(2) /* self clearing bit */
131 #define MCHP_CCT_CTRL_COMP0_EN BIT(8)
132 #define MCHP_CCT_CTRL_COMP1_EN BIT(9)
133 #define MCHP_CCT_CTRL_COMP1_SET BIT(16) /* R/WS */
134 #define MCHP_CCT_CTRL_COMP0_SET BIT(17) /* R/WS */
135 #define MCHP_CCT_CTRL_COMP1_CLR BIT(24) /* R/W1C */
136 #define MCHP_CCT_CTRL_COMP0_CLR BIT(25) /* R/W1C */
159 #define MCHP_RTMR_CTRL_BLK_EN_MASK BIT(MCHP_RTMR_CTRL_BLK_EN_POS)
160 #define MCHP_RTMR_CTRL_BLK_EN BIT(MCHP_RTMR_CTRL_BLK_EN_POS)
163 #define MCHP_RTMR_CTRL_AUTO_RELOAD_MASK BIT(MCHP_RTMR_CTRL_AUTO_RELOAD_POS)
164 #define MCHP_RTMR_CTRL_AUTO_RELOAD BIT(MCHP_RTMR_CTRL_AUTO_RELOAD_POS)
167 #define MCHP_RTMR_CTRL_START_MASK BIT(MCHP_RTMR_CTRL_START_POS)
168 #define MCHP_RTMR_CTRL_START BIT(MCHP_RTMR_CTRL_START_POS)
171 #define MCHP_RTMR_CTRL_HW_HALT_EN_MASK BIT(MCHP_RTMR_CTRL_HW_HALT_EN_POS)
172 #define MCHP_RTMR_CTRL_HW_HALT_EN BIT(MCHP_RTMR_CTRL_HW_HALT_EN_POS)
175 #define MCHP_RTMR_CTRL_FW_HALT_EN_MASK BIT(MCHP_RTMR_CTRL_FW_HALT_EN_POS)
176 #define MCHP_RTMR_CTRL_FW_HALT_EN BIT(MCHP_RTMR_CTRL_FW_HALT_EN_POS)
189 #define MCHP_WKTMR_CTRL_WT_EN_MASK BIT(MCHP_WKTMR_CTRL_WT_EN_POS)
190 #define MCHP_WKTMR_CTRL_WT_EN BIT(MCHP_WKTMR_CTRL_WT_EN_POS)
192 #define MCHP_WKTMR_CTRL_PWRUP_EV_EN_MASK BIT(MCHP_WKTMR_CTRL_PWRUP_EV_EN_POS)
193 #define MCHP_WKTMR_CTRL_PWRUP_EV_EN BIT(MCHP_WKTMR_CTRL_PWRUP_EV_EN_POS)
199 /* Sub-second interrupt select at +0x10 */
218 /* Sub-week control at +0x14 */
222 BIT(MCHP_WKTMR_SWKC_PWRUP_EV_STS_POS)
224 BIT(MCHP_WKTMR_SWKC_PWRUP_EV_STS_POS)
227 BIT(MCHP_WKTMR_SWKC_SYSPWR_PRES_STS_POS)
229 BIT(MCHP_WKTMR_SWKC_SYSPWR_PRES_STS_POS)
232 BIT(MCHP_WKTMR_SWKC_SYSPWR_PRES_EN_POS)
234 BIT(MCHP_WKTMR_SWKC_SYSPWR_PRES_EN_POS)
237 BIT(MCHP_WKTMR_SWKC_AUTO_RELOAD_POS)
239 BIT(MCHP_WKTMR_SWKC_AUTO_RELOAD_POS)
241 /* Sub-week alarm counter at +0x18 */
244 #define MCHP_WKTMR_SWAC_CNT_RO_POS 16
246 #define MCHP_WKTMR_SWAC_CNT_RO_MASK GENMASK(24, 16)
253 #define MCHP_WKTMR_BGPO_0_PWR_RO BIT(0)
257 #define MCHP_WKTMR_BGPO_RST_VBAT(n) BIT(n)