Make use of pm_device_driver_init to perform driver initialization. Implement PM suspend and resume, which performs the following actions: * Enables/disables the USART * Gates the USART clock * Configures USART pins Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
18 lines
462 B
Plaintext
18 lines
462 B
Plaintext
# Copyright (c) 2025, Silicon Laboratories Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config UART_SILABS_USART
|
|
bool "Silabs USART UART driver"
|
|
default y
|
|
depends on DT_HAS_SILABS_USART_UART_ENABLED
|
|
select SERIAL_HAS_DRIVER
|
|
select SERIAL_SUPPORT_INTERRUPT
|
|
select SOC_GECKO_USART
|
|
select SERIAL_SUPPORT_ASYNC \
|
|
if DT_HAS_SILABS_LDMA_ENABLED
|
|
select DMA if UART_ASYNC_API
|
|
select PINCTRL
|
|
select CLOCK_CONTROL
|
|
help
|
|
Enable the Silicon Labs usart driver.
|