plat_uart.h 627 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef __PLAT_UART_H__
  7. #define __PLAT_UART_H__
  8. /* UART error code */
  9. #define UART_DONE U(0)
  10. #define UART_PM_ERROR U(1)
  11. /* UART HW information */
  12. #ifndef HW_SUPPORT_UART_PORTS
  13. #define HW_SUPPORT_UART_PORTS (2U) /* the UART PORTs current HW have */
  14. #endif
  15. #define MTK_UART_SEND_SLEEP_REQ (1U) /* Request uart to sleep */
  16. #define MTK_UART_SLEEP_ACK_IDLE (1U) /* uart in idle state */
  17. #define MTK_UART_WAIT_ACK_TIMES (50U)
  18. #define UART_BASE0 (0x11002000)
  19. #define UART_BASE1 (0x11003000)
  20. #endif /* __PLAT_UART_H__ */