Skip to content
Commit 715efe25 authored by Mulin Chao's avatar Mulin Chao Committed by Anas Nashif
Browse files

driver: uart: npcx: Add pm_deivce support for uart driver.



Since the uart device clock will be stopped after ec entered sleep or
deep sleep state and restore its clock automatically, there is no need
to implement code for suspending and resuming devices manually.

The driver still needs to check the current status of uart device when
it wants to change its power state to LOW or SUSPEND power state. It is
crucial to forbid ec enters sleep or deep sleep state when uart device
is busy with transmitting data. Or we will observe broken characters on
the uart console.

Signed-off-by: default avatarMulin Chao <mlchao@nuvoton.com>
parent 1f731c6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment