aboutsummaryrefslogtreecommitdiff
path: root/arch/m68k/include/asm/immap_5307.h
blob: c839f4616f53a8cef29ed7b37545c0d218ef2d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
 * (C) Copyright 2014  Angelo Dureghello <angelo@sysam.it>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 *
 */

#ifndef __IMMAP_5307__
#define __IMMAP_5307__

#define MMAP_SIM	(CONFIG_SYS_MBAR + 0x00000000)
#define MMAP_INTC	(CONFIG_SYS_MBAR + 0x00000040)
#define MMAP_CSM	(CONFIG_SYS_MBAR + 0x00000080)
#define MMAP_DRAMC	(CONFIG_SYS_MBAR + 0x00000100)
#define MMAP_DTMR0	(CONFIG_SYS_MBAR + 0x00000140)
#define MMAP_DTMR1	(CONFIG_SYS_MBAR + 0x00000180)
#define MMAP_UART0	(CONFIG_SYS_MBAR + 0x000001C0)
#define MMAP_UART1	(CONFIG_SYS_MBAR + 0x00000200)
#define MMAP_GPIO	(CONFIG_SYS_MBAR + 0x00000244)

typedef struct sim {
	u8  rsr;
	u8  sypcr;
	u8  swivr;
	u8  swsr;
	u16 par;
	u8  irqpar;
	u8  res1;
	u8  pllcr;
	u8  res2;
	u16 res3;
	u8  mpark;
	u8  res4;
	u16 res5;
	u32 res6;
} sim_t;

typedef struct intctrl {
	u32 ipr;
	u32 imr;
	u16 res7;
	u8  res8;
	u8  avr;
	u8  icr0;
	u8  icr1;
	u8  icr2;
	u8  icr3;
	u8  icr4;
	u8  icr5;
	u8  icr6;
	u8  icr7;
	u8  icr8;
	u8  icr9;
	u16 res9;
} intctrl_t;

typedef struct csm {
	u16 csar0;      /* Chip-select Address */
	u16 res1;
	u32 csmr0;      /* Chip-select Mask */
	u16 res2;
	u16 cscr0;      /* Chip-select Control */
	u16 csar1;
	u16 res3;
	u32 csmr1;
	u16 res4;
	u16 cscr1;
	u16 csar2;
	u16 res5;
	u32 csmr2;
	u16 res6;
	u16 cscr2;
	u16 csar3;
	u16 res7;
	u32 csmr3;
	u16 res8;
	u16 cscr3;
	u16 csar4;
	u16 res9;
	u32 csmr4;
	u16 res10;
	u16 cscr4;
	u16 csar5;
	u16 res11;
	u32 csmr5;
	u16 res12;
	u16 cscr5;
	u16 csar6;
	u16 res13;
	u32 csmr6;
	u16 res14;
	u16 cscr6;
	u16 csar7;
	u16 res15;
	u32 csmr7;
	u16 res16;
	u16 cscr7;
} csm_t;

typedef struct sdramctrl {
	u16 dcr;
	u16 res1;
	u32 res2;
	u32 dacr0;
	u32 dmr0;
	u32 dacr1;
	u32 dmr1;
} sdramctrl_t;

typedef struct gpio {
	u16 paddr;
	u16 res1;
	u16 padat;
	u16 res2;
} gpio_t;

#endif				/* __IMMAP_5307__ */