-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Stefan Roese <sr@denx.de>
- Loading branch information
Maxime Ripard
committed
Nov 16, 2012
1 parent
3b52634
commit cb84fa1
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Early serial output macro for Allwinner A1X SoCs | ||
* | ||
* Copyright (C) 2012 Maxime Ripard | ||
* | ||
* Maxime Ripard <maxime.ripard@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. | ||
*/ | ||
|
||
#ifdef CONFIG_DEBUG_SUNXI_UART1 | ||
#define SUNXI_UART_DEBUG_PHYS_BASE 0x01c28400 | ||
#define SUNXI_UART_DEBUG_VIRT_BASE 0xf1c28400 | ||
#endif | ||
|
||
.macro addruart, rp, rv, tmp | ||
ldr \rp, =SUNXI_UART_DEBUG_PHYS_BASE | ||
ldr \rv, =SUNXI_UART_DEBUG_VIRT_BASE | ||
.endm | ||
|
||
#define UART_SHIFT 2 | ||
#include <asm/hardware/debug-8250.S> |