• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/plat-brcm/include/mach/
1/*******************************************************************************
2* Copyright 2010 Broadcom Corporation.  All rights reserved.
3*
4* 	@file	arch/arm/mach-bcm215xx/include/mach/debug-macro.S
5*
6* Unless you and Broadcom execute a separate written software license agreement
7* governing use of this software, this software is licensed to you under the
8* terms of the GNU General Public License version 2, available at
9* http://www.gnu.org/copyleft/gpl.html (the "GPL").
10*
11* Notwithstanding the above, under no circumstances may you combine this
12* software in any way with any other Broadcom software provided under a license
13* other than the GPL, without Broadcom's express prior written consent.
14*******************************************************************************/
15
16/*
17 * Macros used for EARLY_PRINTK, in low-level UART debug console
18 */
19#include <mach/io_map.h>
20
21	.macro addruart, rx, tmp
22	mrc	p15, 0, \rx, c1, c0
23	tst	\rx, #1				@ MMU enabled?
24	ldreq	\rx, =PLAT_LLDEBUG_UART_PA 	@ MMU off, Physical
25	ldrne	\rx, =PLAT_LLDEBUG_UART_VA 	@ MMU on, Virtual
26	.endm
27
28#define UART_SHIFT	PLAT_LLDEBUG_UART_SH
29#include <asm/hardware/debug-8250.S>
30