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>
20 #include <plat/devs.h>
23 static struct resource s3c_adc_resource[] = {
25 .start = SAMSUNG_PA_ADC,
26 .end = SAMSUNG_PA_ADC + SZ_256 - 1,
27 .flags = IORESOURCE_MEM,
32 .flags = IORESOURCE_IRQ,
37 .flags = IORESOURCE_IRQ,
41 struct platform_device s3c_device_adc = {
42 .name = "samsung-adc",
44 .num_resources = ARRAY_SIZE(s3c_adc_resource),
45 .resource = s3c_adc_resource,