2 * MCF5274/5 Internal Memory Map
4 * Copyright (c) 2005 Arthur Shipkowski <art@videon-central.com>
5 * Based on work Copyright (c) 2003 Josef Baumgartner
6 * <josef.baumgartner@telex.de>
8 * See file CREDITS for list of people who contributed to this
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27 #ifndef __IMMAP_5275__
28 #define __IMMAP_5275__
30 #define MMAP_SCM (CONFIG_SYS_MBAR + 0x00000000)
31 #define MMAP_SDRAM (CONFIG_SYS_MBAR + 0x00000040)
32 #define MMAP_FBCS (CONFIG_SYS_MBAR + 0x00000080)
33 #define MMAP_DMA0 (CONFIG_SYS_MBAR + 0x00000100)
34 #define MMAP_DMA1 (CONFIG_SYS_MBAR + 0x00000110)
35 #define MMAP_DMA2 (CONFIG_SYS_MBAR + 0x00000120)
36 #define MMAP_DMA3 (CONFIG_SYS_MBAR + 0x00000130)
37 #define MMAP_UART0 (CONFIG_SYS_MBAR + 0x00000200)
38 #define MMAP_UART1 (CONFIG_SYS_MBAR + 0x00000240)
39 #define MMAP_UART2 (CONFIG_SYS_MBAR + 0x00000280)
40 #define MMAP_I2C (CONFIG_SYS_MBAR + 0x00000300)
41 #define MMAP_QSPI (CONFIG_SYS_MBAR + 0x00000340)
42 #define MMAP_DTMR0 (CONFIG_SYS_MBAR + 0x00000400)
43 #define MMAP_DTMR1 (CONFIG_SYS_MBAR + 0x00000440)
44 #define MMAP_DTMR2 (CONFIG_SYS_MBAR + 0x00000480)
45 #define MMAP_DTMR3 (CONFIG_SYS_MBAR + 0x000004C0)
46 #define MMAP_INTC0 (CONFIG_SYS_MBAR + 0x00000C00)
47 #define MMAP_INTC1 (CONFIG_SYS_MBAR + 0x00000D00)
48 #define MMAP_INTCACK (CONFIG_SYS_MBAR + 0x00000F00)
49 #define MMAP_FEC0 (CONFIG_SYS_MBAR + 0x00001000)
50 #define MMAP_FEC0FIFO (CONFIG_SYS_MBAR + 0x00001400)
51 #define MMAP_FEC1 (CONFIG_SYS_MBAR + 0x00001800)
52 #define MMAP_FEC1FIFO (CONFIG_SYS_MBAR + 0x00001C00)
53 #define MMAP_GPIO (CONFIG_SYS_MBAR + 0x00100000)
54 #define MMAP_RCM (CONFIG_SYS_MBAR + 0x00110000)
55 #define MMAP_CCM (CONFIG_SYS_MBAR + 0x00110004)
56 #define MMAP_PLL (CONFIG_SYS_MBAR + 0x00120000)
57 #define MMAP_EPORT (CONFIG_SYS_MBAR + 0x00130000)
58 #define MMAP_WDOG (CONFIG_SYS_MBAR + 0x00140000)
59 #define MMAP_PIT0 (CONFIG_SYS_MBAR + 0x00150000)
60 #define MMAP_PIT1 (CONFIG_SYS_MBAR + 0x00160000)
61 #define MMAP_PIT2 (CONFIG_SYS_MBAR + 0x00170000)
62 #define MMAP_PIT3 (CONFIG_SYS_MBAR + 0x00180000)
63 #define MMAP_MDHA (CONFIG_SYS_MBAR + 0x00190000)
64 #define MMAP_RNG (CONFIG_SYS_MBAR + 0x001A0000)
65 #define MMAP_SKHA (CONFIG_SYS_MBAR + 0x001B0000)
66 #define MMAP_USB (CONFIG_SYS_MBAR + 0x001C0000)
67 #define MMAP_PWM0 (CONFIG_SYS_MBAR + 0x001D0000)
69 #include <asm/coldfire/eport.h>
70 #include <asm/coldfire/flexbus.h>
71 #include <asm/coldfire/intctrl.h>
72 #include <asm/coldfire/mdha.h>
73 #include <asm/coldfire/pwm.h>
74 #include <asm/coldfire/qspi.h>
75 #include <asm/coldfire/rng.h>
76 #include <asm/coldfire/skha.h>
78 /* System configuration registers
80 typedef struct sys_ctrl {
108 /* SDRAM controller registers, offset: 0x040
110 typedef struct sdram_ctrl {
121 /* DMA module registers, offset 0x100
123 typedef struct dma_ctrl {
130 /* GPIO port registers
132 typedef struct gpio_ctrl {
133 /* Port Output Data Registers */
156 /* Port Data Direction Registers */
179 /* Port Pin Data/Set Registers */
202 /* Port Clear Output Data Registers */
225 /* Pin Assignment Registers */
243 /* Watchdog registers
245 typedef struct wdog_ctrl {
253 /* USB module registers
355 /* PLL module registers
357 typedef struct pll_ctrl {
367 #endif /* __IMMAP_5275__ */