2008-02-05 00:34:58 +08:00
|
|
|
/*
|
2008-08-05 23:14:15 +08:00
|
|
|
* arch/arm/mach-realview/include/mach/board-eb.h
|
2008-02-05 00:34:58 +08:00
|
|
|
*
|
|
|
|
* Copyright (C) 2007 ARM Limited
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
* MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_BOARD_EB_H
|
|
|
|
#define __ASM_ARCH_BOARD_EB_H
|
|
|
|
|
2008-08-05 23:14:15 +08:00
|
|
|
#include <mach/platform.h>
|
2008-02-05 00:34:58 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* RealView EB + ARM11MPCore peripheral addresses
|
|
|
|
*/
|
2008-04-19 05:43:11 +08:00
|
|
|
#define REALVIEW_EB_UART0_BASE 0x10009000 /* UART 0 */
|
|
|
|
#define REALVIEW_EB_UART1_BASE 0x1000A000 /* UART 1 */
|
|
|
|
#define REALVIEW_EB_UART2_BASE 0x1000B000 /* UART 2 */
|
|
|
|
#define REALVIEW_EB_UART3_BASE 0x1000C000 /* UART 3 */
|
2008-04-19 05:43:11 +08:00
|
|
|
#define REALVIEW_EB_SSP_BASE 0x1000D000 /* Synchronous Serial Port */
|
|
|
|
#define REALVIEW_EB_WATCHDOG_BASE 0x10010000 /* watchdog interface */
|
2008-04-19 05:43:11 +08:00
|
|
|
#define REALVIEW_EB_TIMER0_1_BASE 0x10011000 /* Timer 0 and 1 */
|
|
|
|
#define REALVIEW_EB_TIMER2_3_BASE 0x10012000 /* Timer 2 and 3 */
|
2008-04-19 05:43:11 +08:00
|
|
|
#define REALVIEW_EB_GPIO0_BASE 0x10013000 /* GPIO port 0 */
|
|
|
|
#define REALVIEW_EB_RTC_BASE 0x10017000 /* Real Time Clock */
|
|
|
|
#define REALVIEW_EB_CLCD_BASE 0x10020000 /* CLCD */
|
2008-04-19 05:43:09 +08:00
|
|
|
#define REALVIEW_EB_GIC_CPU_BASE 0x10040000 /* Generic interrupt controller CPU interface */
|
|
|
|
#define REALVIEW_EB_GIC_DIST_BASE 0x10041000 /* Generic interrupt controller distributor */
|
2008-04-19 05:43:11 +08:00
|
|
|
#define REALVIEW_EB_SMC_BASE 0x10080000 /* Static memory controller */
|
2008-04-19 05:43:09 +08:00
|
|
|
|
2008-04-19 05:43:10 +08:00
|
|
|
#define REALVIEW_EB_FLASH_BASE 0x40000000
|
|
|
|
#define REALVIEW_EB_FLASH_SIZE SZ_64M
|
2008-04-19 05:43:11 +08:00
|
|
|
#define REALVIEW_EB_ETH_BASE 0x4E000000 /* Ethernet */
|
|
|
|
#define REALVIEW_EB_USB_BASE 0x4F000000 /* USB */
|
2008-04-19 05:43:10 +08:00
|
|
|
|
2008-02-05 00:47:04 +08:00
|
|
|
#ifdef CONFIG_REALVIEW_EB_ARM11MP_REVB
|
2008-02-05 00:34:58 +08:00
|
|
|
#define REALVIEW_EB11MP_SCU_BASE 0x10100000 /* SCU registers */
|
|
|
|
#define REALVIEW_EB11MP_GIC_CPU_BASE 0x10100100 /* Generic interrupt controller CPU interface */
|
2008-12-01 22:54:57 +08:00
|
|
|
#define REALVIEW_EB11MP_TWD_BASE 0x10100600
|
2008-02-05 00:34:58 +08:00
|
|
|
#define REALVIEW_EB11MP_GIC_DIST_BASE 0x10101000 /* Generic interrupt controller distributor */
|
|
|
|
#define REALVIEW_EB11MP_L220_BASE 0x10102000 /* L220 registers */
|
|
|
|
#define REALVIEW_EB11MP_SYS_PLD_CTRL1 0xD8 /* Register offset for MPCore sysctl */
|
|
|
|
#else
|
|
|
|
#define REALVIEW_EB11MP_SCU_BASE 0x1F000000 /* SCU registers */
|
|
|
|
#define REALVIEW_EB11MP_GIC_CPU_BASE 0x1F000100 /* Generic interrupt controller CPU interface */
|
2008-12-01 22:54:57 +08:00
|
|
|
#define REALVIEW_EB11MP_TWD_BASE 0x1F000600
|
2008-02-05 00:34:58 +08:00
|
|
|
#define REALVIEW_EB11MP_GIC_DIST_BASE 0x1F001000 /* Generic interrupt controller distributor */
|
|
|
|
#define REALVIEW_EB11MP_L220_BASE 0x1F002000 /* L220 registers */
|
|
|
|
#define REALVIEW_EB11MP_SYS_PLD_CTRL1 0x74 /* Register offset for MPCore sysctl */
|
|
|
|
#endif
|
|
|
|
|
2008-02-05 00:39:00 +08:00
|
|
|
/*
|
|
|
|
* Core tile identification (REALVIEW_SYS_PROCID)
|
|
|
|
*/
|
|
|
|
#define REALVIEW_EB_PROC_MASK 0xFF000000
|
|
|
|
#define REALVIEW_EB_PROC_ARM7TDMI 0x00000000
|
|
|
|
#define REALVIEW_EB_PROC_ARM9 0x02000000
|
|
|
|
#define REALVIEW_EB_PROC_ARM11 0x04000000
|
|
|
|
#define REALVIEW_EB_PROC_ARM11MP 0x06000000
|
2008-12-01 22:54:56 +08:00
|
|
|
#define REALVIEW_EB_PROC_A9MP 0x0C000000
|
2008-02-05 00:39:00 +08:00
|
|
|
|
|
|
|
#define check_eb_proc(proc_type) \
|
|
|
|
((readl(__io_address(REALVIEW_SYS_PROCID)) & REALVIEW_EB_PROC_MASK) \
|
|
|
|
== proc_type)
|
|
|
|
|
2008-02-05 00:47:04 +08:00
|
|
|
#ifdef CONFIG_REALVIEW_EB_ARM11MP
|
2008-02-05 00:39:00 +08:00
|
|
|
#define core_tile_eb11mp() check_eb_proc(REALVIEW_EB_PROC_ARM11MP)
|
|
|
|
#else
|
|
|
|
#define core_tile_eb11mp() 0
|
|
|
|
#endif
|
|
|
|
|
2008-12-01 22:54:56 +08:00
|
|
|
#ifdef CONFIG_REALVIEW_EB_A9MP
|
|
|
|
#define core_tile_a9mp() check_eb_proc(REALVIEW_EB_PROC_A9MP)
|
|
|
|
#else
|
|
|
|
#define core_tile_a9mp() 0
|
|
|
|
#endif
|
|
|
|
|
2008-12-01 22:54:58 +08:00
|
|
|
#define machine_is_realview_eb_mp() \
|
|
|
|
(machine_is_realview_eb() && (core_tile_eb11mp() || core_tile_a9mp()))
|
|
|
|
|
2008-02-05 00:34:58 +08:00
|
|
|
#endif /* __ASM_ARCH_BOARD_EB_H */
|