Path: blob/master/arch/arm/mach-realview/include/mach/debug-macro.S
10820 views
/* arch/arm/mach-realview/include/mach/debug-macro.S1*2* Debugging macro include header3*4* Copyright (C) 1994-1999 Russell King5* Moved from linux/arch/arm/kernel/debug.S by Ben Dooks6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*/1112#if defined(CONFIG_MACH_REALVIEW_EB) || \13defined(CONFIG_MACH_REALVIEW_PB11MP) || \14defined(CONFIG_MACH_REALVIEW_PBA8) || \15defined(CONFIG_MACH_REALVIEW_PBX)16#ifndef DEBUG_LL_UART_OFFSET17#define DEBUG_LL_UART_OFFSET 0x0000900018#elif DEBUG_LL_UART_OFFSET != 0x0000900019#warning "DEBUG_LL_UART_OFFSET already defined to a different value"20#endif21#endif2223#ifdef CONFIG_MACH_REALVIEW_PB117624#ifndef DEBUG_LL_UART_OFFSET25#define DEBUG_LL_UART_OFFSET 0x0010c00026#elif DEBUG_LL_UART_OFFSET != 0x0010c00027#warning "DEBUG_LL_UART_OFFSET already defined to a different value"28#endif29#endif3031#ifndef DEBUG_LL_UART_OFFSET32#error "Unknown RealView platform"33#endif3435.macro addruart, rp, rv36mov \rp, #DEBUG_LL_UART_OFFSET37orr \rv, \rp, #0xfb000000 @ virtual base38orr \rp, \rp, #0x10000000 @ physical base39.endm4041#include <asm/hardware/debug-pl01x.S>424344