summaryrefslogblamecommitdiff
path: root/arch/arm/mach-ux500/include/mach/debug-macro.S
blob: be7c0f14e310abed1fd65267f07142beda12ee0c (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                       

                          







                                                           


                                                                              


                                     
/*
 * Debugging macro include header
 *
 *  Copyright (C) 2009 ST-Ericsson
 *
 * 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/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, rp, rv
	ldr	\rp, =UART_BASE				@ no, physical address
	ldr	\rv, =IO_ADDRESS(UART_BASE)		@ yes, virtual address
	.endm

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