diff options
Diffstat (limited to 'arch/arm/plat-s5p/dev-onenand.c')
-rw-r--r-- | arch/arm/plat-s5p/dev-onenand.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/plat-s5p/dev-onenand.c b/arch/arm/plat-s5p/dev-onenand.c new file mode 100644 index 00000000000..20336c8f247 --- /dev/null +++ b/arch/arm/plat-s5p/dev-onenand.c | |||
@@ -0,0 +1,45 @@ | |||
1 | /* linux/arch/arm/plat-s5p/dev-onenand.c | ||
2 | * | ||
3 | * Copyright 2010 Samsung Electronics Co., Ltd. | ||
4 | * http://www.samsung.com | ||
5 | * | ||
6 | * Copyright (c) 2008-2010 Samsung Electronics | ||
7 | * Kyungmin Park <kyungmin.park@samsung.com> | ||
8 | * | ||
9 | * S5P series device definition for OneNAND devices | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License version 2 as | ||
13 | * published by the Free Software Foundation. | ||
14 | */ | ||
15 | |||
16 | #include <linux/kernel.h> | ||
17 | #include <linux/platform_device.h> | ||
18 | |||
19 | #include <mach/irqs.h> | ||
20 | #include <mach/map.h> | ||
21 | |||
22 | static struct resource s5p_onenand_resources[] = { | ||
23 | [0] = { | ||
24 | .start = S5P_PA_ONENAND, | ||
25 | .end = S5P_PA_ONENAND + SZ_128K - 1, | ||
26 | .flags = IORESOURCE_MEM, | ||
27 | }, | ||
28 | [1] = { | ||
29 | .start = S5P_PA_ONENAND_DMA, | ||
30 | .end = S5P_PA_ONENAND_DMA + SZ_8K - 1, | ||
31 | .flags = IORESOURCE_MEM, | ||
32 | }, | ||
33 | [2] = { | ||
34 | .start = IRQ_ONENAND_AUDI, | ||
35 | .end = IRQ_ONENAND_AUDI, | ||
36 | .flags = IORESOURCE_IRQ, | ||
37 | }, | ||
38 | }; | ||
39 | |||
40 | struct platform_device s5p_device_onenand = { | ||
41 | .name = "s5pc110-onenand", | ||
42 | .id = -1, | ||
43 | .num_resources = ARRAY_SIZE(s5p_onenand_resources), | ||
44 | .resource = s5p_onenand_resources, | ||
45 | }; | ||