218283a94247efba281b4b22b074de4896ab578e
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-zynq / include / mach / zynq_soc.h
1 /* arch/arm/mach-zynq/include/mach/zynq_soc.h
2  *
3  *  Copyright (C) 2011 Xilinx
4  *
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.
8  *
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.
13  */
14
15 #ifndef __MACH_XILINX_SOC_H__
16 #define __MACH_XILINX_SOC_H__
17
18 #define PERIPHERAL_CLOCK_RATE           2500000
19
20 /* For now, all mappings are flat (physical = virtual)
21  */
22 #define UART0_PHYS                      0xE0000000
23 #define UART0_VIRT                      UART0_PHYS
24
25 #define TTC0_PHYS                       0xF8001000
26 #define TTC0_VIRT                       TTC0_PHYS
27
28 #define SCU_PERIPH_PHYS                 0xF8F00000
29 #define SCU_PERIPH_VIRT                 SCU_PERIPH_PHYS
30
31 /* The following are intended for the devices that are mapped early */
32
33 #define TTC0_BASE                       IOMEM(TTC0_VIRT)
34 #define SCU_PERIPH_BASE                 IOMEM(SCU_PERIPH_VIRT)
35
36 /*
37  * Mandatory for CONFIG_LL_DEBUG, UART is mapped virtual = physical
38  */
39 #define LL_UART_PADDR   UART0_PHYS
40 #define LL_UART_VADDR   UART0_VIRT
41
42 #endif