blob: 6d4dadc67633bd119602839d5ac502de0afab79c [file] [log] [blame]
viresh kumara7e9c452010-04-01 12:30:19 +01001/*
2 * arch/arm/mach-spear3xx/include/mach/spear.h
3 *
4 * SPEAr3xx Machine family specific definition
5 *
6 * Copyright (C) 2009 ST Microelectronics
7 * Viresh Kumar<viresh.kumar@st.com>
8 *
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
12 */
13
14#ifndef __MACH_SPEAR3XX_H
15#define __MACH_SPEAR3XX_H
16
Shiraz Hashim981a95d32011-03-07 05:57:08 +010017#include <asm/memory.h>
viresh kumara7e9c452010-04-01 12:30:19 +010018
19/* ICM1 - Low speed connection */
Shiraz Hashim981a95d32011-03-07 05:57:08 +010020#define SPEAR3XX_ICM1_2_BASE UL(0xD0000000)
Viresh Kumarc5fa4fd2012-03-23 00:17:43 +053021#define VA_SPEAR3XX_ICM1_2_BASE UL(0xFD000000)
Shiraz Hashim981a95d32011-03-07 05:57:08 +010022#define SPEAR3XX_ICM1_UART_BASE UL(0xD0000000)
Viresh Kumarc5fa4fd2012-03-23 00:17:43 +053023#define VA_SPEAR3XX_ICM1_UART_BASE (VA_SPEAR3XX_ICM1_2_BASE | SPEAR3XX_ICM1_UART_BASE)
Shiraz Hashim981a95d32011-03-07 05:57:08 +010024#define SPEAR3XX_ICM1_SSP_BASE UL(0xD0100000)
viresh kumara7e9c452010-04-01 12:30:19 +010025
26/* ML1 - Multi Layer CPU Subsystem */
Shiraz Hashim981a95d32011-03-07 05:57:08 +010027#define SPEAR3XX_ICM3_ML1_2_BASE UL(0xF0000000)
Arnd Bergmann5019f0b2012-04-11 17:30:11 +000028#define VA_SPEAR6XX_ML_CPU_BASE UL(0xF0000000)
29#define SPEAR3XX_CPU_TMR_BASE UL(0xF0000000)
viresh kumara7e9c452010-04-01 12:30:19 +010030
31/* ICM3 - Basic Subsystem */
Shiraz Hashim981a95d32011-03-07 05:57:08 +010032#define SPEAR3XX_ICM3_SMI_CTRL_BASE UL(0xFC000000)
Viresh Kumarc5fa4fd2012-03-23 00:17:43 +053033#define VA_SPEAR3XX_ICM3_SMI_CTRL_BASE UL(0xFC000000)
Shiraz Hashim981a95d32011-03-07 05:57:08 +010034#define SPEAR3XX_ICM3_DMA_BASE UL(0xFC400000)
Shiraz Hashim981a95d32011-03-07 05:57:08 +010035#define SPEAR3XX_ICM3_SYS_CTRL_BASE UL(0xFCA00000)
Viresh Kumarc5fa4fd2012-03-23 00:17:43 +053036#define VA_SPEAR3XX_ICM3_SYS_CTRL_BASE (VA_SPEAR3XX_ICM3_SMI_CTRL_BASE | SPEAR3XX_ICM3_SYS_CTRL_BASE)
Shiraz Hashim981a95d32011-03-07 05:57:08 +010037#define SPEAR3XX_ICM3_MISC_REG_BASE UL(0xFCA80000)
Viresh Kumarc5fa4fd2012-03-23 00:17:43 +053038#define VA_SPEAR3XX_ICM3_MISC_REG_BASE (VA_SPEAR3XX_ICM3_SMI_CTRL_BASE | SPEAR3XX_ICM3_MISC_REG_BASE)
viresh kumara7e9c452010-04-01 12:30:19 +010039
40/* Debug uart for linux, will be used for debug and uncompress messages */
41#define SPEAR_DBG_UART_BASE SPEAR3XX_ICM1_UART_BASE
42#define VA_SPEAR_DBG_UART_BASE VA_SPEAR3XX_ICM1_UART_BASE
43
44/* Sysctl base for spear platform */
45#define SPEAR_SYS_CTRL_BASE SPEAR3XX_ICM3_SYS_CTRL_BASE
46#define VA_SPEAR_SYS_CTRL_BASE VA_SPEAR3XX_ICM3_SYS_CTRL_BASE
47
48#endif /* __MACH_SPEAR3XX_H */