k3_console.c 518 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <platform_def.h>
  7. #include <drivers/console.h>
  8. #include <drivers/ti/uart/uart_16550.h>
  9. #include <k3_console.h>
  10. void k3_console_setup(void)
  11. {
  12. static console_t console;
  13. console_16550_register(K3_USART_BASE, K3_USART_CLK_SPEED,
  14. K3_USART_BAUD, &console);
  15. console_set_scope(&console, CONSOLE_FLAG_BOOT |
  16. CONSOLE_FLAG_RUNTIME |
  17. CONSOLE_FLAG_CRASH);
  18. }