Lines Matching refs:uart_base
1147 uint32_t uart_base = rockchip_get_uart_base(); in suspend_uart() local
1149 if (uart_base == 0) in suspend_uart()
1152 uart_save.uart_lcr = mmio_read_32(uart_base + UART_LCR); in suspend_uart()
1153 uart_save.uart_ier = mmio_read_32(uart_base + UART_IER); in suspend_uart()
1154 uart_save.uart_mcr = mmio_read_32(uart_base + UART_MCR); in suspend_uart()
1155 mmio_write_32(uart_base + UART_LCR, in suspend_uart()
1157 uart_save.uart_dll = mmio_read_32(uart_base + UART_DLL); in suspend_uart()
1158 uart_save.uart_dlh = mmio_read_32(uart_base + UART_DLH); in suspend_uart()
1159 mmio_write_32(uart_base + UART_LCR, uart_save.uart_lcr); in suspend_uart()
1164 uint32_t uart_base = rockchip_get_uart_base(); in resume_uart() local
1167 if (uart_base == 0) in resume_uart()
1170 mmio_write_32(uart_base + UARTSRR, in resume_uart()
1173 uart_lcr = mmio_read_32(uart_base + UART_LCR); in resume_uart()
1174 mmio_write_32(uart_base + UART_MCR, DIAGNOSTIC_MODE); in resume_uart()
1175 mmio_write_32(uart_base + UART_LCR, uart_lcr | UARTLCR_DLAB); in resume_uart()
1176 mmio_write_32(uart_base + UART_DLL, uart_save.uart_dll); in resume_uart()
1177 mmio_write_32(uart_base + UART_DLH, uart_save.uart_dlh); in resume_uart()
1178 mmio_write_32(uart_base + UART_LCR, uart_save.uart_lcr); in resume_uart()
1179 mmio_write_32(uart_base + UART_IER, uart_save.uart_ier); in resume_uart()
1180 mmio_write_32(uart_base + UART_FCR, UARTFCR_FIFOEN); in resume_uart()
1181 mmio_write_32(uart_base + UART_MCR, uart_save.uart_mcr); in resume_uart()