mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
bf54439c34
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Lior Amsalem <alior@marvell.com> Acked-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Yehuda Yitschak <yehuday@marvell.com> Tested-by: Lior Amsalem <alior@marvell.com>
25 lines
634 B
ArmAsm
25 lines
634 B
ArmAsm
/*
|
|
* Early serial output macro for Marvell SoC
|
|
*
|
|
* Copyright (C) 2012 Marvell
|
|
*
|
|
* Lior Amsalem <alior@marvell.com>
|
|
* Gregory Clement <gregory.clement@free-electrons.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <mach/armada-370-xp.h>
|
|
|
|
.macro addruart, rp, rv, tmp
|
|
ldr \rp, =ARMADA_370_XP_REGS_PHYS_BASE
|
|
ldr \rv, =ARMADA_370_XP_REGS_VIRT_BASE
|
|
orr \rp, \rp, #0x00012000
|
|
orr \rv, \rv, #0x00012000
|
|
.endm
|
|
|
|
#define UART_SHIFT 2
|
|
#include <asm/hardware/debug-8250.S>
|