ITE: drivers/serial: add the UART driver for the PM callback function

IT8XXX2 uses shared ns16550.c driver which does not provide a power
management callback(pm_action_cb), so create driver to handle
IT8XXX2 specific UART features.

note: pm_action_cb(old name: pm_control_fn)

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
This commit is contained in:
Tim Lin 2021-10-21 15:05:50 +08:00 committed by Anas Nashif
commit e29a15c0e3
10 changed files with 206 additions and 114 deletions

View file

@ -0,0 +1,11 @@
# Copyright (c) 2021 ITE Corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
config UART_ITE_IT8XXX2
bool "ITE IT8XXX2 UART driver"
help
IT8XXX2 uses shared ns16550.c driver which does not
provide a power management callback, so create driver
to handle IT8XXX2 specific UART features. In addition
to use pm_action_cb, we also need to make some setting
at uart_it8xxx2_init.