Commit | Line | Data |
---|---|---|
13904fba KK |
1 | /* linux/arch/arm/plat-s5p/dev-onenand.c |
2 | * | |
3 | * Copyright 2010 Samsung Electronics Co., Ltd. | |
4 | * http://www.samsung.com | |
999304be MS |
5 | * |
6 | * Copyright (c) 2008-2010 Samsung Electronics | |
7 | * Kyungmin Park <kyungmin.park@samsung.com> | |
8 | * | |
13904fba | 9 | * S5P series device definition for OneNAND devices |
999304be MS |
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> | |
999304be MS |
18 | |
19 | #include <mach/irqs.h> | |
20 | #include <mach/map.h> | |
21 | ||
13904fba | 22 | static struct resource s5p_onenand_resources[] = { |
999304be | 23 | [0] = { |
13904fba KK |
24 | .start = S5P_PA_ONENAND, |
25 | .end = S5P_PA_ONENAND + SZ_128K - 1, | |
999304be MS |
26 | .flags = IORESOURCE_MEM, |
27 | }, | |
28 | [1] = { | |
13904fba KK |
29 | .start = S5P_PA_ONENAND_DMA, |
30 | .end = S5P_PA_ONENAND_DMA + SZ_8K - 1, | |
999304be MS |
31 | .flags = IORESOURCE_MEM, |
32 | }, | |
b42faa12 KP |
33 | [2] = { |
34 | .start = IRQ_ONENAND_AUDI, | |
35 | .end = IRQ_ONENAND_AUDI, | |
36 | .flags = IORESOURCE_IRQ, | |
37 | }, | |
999304be MS |
38 | }; |
39 | ||
13904fba | 40 | struct platform_device s5p_device_onenand = { |
999304be MS |
41 | .name = "s5pc110-onenand", |
42 | .id = -1, | |
13904fba KK |
43 | .num_resources = ARRAY_SIZE(s5p_onenand_resources), |
44 | .resource = s5p_onenand_resources, | |
999304be | 45 | }; |