2 * On-chip UART initializaion for low-level debugging
4 * Copyright (C) 2014 Panasonic Corporation
5 * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
7 * SPDX-License-Identifier: GPL-2.0+
10 #include <linux/linkage.h>
11 #include <mach/sg-regs.h>
13 #define UART_CLK 36864000
14 #include <mach/debug-uart.S>
16 ENTRY(setup_lowlevel_debug)
17 init_debug_uart r0, r1, r2
20 set_pinsel 85, 1, r0, r1
21 set_pinsel 88, 1, r0, r1
29 ENDPROC(setup_lowlevel_debug)