mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-14 08:27:00 +02:00
Add SPM suspend driver for suspend/resume features. TEST=build pass BUG=b:202871018 Signed-off-by: Jason-ch Chen <jason-ch.chen@mediatek.com> Change-Id: I25b4b97cd3138a7b347385539e47ccfa884d64fc
26 lines
627 B
C
26 lines
627 B
C
/*
|
|
* Copyright (c) 2022, MediaTek Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef __PLAT_UART_H__
|
|
#define __PLAT_UART_H__
|
|
|
|
/* UART error code */
|
|
#define UART_DONE U(0)
|
|
#define UART_PM_ERROR U(1)
|
|
|
|
/* UART HW information */
|
|
#ifndef HW_SUPPORT_UART_PORTS
|
|
#define HW_SUPPORT_UART_PORTS (2U) /* the UART PORTs current HW have */
|
|
#endif
|
|
#define MTK_UART_SEND_SLEEP_REQ (1U) /* Request uart to sleep */
|
|
#define MTK_UART_SLEEP_ACK_IDLE (1U) /* uart in idle state */
|
|
#define MTK_UART_WAIT_ACK_TIMES (50U)
|
|
|
|
#define UART_BASE0 (0x11002000)
|
|
#define UART_BASE1 (0x11003000)
|
|
|
|
#endif /* __PLAT_UART_H__ */
|