aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/samsung/mali/arch-ve-virtex6-m450-8/config.h
blob: eb5da507d133fbbe071e8f8aa2752e2d2d79931c (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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/*
 * Copyright (C) 2010, 2012 ARM Limited. All rights reserved.
 * 
 * This program is free software and is provided to you under the terms of the GNU General Public License version 2
 * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
 * 
 * A copy of the licence is included with the program, and can also be obtained from Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

#ifndef __ARCH_CONFIG_H__
#define __ARCH_CONFIG_H__

/* Configuration for the Versatile Express platform */

#define MALI_BASE_ADDRESS 0xFC040000

static _mali_osk_resource_t arch_configuration [] =
{
	/* PMU */
	{
                .type = PMU,
                .base = MALI_BASE_ADDRESS + 0x02000,
                .description = "MALI PMU"
        },
	/* GP cluster */
	{
		.type = MALI400L2,
		.base = MALI_BASE_ADDRESS + 0x10000,
		.description = "Mali-450 L2 cache for GP"
	},
	{
		.type = MALI400GP,
		.description = "Mali-450 GP",
		.base = MALI_BASE_ADDRESS,
		.irq = -1,
	},
	{
		.type = MMU,
		.base = MALI_BASE_ADDRESS + 0x3000,
		.irq = 70,
		.description = "Mali-450 MMU for GP",
	},

	/* PP0-3 cluster */
	{
		.type = MALI400L2,
		.base = MALI_BASE_ADDRESS + 0x1000,
		.description = "Mali-450 L2 cache for PP0-3"
	},
	{
		.type = MALI400PP,
		.base = MALI_BASE_ADDRESS + 0x8000,
		.irq = 70,
		.description = "Mali-450 PP0",
	},
	{
		.type = MMU,
		.base = MALI_BASE_ADDRESS + 0x4000,
		.irq = 70,
		.description = "Mali-450 MMU for PP0",
	},
	{
		.type = MALI400PP,
		.base = MALI_BASE_ADDRESS + 0xA000,
		.irq = 70,
		.description = "Mali-450 PP1",
	},
	{
		.type = MMU,
		.base = MALI_BASE_ADDRESS + 0x5000,
		.irq = 70,
		.description = "Mali-450 MMU for PP1",
	},
	{
		.type = MALI400PP,
		.base = MALI_BASE_ADDRESS + 0xC000,
		.irq = 70,
		.description = "Mali-450 PP2",
	},
	{
		.type = MMU,
		.base = MALI_BASE_ADDRESS + 0x6000,
		.irq = 70,
		.description = "Mali-450 MMU for PP2",
	},
	{
		.type = MALI400PP,
		.base = MALI_BASE_ADDRESS + 0xE000,
		.irq = 70,
		.description = "Mali-450 PP3",
	},
	{
		.type = MMU,
		.base = MALI_BASE_ADDRESS + 0x7000,
		.irq = 70,
		.description = "Mali-450 MMU for PP3",
	},

	/* PP4-7 cluster */
	{
		.type = MALI400L2,
		.base = MALI_BASE_ADDRESS + 0x11000,
		.description = "Mali-450 L2 cache for PP4-7"
	},
	{
		.type = MALI400PP,
		.base = MALI_BASE_ADDRESS + 0x28000,
		.irq = 70,
		.description = "Mali-450 PP4",
	},
	{
		.type = MMU,
		.base = MALI_BASE_ADDRESS + 0x1C000,
		.irq = 70,
		.description = "Mali-450 MMU for PP4",
	},
	{
		.type = MALI400PP,
		.base = MALI_BASE_ADDRESS + 0x2A000,
		.irq = 70,
		.description = "Mali-450 PP5",
	},
	{
		.type = MMU,
		.base = MALI_BASE_ADDRESS + 0x1D000,
		.irq = 70,
		.description = "Mali-450 MMU for PP5",
	},
	{
		.type = MALI400PP,
		.base = MALI_BASE_ADDRESS + 0x2C000,
		.irq = 70,
		.description = "Mali-450 PP6",
	},
	{
		.type = MMU,
		.base = MALI_BASE_ADDRESS + 0x1E000,
		.irq = 70,
		.description = "Mali-450 MMU for PP6",
	},
	{
		.type = MALI400PP,
		.base = MALI_BASE_ADDRESS + 0x2E000,
		.irq = 70,
		.description = "Mali-450 PP7",
	},
	{
		.type = MMU,
		.base = MALI_BASE_ADDRESS + 0x1F000,
		.irq = 70,
		.description = "Mali-450 MMU for PP7",
	},

	/* Memory */
	{
		.type = OS_MEMORY,
		.description = "Mali OS memory",
		.cpu_usage_adjust = 0,
		.alloc_order = 0, /* Highest preference for this memory */
		.base = 0x0,
		.size = 256 * 1024 * 1024,
		.flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_READABLE | _MALI_PP_WRITEABLE |_MALI_GP_READABLE | _MALI_GP_WRITEABLE
	},
	{
		.type = MEM_VALIDATION,
		.description = "Framebuffer",
		.base = 0xe0000000,
		.size = 0x01000000,
		.flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_WRITEABLE | _MALI_PP_READABLE
	},
};

#endif /* __ARCH_CONFIG_H__ */