zephyr/drivers/serial
Tim Lin f52ff1a79e drivers/serial: uart_ns16550: add power management constraint API
Instead of busy wait until completed transaction, the constraint set
is used before enabling tx interrupt to not allow system to enter
suspend when tx is transmitting.

Application defined policy should use the pm_constraint_get function
to check if given state is enabled and could be used.

TEST=Test on hayato board(soc:it8xxx2), the logs print normally before
system enters suspend.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2021-12-02 10:53:19 +01:00
..
CMakeLists.txt ITE: drivers/serial: add the UART driver for the PM callback function 2021-11-16 21:23:42 -05:00
Kconfig ITE: drivers/serial: add the UART driver for the PM callback function 2021-11-16 21:23:42 -05:00
Kconfig.altera_jtag drivers: uart_altera_jtag_hal: use DEVICE_DT_INST_DEFINE() 2021-08-23 18:53:47 -04:00
Kconfig.apbuart serial: apbuart interrupt support 2020-11-13 14:53:55 -08:00
Kconfig.b91 drivers: serial: introduce new Telink B91 Serial driver 2021-07-21 05:37:12 -04:00
Kconfig.cc13xx_cc26xx drivers: cc13xx_cc26xx: use DT_INST_FOREACH to reduce code duplication 2020-04-23 17:29:53 -05:00
Kconfig.cc32xx kconfig: Turn pointless/confusing 'menuconfig's into 'config's 2019-10-22 13:53:06 -05:00
Kconfig.cmsdk_apb kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.esp32 drivers: esp32: uart: use hal functions 2021-11-03 16:47:32 -04:00
Kconfig.gd32 drivers: serial: gd32 usart add interrupt support 2021-11-23 13:25:43 -05:00
Kconfig.gecko kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.imx drivers: serial: uart_imx: Convert driver to new DT_INST macros 2020-04-04 09:34:00 -05:00
Kconfig.it8xxx2 ITE: drivers/serial: add the UART driver for the PM callback function 2021-11-16 21:23:42 -05:00
Kconfig.leuart_gecko kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.litex kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.lpc11u6x drivers: serial: Add support for LPC11U6X UART controllers 2020-07-29 20:12:24 +02:00
Kconfig.mcux drivers: serial: uart_mcux: Convert to DT_INST 2020-04-14 17:52:31 -05:00
Kconfig.mcux_flexcomm drivers: uart: mcux_flexcomm: Convert to DT_INST 2020-04-28 16:54:30 -05:00
Kconfig.mcux_iuart drivers: serial: Add NXP IUART driver 2020-08-14 14:51:50 -05:00
Kconfig.mcux_lpsci drivers: uart: mcux_lpsci: Convert to DT_INST 2020-04-28 16:54:30 -05:00
Kconfig.mcux_lpuart drivers: uart: mcux_lpuart: Convert to DT_INST 2020-04-20 15:50:45 -05:00
Kconfig.miv drivers: serial: uart_miv: Fix build errors 2021-05-10 13:15:50 -05:00
Kconfig.msp432p4xx kconfig: Turn pointless/confusing 'menuconfig's into 'config's 2019-10-22 13:53:06 -05:00
Kconfig.native_posix drivers: serial: native_posix: Convert 2nd UART to be devicetree based 2021-02-18 09:06:21 +01:00
Kconfig.neorv32 drivers: serial: neorv32: use shared serial driver init priority 2021-10-19 06:44:46 -04:00
Kconfig.npcx driver: npcx7: fixed typo in Kconfig.npcx files. 2020-12-07 12:11:17 -05:00
Kconfig.nrfx drivers: serial: nrf_uarte: Conditionally call PPI driver 2021-05-07 12:11:32 +02:00
Kconfig.ns16550 uart: ns16550: add workaround to re-enable interrupts in ISR 2021-10-04 20:49:13 -04:00
Kconfig.numicro driver: serial: replace suffix nuvoton with numicro 2021-08-07 20:37:24 -04:00
Kconfig.pl011 drivers: pl011: add SBSA mode 2021-01-24 13:59:55 -05:00
Kconfig.psoc6 drivers: serial: psoc6: Add interrupts support 2021-04-27 09:27:45 -05:00
Kconfig.rcar drivers: uart: Add "Interrupt driven" to R-Car 2021-07-13 09:42:22 -04:00
Kconfig.rtt tracing: fix conflict with RTT locking 2021-05-25 07:36:38 -05:00
Kconfig.rv32m1_lpuart kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.sam0 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.sifive drivers: serial: sifive: support SiFive Freedom series SoCs 2021-09-03 09:52:26 -04:00
Kconfig.stellaris arm: Removed support for CC2650 2020-01-18 09:27:55 -06:00
Kconfig.stm32 drivers: dma: stm32 dma driver for a new dma version 2021-07-22 04:52:53 -04:00
Kconfig.test drivers: serial: add a dummy driver for vnd,serial 2021-07-14 11:10:08 -05:00
Kconfig.uart_sam drivers: serial: uart_sam: rework device tree support 2020-04-18 17:04:08 -05:00
Kconfig.usart_sam drivers: serial: usart_sam: rework device tree support 2020-04-18 17:04:08 -05:00
Kconfig.xec Microchip: MEC172x: Add UART driver 2021-08-09 16:21:33 -04:00
Kconfig.xen xenvm: drivers: serial: Implement serial interface to Xen PV console 2021-10-29 15:23:33 +02:00
Kconfig.xlnx drivers: serial: xlnx_xuartps: enable this driver for Zynq-7000 series SoCs 2021-10-28 15:26:50 +02:00
Kconfig.xmc4xxx drivers: serial: add XMC seris UART support 2020-05-09 14:21:44 +02:00
leuart_gecko.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
serial_test.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_altera_jtag_hal.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_apbuart.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_b91.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_cc13xx_cc26xx.c drivers: use new PM macros 2021-11-19 10:11:32 +01:00
uart_cc32xx.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_cmsdk_apb.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_esp32.c drivers: uart: esp32: set device to initialize pre-kernel 2021-11-09 15:18:15 -05:00
uart_gecko.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_handlers.c uart: add API support for wide data 2021-11-09 19:44:38 -05:00
uart_hvc_xen.c xenvm: drivers: serial: Implement serial interface to Xen PV console 2021-10-29 15:23:33 +02:00
uart_imx.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_ite_it8xxx2.c drivers: use new PM macros 2021-11-19 10:11:32 +01:00
uart_liteuart.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_lpc11u6x.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_lpc11u6x.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
uart_mchp_xec.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_mcux.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_mcux_flexcomm.c drivers: use DT_INST_ENUM_IDX(_OR) macros 2021-11-18 19:12:07 -05:00
uart_mcux_iuart.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_mcux_lpsci.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_mcux_lpuart.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_miv.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_msp432p4xx.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_native_posix.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_neorv32.c device: remove inclusion of pm/device.h 2021-11-29 11:08:38 +01:00
uart_npcx.c driver: uart_npcx: Fix uart to use PM constrain 2021-12-01 13:49:17 -06:00
uart_nrfx_uart.c device: remove inclusion of pm/device.h 2021-11-29 11:08:38 +01:00
uart_nrfx_uarte.c device: remove inclusion of pm/device.h 2021-11-29 11:08:38 +01:00
uart_ns16550.c drivers/serial: uart_ns16550: add power management constraint API 2021-12-02 10:53:19 +01:00
uart_ns16550.h drivers: serial: ns16550: move header from /include/ 2019-06-25 15:27:00 -04:00
uart_numicro.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_pl011.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_psoc6.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_rcar.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_rtt.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_rv32m1_lpuart.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_sam.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_sam0.c drivers: serial: uart_sam0: fix |= incorrectly clearing all INTFLAGS. 2021-11-23 10:40:13 -05:00
uart_sifive.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_stellaris.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_stm32.c drivers: serial: stm32: use new pinctrl API 2021-11-26 11:36:42 +01:00
uart_stm32.h drivers: serial: stm32: use new pinctrl API 2021-11-26 11:36:42 +01:00
uart_xlnx_ps.c drivers: serial: xlnx_xuartps: Fix interrupt-driven operation 2021-10-28 15:26:50 +02:00
uart_xlnx_uartlite.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
uart_xmc4xxx.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00
usart_gd32.c drivers: serial: gd32 usart add interrupt support 2021-11-23 13:25:43 -05:00
usart_sam.c drivers: serial: Refactor drivers to use shared init priority Kconfig 2021-10-17 10:58:09 -04:00