/* SPDX-License-Identifier: GPL-2.0-only */1/* arch/arm/mach-realview/include/mach/debug-macro.S2*3* Debugging macro include header4*5* Copyright (C) 1994-1999 Russell King6* Moved from linux/arch/arm/kernel/debug.S by Ben Dooks7*/89#define DEBUG_LL_PHYS_BASE 0x1000000010#define DEBUG_LL_UART_OFFSET 0x000090001112#define DEBUG_LL_PHYS_BASE_RS1 0x1c00000013#define DEBUG_LL_UART_OFFSET_RS1 0x000900001415#define DEBUG_LL_UART_PHYS_CRX 0xb00900001617#define DEBUG_LL_VIRT_BASE 0xf80000001819#if defined(CONFIG_DEBUG_VEXPRESS_UART0_DETECT)2021.macro addruart,rp,rv,tmp22.arch armv7-a2324@ Make an educated guess regarding the memory map:25@ - the original A9 core tile (based on ARM Cortex-A9 r0p1)26@ should use UART at 0x1000900027@ - all other (RS1 complaint) tiles use UART mapped28@ at 0x1c09000029mrc p15, 0, \rp, c0, c0, 030movw \rv, #0xc09131movt \rv, #0x410f32cmp \rp, \rv3334@ Original memory map35moveq \rp, #DEBUG_LL_UART_OFFSET36orreq \rv, \rp, #DEBUG_LL_VIRT_BASE37orreq \rp, \rp, #DEBUG_LL_PHYS_BASE3839@ RS1 memory map40movne \rp, #DEBUG_LL_UART_OFFSET_RS141orrne \rv, \rp, #DEBUG_LL_VIRT_BASE42orrne \rp, \rp, #DEBUG_LL_PHYS_BASE_RS14344.endm4546#include <debug/pl01x.S>47#endif484950