/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Debugging macro include header3*4* Copyright (C) 2009 ST-Ericsson5*/678#if CONFIG_UX500_DEBUG_UART > 29#error Invalid Ux500 debug UART10#endif1112/*13* DEBUG_LL only works if only one SOC is built in. We don't use #else below14* in order to get "__UX500_UART redefined" warnings if more than one SOC is15* built, so that there's some hint during the build that something is wrong.16*/1718#ifdef CONFIG_UX500_SOC_DB850019#define U8500_UART0_PHYS_BASE (0x80120000)20#define U8500_UART1_PHYS_BASE (0x80121000)21#define U8500_UART2_PHYS_BASE (0x80007000)22#define __UX500_PHYS_UART(n) U8500_UART##n##_PHYS_BASE23#endif2425#if !defined(__UX500_PHYS_UART)26#error Unknown SOC27#endif2829#define UX500_PHYS_UART(n) __UX500_PHYS_UART(n)30#define UART_PHYS_BASE UX500_PHYS_UART(CONFIG_UX500_DEBUG_UART)31#define UART_VIRT_BASE (0xfff07000)3233.macro addruart, rp, rv, tmp34ldr \rp, =UART_PHYS_BASE @ no, physical address35ldr \rv, =UART_VIRT_BASE @ yes, virtual address36.endm3738#include <debug/pl01x.S>394041