2 * MCF5274/5 Internal Memory Map
5 * Based on work Copyright (c) 2003 Josef Baumgartner
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 (CFG_MBAR + 0x00000000)
31 #define MMAP_SDRAM (CFG_MBAR + 0x00000040)
32 #define MMAP_FBCS (CFG_MBAR + 0x00000080)
33 #define MMAP_DMA0 (CFG_MBAR + 0x00000100)
34 #define MMAP_DMA1 (CFG_MBAR + 0x00000110)
35 #define MMAP_DMA2 (CFG_MBAR + 0x00000120)
36 #define MMAP_DMA3 (CFG_MBAR + 0x00000130)
37 #define MMAP_UART0 (CFG_MBAR + 0x00000200)
38 #define MMAP_UART1 (CFG_MBAR + 0x00000240)
39 #define MMAP_UART2 (CFG_MBAR + 0x00000280)
40 #define MMAP_I2C (CFG_MBAR + 0x00000300)
41 #define MMAP_QSPI (CFG_MBAR + 0x00000340)
42 #define MMAP_DTMR0 (CFG_MBAR + 0x00000400)
43 #define MMAP_DTMR1 (CFG_MBAR + 0x00000440)
44 #define MMAP_DTMR2 (CFG_MBAR + 0x00000480)
45 #define MMAP_DTMR3 (CFG_MBAR + 0x000004C0)
46 #define MMAP_INTC0 (CFG_MBAR + 0x00000C00)
47 #define MMAP_INTC1 (CFG_MBAR + 0x00000D00)
48 #define MMAP_INTCACK (CFG_MBAR + 0x00000F00)
49 #define MMAP_FEC0 (CFG_MBAR + 0x00001000)
50 #define MMAP_FEC0FIFO (CFG_MBAR + 0x00001400)
51 #define MMAP_FEC1 (CFG_MBAR + 0x00001800)
52 #define MMAP_FEC1FIFO (CFG_MBAR + 0x00001C00)
53 #define MMAP_GPIO (CFG_MBAR + 0x00100000)
54 #define MMAP_RCM (CFG_MBAR + 0x00110000)
55 #define MMAP_CCM (CFG_MBAR + 0x00110004)
56 #define MMAP_PLL (CFG_MBAR + 0x00120000)
57 #define MMAP_EPORT (CFG_MBAR + 0x00130000)
58 #define MMAP_WDOG (CFG_MBAR + 0x00140000)
59 #define MMAP_PIT0 (CFG_MBAR + 0x00150000)
60 #define MMAP_PIT1 (CFG_MBAR + 0x00160000)
61 #define MMAP_PIT2 (CFG_MBAR + 0x00170000)
62 #define MMAP_PIT3 (CFG_MBAR + 0x00180000)
63 #define MMAP_MDHA (CFG_MBAR + 0x00190000)
64 #define MMAP_RNG (CFG_MBAR + 0x001A0000)
65 #define MMAP_SKHA (CFG_MBAR + 0x001B0000)
66 #define MMAP_USB (CFG_MBAR + 0x001C0000)
67 #define MMAP_PWM0 (CFG_MBAR + 0x001D0000)
69 /* System configuration registers
71 typedef struct sys_ctrl {
99 /* SDRAM controller registers, offset: 0x040
101 typedef struct sdram_ctrl {
112 /* Chip select module registers, offset: 0x080
114 typedef struct cs_ctlr {
157 /* DMA module registers, offset 0x100
159 typedef struct dma_ctrl {
166 /* QSPI module registers, offset 0x340
168 typedef struct qspi_ctrl {
183 /* Interrupt module registers, offset 0xc00
185 typedef struct int_ctrl {
195 u8 icr0[64]; /* No ICR0, done this way for readability */
215 /* GPIO port registers
217 typedef struct gpio_ctrl {
218 /* Port Output Data Registers */
241 /* Port Data Direction Registers */
264 /* Port Pin Data/Set Registers */
287 /* Port Clear Output Data Registers */
310 /* Pin Assignment Registers */
328 /* PWM module registers
330 typedef struct pwm_ctrl {
345 /* Watchdog registers
347 typedef struct wdog_ctrl {
355 /* USB module registers
457 /* PLL module registers
459 typedef struct pll_ctrl {
469 #endif /* __IMMAP_5275__ */