Lines Matching +full:stabilization +full:- +full:time
4 * SPDX-License-Identifier: Apache-2.0
22 get_uart(dev)->cr |= PL011_CR_AMBIQ_CLKEN; in pl011_ambiq_enable_clk()
43 return -EINVAL; in pl011_ambiq_clk_set()
46 get_uart(dev)->cr |= FIELD_PREP(PL011_CR_AMBIQ_CLKSEL, clksel); in pl011_ambiq_clk_set()
95 if (!pRegisterStatus->bValid) { in uart_ambiq_pm_action()
96 return -EPERM; in uart_ambiq_pm_action()
99 /*The resume and suspend actions may be executed back-to-back, in uart_ambiq_pm_action()
100 * so we add a busy wait here for stabilization. in uart_ambiq_pm_action()
110 UARTn(ui32Module)->ILPR = pRegisterStatus->regILPR; in uart_ambiq_pm_action()
111 UARTn(ui32Module)->IBRD = pRegisterStatus->regIBRD; in uart_ambiq_pm_action()
112 UARTn(ui32Module)->FBRD = pRegisterStatus->regFBRD; in uart_ambiq_pm_action()
113 UARTn(ui32Module)->LCRH = pRegisterStatus->regLCRH; in uart_ambiq_pm_action()
114 UARTn(ui32Module)->CR = pRegisterStatus->regCR; in uart_ambiq_pm_action()
115 UARTn(ui32Module)->IFLS = pRegisterStatus->regIFLS; in uart_ambiq_pm_action()
116 UARTn(ui32Module)->IER = pRegisterStatus->regIER; in uart_ambiq_pm_action()
117 pRegisterStatus->bValid = false; in uart_ambiq_pm_action()
124 while ((get_uart(dev)->fr & PL011_FR_BUSY) != 0) in uart_ambiq_pm_action()
130 pRegisterStatus->regILPR = UARTn(ui32Module)->ILPR; in uart_ambiq_pm_action()
131 pRegisterStatus->regIBRD = UARTn(ui32Module)->IBRD; in uart_ambiq_pm_action()
132 pRegisterStatus->regFBRD = UARTn(ui32Module)->FBRD; in uart_ambiq_pm_action()
133 pRegisterStatus->regLCRH = UARTn(ui32Module)->LCRH; in uart_ambiq_pm_action()
134 pRegisterStatus->regCR = UARTn(ui32Module)->CR; in uart_ambiq_pm_action()
135 pRegisterStatus->regIFLS = UARTn(ui32Module)->IFLS; in uart_ambiq_pm_action()
136 pRegisterStatus->regIER = UARTn(ui32Module)->IER; in uart_ambiq_pm_action()
137 pRegisterStatus->bValid = true; in uart_ambiq_pm_action()
144 UARTn(ui32Module)->IEC = 0xFFFFFFFF; in uart_ambiq_pm_action()
152 UARTn(ui32Module)->CR = 0; in uart_ambiq_pm_action()
158 return -ENOTSUP; in uart_ambiq_pm_action()
163 /* Problem: writes to power configure register takes some time to take effective.