summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/ph1-ld4/lowlevel_debug.S
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-09-21 15:27:37 (GMT)
committerMasahiro Yamada <yamada.masahiro@socionext.com>2015-09-24 15:27:53 (GMT)
commite6eecca54ffb99ee6877c0e29b0b389a481fcd85 (patch)
tree5ef8a962055e8c99f2162331259c01591ea237e7 /arch/arm/mach-uniphier/ph1-ld4/lowlevel_debug.S
parentfcbcd59730255018dbe78af9294598273a85a0de (diff)
downloadu-boot-fsl-qoriq-e6eecca54ffb99ee6877c0e29b0b389a481fcd85.tar.xz
ARM: uniphier: unify low-level debug init code
Move init code of low-level debug into a single file. This is helpful to create an image that runs on multiple SoCs. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/ph1-ld4/lowlevel_debug.S')
-rw-r--r--arch/arm/mach-uniphier/ph1-ld4/lowlevel_debug.S29
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/arm/mach-uniphier/ph1-ld4/lowlevel_debug.S b/arch/arm/mach-uniphier/ph1-ld4/lowlevel_debug.S
deleted file mode 100644
index c0f14e0..0000000
--- a/arch/arm/mach-uniphier/ph1-ld4/lowlevel_debug.S
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * On-chip UART initializaion for low-level debugging
- *
- * Copyright (C) 2014 Panasonic Corporation
- * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
- */
-
-#include <linux/linkage.h>
-#include <mach/sg-regs.h>
-
-#define UART_CLK 36864000
-#include <mach/debug-uart.S>
-
-ENTRY(setup_lowlevel_debug)
- ldr r0, =SG_IECTRL
- ldr r1, [r0]
- orr r1, r1, #1
- str r1, [r0]
-
- /* UART Port 0 */
- sg_set_pinsel 85, 1, 8, 4, r0, r1
- sg_set_pinsel 88, 1, 8, 4, r0, r1
-
- init_debug_uart r0, r1, r2
-
- mov pc, lr
-ENDPROC(setup_lowlevel_debug)