Go to the documentation of this file.
21 #ifndef __ASM_ARCH_BOARD_EB_H
22 #define __ASM_ARCH_BOARD_EB_H
24 #include <mach/platform.h>
29 #define REALVIEW_EB_UART0_BASE 0x10009000
30 #define REALVIEW_EB_UART1_BASE 0x1000A000
31 #define REALVIEW_EB_UART2_BASE 0x1000B000
32 #define REALVIEW_EB_UART3_BASE 0x1000C000
33 #define REALVIEW_EB_SSP_BASE 0x1000D000
34 #define REALVIEW_EB_WATCHDOG_BASE 0x10010000
35 #define REALVIEW_EB_TIMER0_1_BASE 0x10011000
36 #define REALVIEW_EB_TIMER2_3_BASE 0x10012000
37 #define REALVIEW_EB_GPIO0_BASE 0x10013000
38 #define REALVIEW_EB_RTC_BASE 0x10017000
39 #define REALVIEW_EB_CLCD_BASE 0x10020000
40 #define REALVIEW_EB_GIC_CPU_BASE 0x10040000
41 #define REALVIEW_EB_GIC_DIST_BASE 0x10041000
42 #define REALVIEW_EB_SMC_BASE 0x10080000
44 #define REALVIEW_EB_FLASH_BASE 0x40000000
45 #define REALVIEW_EB_FLASH_SIZE SZ_64M
46 #define REALVIEW_EB_ETH_BASE 0x4E000000
47 #define REALVIEW_EB_USB_BASE 0x4F000000
49 #ifdef CONFIG_REALVIEW_EB_ARM11MP_REVB
50 #define REALVIEW_EB11MP_PRIV_MEM_BASE 0x1F000000
51 #define REALVIEW_EB11MP_L220_BASE 0x10102000
52 #define REALVIEW_EB11MP_SYS_PLD_CTRL1 0xD8
54 #define REALVIEW_EB11MP_PRIV_MEM_BASE 0x1F000000
55 #define REALVIEW_EB11MP_L220_BASE 0x1F002000
56 #define REALVIEW_EB11MP_SYS_PLD_CTRL1 0x74
59 #define REALVIEW_EB11MP_PRIV_MEM_SIZE SZ_8K
60 #define REALVIEW_EB11MP_PRIV_MEM_OFF(x) (REALVIEW_EB11MP_PRIV_MEM_BASE + (x))
62 #define REALVIEW_EB11MP_SCU_BASE REALVIEW_EB11MP_PRIV_MEM_OFF(0)
63 #define REALVIEW_EB11MP_GIC_CPU_BASE REALVIEW_EB11MP_PRIV_MEM_OFF(0x0100)
64 #define REALVIEW_EB11MP_TWD_BASE REALVIEW_EB11MP_PRIV_MEM_OFF(0x0600)
65 #define REALVIEW_EB11MP_GIC_DIST_BASE REALVIEW_EB11MP_PRIV_MEM_OFF(0x1000)
70 #define REALVIEW_EB_PROC_MASK 0xFF000000
71 #define REALVIEW_EB_PROC_ARM7TDMI 0x00000000
72 #define REALVIEW_EB_PROC_ARM9 0x02000000
73 #define REALVIEW_EB_PROC_ARM11 0x04000000
74 #define REALVIEW_EB_PROC_ARM11MP 0x06000000
75 #define REALVIEW_EB_PROC_A9MP 0x0C000000
77 #define check_eb_proc(proc_type) \
78 ((readl(__io_address(REALVIEW_SYS_PROCID)) & REALVIEW_EB_PROC_MASK) \
81 #ifdef CONFIG_REALVIEW_EB_ARM11MP
82 #define core_tile_eb11mp() check_eb_proc(REALVIEW_EB_PROC_ARM11MP)
84 #define core_tile_eb11mp() 0
87 #ifdef CONFIG_REALVIEW_EB_A9MP
88 #define core_tile_a9mp() check_eb_proc(REALVIEW_EB_PROC_A9MP)
90 #define core_tile_a9mp() 0
93 #define machine_is_realview_eb_mp() \
94 (machine_is_realview_eb() && (core_tile_eb11mp() || core_tile_a9mp()))