blob: 9d903d4095ed9e90e161792b7048b46ad39c590d [file] [log] [blame]
Naveen Krishna4f7cdc32010-05-13 22:06:36 +09001/* linux/arch/arm/plat-samsung/dev-adc.c
Maurus Cuelenaerebcedfa92010-01-14 00:30:34 +01002 *
3 * Copyright 2010 Maurus Cuelenaere
4 *
5 * S3C64xx series device definition for ADC device
6 *
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.
10*/
11
12#include <linux/kernel.h>
13#include <linux/string.h>
14#include <linux/platform_device.h>
15
16#include <mach/irqs.h>
17#include <mach/map.h>
18
19#include <plat/adc.h>
20#include <plat/devs.h>
21#include <plat/cpu.h>
22
23static struct resource s3c_adc_resource[] = {
24 [0] = {
Naveen Krishna4f7cdc32010-05-13 22:06:36 +090025 .start = SAMSUNG_PA_ADC,
26 .end = SAMSUNG_PA_ADC + SZ_256 - 1,
Maurus Cuelenaerebcedfa92010-01-14 00:30:34 +010027 .flags = IORESOURCE_MEM,
28 },
29 [1] = {
30 .start = IRQ_TC,
31 .end = IRQ_TC,
32 .flags = IORESOURCE_IRQ,
33 },
34 [2] = {
35 .start = IRQ_ADC,
36 .end = IRQ_ADC,
37 .flags = IORESOURCE_IRQ,
38 },
39};
40
41struct platform_device s3c_device_adc = {
Naveen Krishna4f7cdc32010-05-13 22:06:36 +090042 .name = "samsung-adc",
Maurus Cuelenaerebcedfa92010-01-14 00:30:34 +010043 .id = -1,
44 .num_resources = ARRAY_SIZE(s3c_adc_resource),
45 .resource = s3c_adc_resource,
46};