forked from linux-sunxi/linux-sunxi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm: sunxi: coped sun4i's early-printk support to sun3i and sun5i
- Loading branch information
Showing
4 changed files
with
59 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,21 @@ | ||
/* | ||
* arch/arm/mach-sun3i/include/mach/debug-macro.S | ||
* | ||
* 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/platform.h> | ||
|
||
.macro addruart, rp, rv | ||
ldr \rp, =SW_PA_UART0_IO_BASE | ||
ldr \rv, =SW_VA_UART0_IO_BASE | ||
#if CONFIG_SW_DEBUG_UART != 0 | ||
add \rp, \rp, #(0x400 * CONFIG_SW_DEBUG_UART) | ||
add \rv, \rv, #(0x400 * CONFIG_SW_DEBUG_UART) | ||
#endif | ||
.endm | ||
|
||
#define UART_SHIFT 2 | ||
#include <asm/hardware/debug-8250.S> |
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,21 @@ | ||
/* | ||
* arch/arm/mach-sun5i/include/mach/debug-macro.S | ||
* | ||
* 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/platform.h> | ||
|
||
.macro addruart, rp, rv | ||
ldr \rp, =SW_PA_UART0_IO_BASE | ||
ldr \rv, =SW_VA_UART0_IO_BASE | ||
#if CONFIG_SW_DEBUG_UART != 0 | ||
add \rp, \rp, #(0x400 * CONFIG_SW_DEBUG_UART) | ||
add \rv, \rv, #(0x400 * CONFIG_SW_DEBUG_UART) | ||
#endif | ||
.endm | ||
|
||
#define UART_SHIFT 2 | ||
#include <asm/hardware/debug-8250.S> |