1 /* arch/arm/mach-zynq/include/mach/zynq_soc.h
3 * Copyright (C) 2011 Xilinx
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef __MACH_XILINX_SOC_H__
16 #define __MACH_XILINX_SOC_H__
18 #define PERIPHERAL_CLOCK_RATE 2500000
20 /* For now, all mappings are flat (physical = virtual)
22 #define UART0_PHYS 0xE0000000
23 #define UART0_VIRT UART0_PHYS
25 #define TTC0_PHYS 0xF8001000
26 #define TTC0_VIRT TTC0_PHYS
28 #define SCU_PERIPH_PHYS 0xF8F00000
29 #define SCU_PERIPH_VIRT SCU_PERIPH_PHYS
31 /* The following are intended for the devices that are mapped early */
33 #define TTC0_BASE IOMEM(TTC0_VIRT)
34 #define SCU_PERIPH_BASE IOMEM(SCU_PERIPH_VIRT)
37 * Mandatory for CONFIG_LL_DEBUG, UART is mapped virtual = physical
39 #define LL_UART_PADDR UART0_PHYS
40 #define LL_UART_VADDR UART0_VIRT