diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-12 05:49:34 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-19 15:54:35 -0500 |
commit | fed3d35b06bf3f6a3383c2637d054823c563200b (patch) | |
tree | a787cffeb9f3b82d5be819a69e7eaec53e152e0b /arch/arm/mach-mx3 | |
parent | 6a697e3d310d79ea0e385975c57084ce22b04b36 (diff) |
ARM: mx3: dynamically allocate mxc_rnga devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r-- | arch/arm/mach-mx3/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 18 | ||||
-rw-r--r-- | arch/arm/mach-mx3/devices.h | 1 |
3 files changed, 1 insertions, 20 deletions
diff --git a/arch/arm/mach-mx3/Kconfig b/arch/arm/mach-mx3/Kconfig index 46fffa5b0697..17ae7d365729 100644 --- a/arch/arm/mach-mx3/Kconfig +++ b/arch/arm/mach-mx3/Kconfig | |||
@@ -12,7 +12,7 @@ config ARCH_MX35 | |||
12 | 12 | ||
13 | config SOC_IMX31 | 13 | config SOC_IMX31 |
14 | bool | 14 | bool |
15 | select ARCH_HAS_RNGA | 15 | select IMX_HAVE_PLATFORM_MXC_RNGA |
16 | select ARCH_MXC_AUDMUX_V2 | 16 | select ARCH_MXC_AUDMUX_V2 |
17 | select ARCH_MX31 | 17 | select ARCH_MX31 |
18 | 18 | ||
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index 079b98e319eb..202c06c552b2 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -29,23 +29,6 @@ | |||
29 | 29 | ||
30 | #include "devices.h" | 30 | #include "devices.h" |
31 | 31 | ||
32 | #ifdef CONFIG_ARCH_MX31 | ||
33 | static struct resource rnga_resources[] = { | ||
34 | { | ||
35 | .start = MX3x_RNGA_BASE_ADDR, | ||
36 | .end = MX3x_RNGA_BASE_ADDR + 0x28, | ||
37 | .flags = IORESOURCE_MEM, | ||
38 | }, | ||
39 | }; | ||
40 | |||
41 | struct platform_device mxc_rnga_device = { | ||
42 | .name = "mxc_rnga", | ||
43 | .id = -1, | ||
44 | .num_resources = 1, | ||
45 | .resource = rnga_resources, | ||
46 | }; | ||
47 | #endif /* CONFIG_ARCH_MX31 */ | ||
48 | |||
49 | /* i.MX31 Image Processing Unit */ | 32 | /* i.MX31 Image Processing Unit */ |
50 | 33 | ||
51 | /* The resource order is important! */ | 34 | /* The resource order is important! */ |
@@ -262,7 +245,6 @@ static int __init mx3_devices_init(void) | |||
262 | if (cpu_is_mx31()) { | 245 | if (cpu_is_mx31()) { |
263 | imx_wdt_resources[0].start = MX31_WDOG_BASE_ADDR; | 246 | imx_wdt_resources[0].start = MX31_WDOG_BASE_ADDR; |
264 | imx_wdt_resources[0].end = MX31_WDOG_BASE_ADDR + 0x3fff; | 247 | imx_wdt_resources[0].end = MX31_WDOG_BASE_ADDR + 0x3fff; |
265 | mxc_register_device(&mxc_rnga_device, NULL); | ||
266 | } | 248 | } |
267 | #endif | 249 | #endif |
268 | #if defined(CONFIG_ARCH_MX35) | 250 | #if defined(CONFIG_ARCH_MX35) |
diff --git a/arch/arm/mach-mx3/devices.h b/arch/arm/mach-mx3/devices.h index 20204743e8f8..d472c459238c 100644 --- a/arch/arm/mach-mx3/devices.h +++ b/arch/arm/mach-mx3/devices.h | |||
@@ -5,7 +5,6 @@ extern struct platform_device mxc_otg_udc_device; | |||
5 | extern struct platform_device mxc_otg_host; | 5 | extern struct platform_device mxc_otg_host; |
6 | extern struct platform_device mxc_usbh1; | 6 | extern struct platform_device mxc_usbh1; |
7 | extern struct platform_device mxc_usbh2; | 7 | extern struct platform_device mxc_usbh2; |
8 | extern struct platform_device mxc_rnga_device; | ||
9 | extern struct platform_device imx_wdt_device0; | 8 | extern struct platform_device imx_wdt_device0; |
10 | extern struct platform_device imx_rtc_device0; | 9 | extern struct platform_device imx_rtc_device0; |
11 | extern struct platform_device imx_kpp_device; | 10 | extern struct platform_device imx_kpp_device; |