diff options
author | Naveen Krishna <ch.naveen@samsung.com> | 2010-05-13 09:06:36 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-18 00:38:44 -0400 |
commit | 4f7cdc38c000deba82479205f4c99f4c1e7c6d1f (patch) | |
tree | 9ab09768eb9731ec33307bd3a788f013687d31eb /arch | |
parent | 7ebd467551ed6ae200d7835a84bbda0dcadaa511 (diff) |
ARM: SAMSUNG: Moving ADC device definition to plat-samsung.
This patch moves ADC device definition to plat-samsung.
Because that is generic to the S3C64XX and S5P Series SoCs.
Signed-off-by: Naveen Krishna Ch <ch.naveen@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c64xx/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/map.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/s3c6410.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-samsung/Kconfig | 5 | ||||
-rw-r--r-- | arch/arm/plat-samsung/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/plat-samsung/dev-adc.c (renamed from arch/arm/mach-s3c64xx/dev-adc.c) | 8 |
7 files changed, 14 insertions, 5 deletions
diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig index 959df3840de5..69e9fbfea917 100644 --- a/arch/arm/mach-s3c64xx/Kconfig +++ b/arch/arm/mach-s3c64xx/Kconfig | |||
@@ -85,6 +85,7 @@ config MACH_ANW6410 | |||
85 | config MACH_SMDK6410 | 85 | config MACH_SMDK6410 |
86 | bool "SMDK6410" | 86 | bool "SMDK6410" |
87 | select CPU_S3C6410 | 87 | select CPU_S3C6410 |
88 | select SAMSUNG_DEV_ADC | ||
88 | select S3C_DEV_HSMMC | 89 | select S3C_DEV_HSMMC |
89 | select S3C_DEV_HSMMC1 | 90 | select S3C_DEV_HSMMC1 |
90 | select S3C_DEV_I2C1 | 91 | select S3C_DEV_I2C1 |
diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile index 3758e15086be..da662783493a 100644 --- a/arch/arm/mach-s3c64xx/Makefile +++ b/arch/arm/mach-s3c64xx/Makefile | |||
@@ -58,5 +58,4 @@ obj-$(CONFIG_MACH_HMT) += mach-hmt.o | |||
58 | obj-y += dev-uart.o | 58 | obj-y += dev-uart.o |
59 | obj-y += dev-rtc.o | 59 | obj-y += dev-rtc.o |
60 | obj-y += dev-audio.o | 60 | obj-y += dev-audio.o |
61 | obj-$(CONFIG_S3C_ADC) += dev-adc.o | ||
62 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o | 61 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o |
diff --git a/arch/arm/mach-s3c64xx/include/mach/map.h b/arch/arm/mach-s3c64xx/include/mach/map.h index 801c1c0f3a95..869c8e025127 100644 --- a/arch/arm/mach-s3c64xx/include/mach/map.h +++ b/arch/arm/mach-s3c64xx/include/mach/map.h | |||
@@ -103,5 +103,6 @@ | |||
103 | #define S3C_PA_USBHOST S3C64XX_PA_USBHOST | 103 | #define S3C_PA_USBHOST S3C64XX_PA_USBHOST |
104 | #define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG | 104 | #define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG |
105 | #define S3C_VA_USB_HSPHY S3C64XX_VA_USB_HSPHY | 105 | #define S3C_VA_USB_HSPHY S3C64XX_VA_USB_HSPHY |
106 | #define SAMSUNG_PA_ADC S3C64XX_PA_ADC | ||
106 | 107 | ||
107 | #endif /* __ASM_ARCH_6400_MAP_H */ | 108 | #endif /* __ASM_ARCH_6400_MAP_H */ |
diff --git a/arch/arm/mach-s3c64xx/s3c6410.c b/arch/arm/mach-s3c64xx/s3c6410.c index 59635d19466a..3ab695c691ee 100644 --- a/arch/arm/mach-s3c64xx/s3c6410.c +++ b/arch/arm/mach-s3c64xx/s3c6410.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <plat/clock.h> | 38 | #include <plat/clock.h> |
39 | #include <plat/sdhci.h> | 39 | #include <plat/sdhci.h> |
40 | #include <plat/iic-core.h> | 40 | #include <plat/iic-core.h> |
41 | #include <plat/adc.h> | ||
41 | #include <mach/s3c6400.h> | 42 | #include <mach/s3c6400.h> |
42 | #include <mach/s3c6410.h> | 43 | #include <mach/s3c6410.h> |
43 | 44 | ||
@@ -52,6 +53,7 @@ void __init s3c6410_map_io(void) | |||
52 | s3c_i2c0_setname("s3c2440-i2c"); | 53 | s3c_i2c0_setname("s3c2440-i2c"); |
53 | s3c_i2c1_setname("s3c2440-i2c"); | 54 | s3c_i2c1_setname("s3c2440-i2c"); |
54 | 55 | ||
56 | s3c_device_adc.name = "s3c64xx-adc"; | ||
55 | s3c_device_nand.name = "s3c6400-nand"; | 57 | s3c_device_nand.name = "s3c6400-nand"; |
56 | } | 58 | } |
57 | 59 | ||
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig index d552c65fa1b0..641649fde388 100644 --- a/arch/arm/plat-samsung/Kconfig +++ b/arch/arm/plat-samsung/Kconfig | |||
@@ -185,6 +185,11 @@ config S3C_DEV_NAND | |||
185 | help | 185 | help |
186 | Compile in platform device definition for NAND controller | 186 | Compile in platform device definition for NAND controller |
187 | 187 | ||
188 | config SAMSUNG_DEV_ADC | ||
189 | bool | ||
190 | help | ||
191 | Compile in platform device definition for ADC controller | ||
192 | |||
188 | config S3C64XX_DEV_SPI | 193 | config S3C64XX_DEV_SPI |
189 | bool | 194 | bool |
190 | help | 195 | help |
diff --git a/arch/arm/plat-samsung/Makefile b/arch/arm/plat-samsung/Makefile index 22c89d08f6e5..3cf30a4b0883 100644 --- a/arch/arm/plat-samsung/Makefile +++ b/arch/arm/plat-samsung/Makefile | |||
@@ -40,6 +40,7 @@ obj-y += dev-uart.o | |||
40 | obj-$(CONFIG_S3C_DEV_USB_HOST) += dev-usb.o | 40 | obj-$(CONFIG_S3C_DEV_USB_HOST) += dev-usb.o |
41 | obj-$(CONFIG_S3C_DEV_USB_HSOTG) += dev-usb-hsotg.o | 41 | obj-$(CONFIG_S3C_DEV_USB_HSOTG) += dev-usb-hsotg.o |
42 | obj-$(CONFIG_S3C_DEV_NAND) += dev-nand.o | 42 | obj-$(CONFIG_S3C_DEV_NAND) += dev-nand.o |
43 | obj-$(CONFIG_SAMSUNG_DEV_ADC) += dev-adc.o | ||
43 | 44 | ||
44 | # DMA support | 45 | # DMA support |
45 | 46 | ||
diff --git a/arch/arm/mach-s3c64xx/dev-adc.c b/arch/arm/plat-samsung/dev-adc.c index fafef9b6bcfa..9d903d4095ed 100644 --- a/arch/arm/mach-s3c64xx/dev-adc.c +++ b/arch/arm/plat-samsung/dev-adc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/dev-adc.c | 1 | /* linux/arch/arm/plat-samsung/dev-adc.c |
2 | * | 2 | * |
3 | * Copyright 2010 Maurus Cuelenaere | 3 | * Copyright 2010 Maurus Cuelenaere |
4 | * | 4 | * |
@@ -22,8 +22,8 @@ | |||
22 | 22 | ||
23 | static struct resource s3c_adc_resource[] = { | 23 | static struct resource s3c_adc_resource[] = { |
24 | [0] = { | 24 | [0] = { |
25 | .start = S3C64XX_PA_ADC, | 25 | .start = SAMSUNG_PA_ADC, |
26 | .end = S3C64XX_PA_ADC + SZ_256 - 1, | 26 | .end = SAMSUNG_PA_ADC + SZ_256 - 1, |
27 | .flags = IORESOURCE_MEM, | 27 | .flags = IORESOURCE_MEM, |
28 | }, | 28 | }, |
29 | [1] = { | 29 | [1] = { |
@@ -39,7 +39,7 @@ static struct resource s3c_adc_resource[] = { | |||
39 | }; | 39 | }; |
40 | 40 | ||
41 | struct platform_device s3c_device_adc = { | 41 | struct platform_device s3c_device_adc = { |
42 | .name = "s3c64xx-adc", | 42 | .name = "samsung-adc", |
43 | .id = -1, | 43 | .id = -1, |
44 | .num_resources = ARRAY_SIZE(s3c_adc_resource), | 44 | .num_resources = ARRAY_SIZE(s3c_adc_resource), |
45 | .resource = s3c_adc_resource, | 45 | .resource = s3c_adc_resource, |