Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191768
b: refs/heads/master
c: 39a982b
h: refs/heads/master
v: v3
  • Loading branch information
Rabin Vincent authored and Russell King committed May 4, 2010
1 parent 795a394 commit fa9a062
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9c0957286e73d01e98503f714d32180e6963757
refs/heads/master: 39a982b4cda1b9c129094a411962348827412d50
7 changes: 7 additions & 0 deletions trunk/arch/arm/mach-ux500/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ config MACH_U8500_MOP
on early drop silicon version of 8500.
endmenu

config UX500_DEBUG_UART
int "Ux500 UART to use for low-level debug"
default 2
help
Choose the UART on which kernel low-level debug messages should be
output.

endif
12 changes: 10 additions & 2 deletions trunk/arch/arm/mach-ux500/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@
*/
#include <mach/hardware.h>

#if CONFIG_UX500_DEBUG_UART > 2
#error Invalid Ux500 debug UART
#endif

#define __UX500_UART(n) UX500_UART##n##_BASE
#define UX500_UART(n) __UX500_UART(n)
#define UART_BASE UX500_UART(CONFIG_UX500_DEBUG_UART)

.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =U8500_UART2_BASE @ no, physical address
ldrne \rx, =IO_ADDRESS(U8500_UART2_BASE) @ yes, virtual address
ldreq \rx, =UART_BASE @ no, physical address
ldrne \rx, =IO_ADDRESS(UART_BASE) @ yes, virtual address
.endm

#include <asm/hardware/debug-pl01x.S>

0 comments on commit fa9a062

Please sign in to comment.