Path: blob/master/arch/arm/mach-realview/include/mach/board-eb.h
10820 views
/*1* arch/arm/mach-realview/include/mach/board-eb.h2*3* Copyright (C) 2007 ARM Limited4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14* You should have received a copy of the GNU General Public License15* along with this program; if not, write to the Free Software16* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,17* MA 02110-1301, USA.18*/1920#ifndef __ASM_ARCH_BOARD_EB_H21#define __ASM_ARCH_BOARD_EB_H2223#include <mach/platform.h>2425/*26* RealView EB + ARM11MPCore peripheral addresses27*/28#define REALVIEW_EB_UART0_BASE 0x10009000 /* UART 0 */29#define REALVIEW_EB_UART1_BASE 0x1000A000 /* UART 1 */30#define REALVIEW_EB_UART2_BASE 0x1000B000 /* UART 2 */31#define REALVIEW_EB_UART3_BASE 0x1000C000 /* UART 3 */32#define REALVIEW_EB_SSP_BASE 0x1000D000 /* Synchronous Serial Port */33#define REALVIEW_EB_WATCHDOG_BASE 0x10010000 /* watchdog interface */34#define REALVIEW_EB_TIMER0_1_BASE 0x10011000 /* Timer 0 and 1 */35#define REALVIEW_EB_TIMER2_3_BASE 0x10012000 /* Timer 2 and 3 */36#define REALVIEW_EB_GPIO0_BASE 0x10013000 /* GPIO port 0 */37#define REALVIEW_EB_RTC_BASE 0x10017000 /* Real Time Clock */38#define REALVIEW_EB_CLCD_BASE 0x10020000 /* CLCD */39#define REALVIEW_EB_GIC_CPU_BASE 0x10040000 /* Generic interrupt controller CPU interface */40#define REALVIEW_EB_GIC_DIST_BASE 0x10041000 /* Generic interrupt controller distributor */41#define REALVIEW_EB_SMC_BASE 0x10080000 /* Static memory controller */4243#define REALVIEW_EB_FLASH_BASE 0x4000000044#define REALVIEW_EB_FLASH_SIZE SZ_64M45#define REALVIEW_EB_ETH_BASE 0x4E000000 /* Ethernet */46#define REALVIEW_EB_USB_BASE 0x4F000000 /* USB */4748#ifdef CONFIG_REALVIEW_EB_ARM11MP_REVB49#define REALVIEW_EB11MP_SCU_BASE 0x10100000 /* SCU registers */50#define REALVIEW_EB11MP_GIC_CPU_BASE 0x10100100 /* Generic interrupt controller CPU interface */51#define REALVIEW_EB11MP_TWD_BASE 0x1010060052#define REALVIEW_EB11MP_GIC_DIST_BASE 0x10101000 /* Generic interrupt controller distributor */53#define REALVIEW_EB11MP_L220_BASE 0x10102000 /* L220 registers */54#define REALVIEW_EB11MP_SYS_PLD_CTRL1 0xD8 /* Register offset for MPCore sysctl */55#else56#define REALVIEW_EB11MP_SCU_BASE 0x1F000000 /* SCU registers */57#define REALVIEW_EB11MP_GIC_CPU_BASE 0x1F000100 /* Generic interrupt controller CPU interface */58#define REALVIEW_EB11MP_TWD_BASE 0x1F00060059#define REALVIEW_EB11MP_GIC_DIST_BASE 0x1F001000 /* Generic interrupt controller distributor */60#define REALVIEW_EB11MP_L220_BASE 0x1F002000 /* L220 registers */61#define REALVIEW_EB11MP_SYS_PLD_CTRL1 0x74 /* Register offset for MPCore sysctl */62#endif6364/*65* Core tile identification (REALVIEW_SYS_PROCID)66*/67#define REALVIEW_EB_PROC_MASK 0xFF00000068#define REALVIEW_EB_PROC_ARM7TDMI 0x0000000069#define REALVIEW_EB_PROC_ARM9 0x0200000070#define REALVIEW_EB_PROC_ARM11 0x0400000071#define REALVIEW_EB_PROC_ARM11MP 0x0600000072#define REALVIEW_EB_PROC_A9MP 0x0C0000007374#define check_eb_proc(proc_type) \75((readl(__io_address(REALVIEW_SYS_PROCID)) & REALVIEW_EB_PROC_MASK) \76== proc_type)7778#ifdef CONFIG_REALVIEW_EB_ARM11MP79#define core_tile_eb11mp() check_eb_proc(REALVIEW_EB_PROC_ARM11MP)80#else81#define core_tile_eb11mp() 082#endif8384#ifdef CONFIG_REALVIEW_EB_A9MP85#define core_tile_a9mp() check_eb_proc(REALVIEW_EB_PROC_A9MP)86#else87#define core_tile_a9mp() 088#endif8990#define machine_is_realview_eb_mp() \91(machine_is_realview_eb() && (core_tile_eb11mp() || core_tile_a9mp()))9293#endif /* __ASM_ARCH_BOARD_EB_H */949596