uniphier_console.h 978 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef UNIPHIER_CONSOLE_H
  7. #define UNIPHIER_CONSOLE_H
  8. #define UNIPHIER_UART_RX 0x00 /* In: Receive buffer */
  9. #define UNIPHIER_UART_TX 0x00 /* Out: Transmit buffer */
  10. #define UNIPHIER_UART_FCR 0x0c /* Char/FIFO Control Register */
  11. #define UNIPHIER_UART_FCR_ENABLE_FIFO 0x01 /* Enable the FIFO */
  12. #define UNIPHIER_UART_LCR_MCR 0x10 /* Line/Modem Control Register */
  13. #define UNIPHIER_UART_LCR_WLEN8 0x03 /* Wordlength: 8 bits */
  14. #define UNIPHIER_UART_LSR 0x14 /* Line Status Register */
  15. #define UNIPHIER_UART_LSR_TEMT 0x40 /* Transmitter empty */
  16. #define UNIPHIER_UART_LSR_TEMT_BIT 6 /* Transmitter empty */
  17. #define UNIPHIER_UART_LSR_THRE_BIT 5 /* Transmit-hold-register empty */
  18. #define UNIPHIER_UART_LSR_DR_BIT 0 /* Receiver data ready */
  19. #define UNIPHIER_UART_DLR 0x24 /* Divisor Latch Register */
  20. #endif /* UNIPHIER_CONSOLE_H */