1*4882a593Smuzhiyun/* SPDX-License-Identifier: GPL-2.0-only */ 2*4882a593Smuzhiyun/* 3*4882a593Smuzhiyun * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. 4*4882a593Smuzhiyun * http://www.samsung.com 5*4882a593Smuzhiyun*/ 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun/* pull in the relevant register and map files. */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun#define S3C_ADDR_BASE 0xF6000000 10*4882a593Smuzhiyun#define S3C_VA_UART S3C_ADDR_BASE + 0x01000000 11*4882a593Smuzhiyun#define S5PV210_PA_UART 0xe2900000 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun /* note, for the boot process to work we have to keep the UART 14*4882a593Smuzhiyun * virtual address aligned to an 1MiB boundary for the L1 15*4882a593Smuzhiyun * mapping the head code makes. We keep the UART virtual address 16*4882a593Smuzhiyun * aligned and add in the offset when we load the value here. 17*4882a593Smuzhiyun */ 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun .macro addruart, rp, rv, tmp 20*4882a593Smuzhiyun ldr \rp, =S5PV210_PA_UART 21*4882a593Smuzhiyun ldr \rv, =S3C_VA_UART 22*4882a593Smuzhiyun#if CONFIG_DEBUG_S3C_UART != 0 23*4882a593Smuzhiyun add \rp, \rp, #(0x400 * CONFIG_DEBUG_S3C_UART) 24*4882a593Smuzhiyun add \rv, \rv, #(0x400 * CONFIG_DEBUG_S3C_UART) 25*4882a593Smuzhiyun#endif 26*4882a593Smuzhiyun .endm 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun#define fifo_full fifo_full_s5pv210 29*4882a593Smuzhiyun#define fifo_level fifo_level_s5pv210 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun#include <debug/samsung.S> 32