blob: 1b01c9b13d3f8537c7d7f68ef8b49b2f43e893d6 [file] [log] [blame]
Nishanth Menonce976042016-10-14 01:13:44 +00001/*
2 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Nishanth Menonce976042016-10-14 01:13:44 +00007#include <platform_def.h>
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00008
9#include <drivers/console.h>
10#include <drivers/ti/uart/uart_16550.h>
11
12#include <k3_console.h>
Nishanth Menonce976042016-10-14 01:13:44 +000013
Andrew Davisb9104702022-11-15 18:04:41 -060014void k3_console_setup(void)
Nishanth Menonce976042016-10-14 01:13:44 +000015{
Andre Przywara98b5a112020-01-25 00:58:35 +000016 static console_t console;
Nishanth Menonce976042016-10-14 01:13:44 +000017
Andrew F. Davis42c277b2019-01-22 13:36:48 -060018 console_16550_register(K3_USART_BASE, K3_USART_CLK_SPEED,
Nishanth Menonce976042016-10-14 01:13:44 +000019 K3_USART_BAUD, &console);
Andrew Davisb9104702022-11-15 18:04:41 -060020
21 console_set_scope(&console, CONSOLE_FLAG_BOOT |
22 CONSOLE_FLAG_RUNTIME |
23 CONSOLE_FLAG_CRASH);
Nishanth Menonce976042016-10-14 01:13:44 +000024}