Merge remote-tracking branch 'moduleh/module.h-split'
[linux-2.6/next.git] / arch / arm / plat-samsung / dev-adc.c
blob16b0f94393136b026f45bf3bf967afee74df7154
1 /* linux/arch/arm/plat-samsung/dev-adc.c
3 * Copyright 2010 Maurus Cuelenaere
5 * S3C64xx series device definition for ADC device
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #include <linux/kernel.h>
13 #include <linux/string.h>
14 #include <linux/platform_device.h>
16 #include <mach/irqs.h>
17 #include <mach/map.h>
19 #include <asm/sizes.h>
21 #include <plat/adc.h>
22 #include <plat/devs.h>
23 #include <plat/cpu.h>
25 static struct resource s3c_adc_resource[] = {
26 [0] = {
27 .start = SAMSUNG_PA_ADC,
28 .end = SAMSUNG_PA_ADC + SZ_256 - 1,
29 .flags = IORESOURCE_MEM,
31 [1] = {
32 .start = IRQ_TC,
33 .end = IRQ_TC,
34 .flags = IORESOURCE_IRQ,
36 [2] = {
37 .start = IRQ_ADC,
38 .end = IRQ_ADC,
39 .flags = IORESOURCE_IRQ,
43 struct platform_device s3c_device_adc = {
44 .name = "samsung-adc",
45 .id = -1,
46 .num_resources = ARRAY_SIZE(s3c_adc_resource),
47 .resource = s3c_adc_resource,