aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx25/devices.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-11 11:11:34 -0500
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-19 15:53:48 -0500
commitbb4c853ff18fe3b0e2aec45053c318479e0c55e3 (patch)
treefd5a90eeacaf73be2d121ff1c5d3a9db2cb5e80b /arch/arm/mach-mx25/devices.c
parent00871505dcf15418aebc402db9f124dd2738fa2d (diff)
ARM: mx25: dynamically allocate mx2-camera devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25/devices.c')
-rw-r--r--arch/arm/mach-mx25/devices.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c
deleted file mode 100644
index 12f31ef43e9f..000000000000
--- a/arch/arm/mach-mx25/devices.c
+++ /dev/null
@@ -1,45 +0,0 @@
1/*
2 * Copyright 2009 Sascha Hauer, <kernel@pengutronix.de>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
17 */
18
19#include <linux/platform_device.h>
20#include <linux/dma-mapping.h>
21#include <linux/gpio.h>
22#include <mach/mx25.h>
23#include <mach/irqs.h>
24
25static struct resource mx25_csi_resources[] = {
26 {
27 .start = MX25_CSI_BASE_ADDR,
28 .end = MX25_CSI_BASE_ADDR + 0xfff,
29 .flags = IORESOURCE_MEM,
30 },
31 {
32 .start = MX25_INT_CSI,
33 .flags = IORESOURCE_IRQ
34 },
35};
36
37struct platform_device mx25_csi_device = {
38 .name = "mx2-camera",
39 .id = 0,
40 .num_resources = ARRAY_SIZE(mx25_csi_resources),
41 .resource = mx25_csi_resources,
42 .dev = {
43 .coherent_dma_mask = 0xffffffff,
44 },
45};