diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2010-01-13 18:30:31 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-01-17 19:30:49 -0500 |
commit | 3929e1e76d9116856a4c7a00fcce0539dd8507a0 (patch) | |
tree | a185da5ed8cff52e08555047b163f2b0d9c66c0f /arch | |
parent | 501dae90b3ae4dd3d8efdacfcb072c3d65eb5a33 (diff) |
ARM: SAMSUNG: Move S3C24XX ADC driver to plat-samsung
Move S3C24XX ADC driver to plat-samsung
Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/configs/mini2440_defconfig | 2 | ||||
-rw-r--r-- | arch/arm/configs/s3c2410_defconfig | 2 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/Kconfig | 7 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/plat-samsung/Kconfig | 9 | ||||
-rw-r--r-- | arch/arm/plat-samsung/Makefile | 4 | ||||
-rw-r--r-- | arch/arm/plat-samsung/adc.c (renamed from arch/arm/plat-s3c24xx/adc.c) | 4 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/adc.h (renamed from arch/arm/plat-s3c/include/plat/adc.h) | 4 |
8 files changed, 19 insertions, 14 deletions
diff --git a/arch/arm/configs/mini2440_defconfig b/arch/arm/configs/mini2440_defconfig index d2a90eb844a9..4c46644b6f18 100644 --- a/arch/arm/configs/mini2440_defconfig +++ b/arch/arm/configs/mini2440_defconfig | |||
@@ -184,7 +184,7 @@ CONFIG_S3C24XX_PWM=y | |||
184 | CONFIG_S3C24XX_GPIO_EXTRA=0 | 184 | CONFIG_S3C24XX_GPIO_EXTRA=0 |
185 | CONFIG_S3C2410_DMA=y | 185 | CONFIG_S3C2410_DMA=y |
186 | # CONFIG_S3C2410_DMA_DEBUG is not set | 186 | # CONFIG_S3C2410_DMA_DEBUG is not set |
187 | CONFIG_S3C24XX_ADC=y | 187 | CONFIG_S3C_ADC=y |
188 | CONFIG_PLAT_S3C=y | 188 | CONFIG_PLAT_S3C=y |
189 | CONFIG_CPU_LLSERIAL_S3C2440_ONLY=y | 189 | CONFIG_CPU_LLSERIAL_S3C2440_ONLY=y |
190 | CONFIG_CPU_LLSERIAL_S3C2440=y | 190 | CONFIG_CPU_LLSERIAL_S3C2440=y |
diff --git a/arch/arm/configs/s3c2410_defconfig b/arch/arm/configs/s3c2410_defconfig index 2f10dae02796..9697e97677ec 100644 --- a/arch/arm/configs/s3c2410_defconfig +++ b/arch/arm/configs/s3c2410_defconfig | |||
@@ -187,7 +187,7 @@ CONFIG_S3C24XX_GPIO_EXTRA128=y | |||
187 | CONFIG_PM_SIMTEC=y | 187 | CONFIG_PM_SIMTEC=y |
188 | CONFIG_S3C2410_DMA=y | 188 | CONFIG_S3C2410_DMA=y |
189 | # CONFIG_S3C2410_DMA_DEBUG is not set | 189 | # CONFIG_S3C2410_DMA_DEBUG is not set |
190 | CONFIG_S3C24XX_ADC=y | 190 | CONFIG_S3C_ADC=y |
191 | CONFIG_MACH_SMDK=y | 191 | CONFIG_MACH_SMDK=y |
192 | CONFIG_PLAT_S3C=y | 192 | CONFIG_PLAT_S3C=y |
193 | CONFIG_CPU_LLSERIAL_S3C2410=y | 193 | CONFIG_CPU_LLSERIAL_S3C2410=y |
diff --git a/arch/arm/plat-s3c24xx/Kconfig b/arch/arm/plat-s3c24xx/Kconfig index 342647eb91d8..a806f359ceb6 100644 --- a/arch/arm/plat-s3c24xx/Kconfig +++ b/arch/arm/plat-s3c24xx/Kconfig | |||
@@ -117,13 +117,6 @@ config S3C2410_DMA_DEBUG | |||
117 | Enable debugging output for the DMA code. This option sends info | 117 | Enable debugging output for the DMA code. This option sends info |
118 | to the kernel log, at priority KERN_DEBUG. | 118 | to the kernel log, at priority KERN_DEBUG. |
119 | 119 | ||
120 | config S3C24XX_ADC | ||
121 | bool "ADC common driver support" | ||
122 | help | ||
123 | Core support for the ADC block found in the S3C24XX SoC systems | ||
124 | for drivers such as the touchscreen and hwmon to use to share | ||
125 | this resource. | ||
126 | |||
127 | # SPI default pin configuration code | 120 | # SPI default pin configuration code |
128 | 121 | ||
129 | config S3C24XX_SPI_BUS0_GPE11_GPE12_GPE13 | 122 | config S3C24XX_SPI_BUS0_GPE11_GPE12_GPE13 |
diff --git a/arch/arm/plat-s3c24xx/Makefile b/arch/arm/plat-s3c24xx/Makefile index 5dee8c12e8b4..e0100266d039 100644 --- a/arch/arm/plat-s3c24xx/Makefile +++ b/arch/arm/plat-s3c24xx/Makefile | |||
@@ -38,7 +38,6 @@ obj-$(CONFIG_PM) += irq-pm.o | |||
38 | obj-$(CONFIG_PM) += sleep.o | 38 | obj-$(CONFIG_PM) += sleep.o |
39 | obj-$(CONFIG_S3C2410_CLOCK) += s3c2410-clock.o | 39 | obj-$(CONFIG_S3C2410_CLOCK) += s3c2410-clock.o |
40 | obj-$(CONFIG_S3C2410_DMA) += dma.o | 40 | obj-$(CONFIG_S3C2410_DMA) += dma.o |
41 | obj-$(CONFIG_S3C24XX_ADC) += adc.o | ||
42 | obj-$(CONFIG_S3C2410_IOTIMING) += s3c2410-iotiming.o | 41 | obj-$(CONFIG_S3C2410_IOTIMING) += s3c2410-iotiming.o |
43 | obj-$(CONFIG_S3C2412_IOTIMING) += s3c2412-iotiming.o | 42 | obj-$(CONFIG_S3C2412_IOTIMING) += s3c2412-iotiming.o |
44 | obj-$(CONFIG_S3C2410_CPUFREQ_UTILS) += s3c2410-cpufreq-utils.o | 43 | obj-$(CONFIG_S3C2410_CPUFREQ_UTILS) += s3c2410-cpufreq-utils.o |
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig index faec4b8c626c..e6c122967355 100644 --- a/arch/arm/plat-samsung/Kconfig +++ b/arch/arm/plat-samsung/Kconfig | |||
@@ -74,6 +74,15 @@ config SAMSUNG_GPIO_EXTRA | |||
74 | provides. This allows expanding the GPIO space for use with | 74 | provides. This allows expanding the GPIO space for use with |
75 | GPIO expanders. | 75 | GPIO expanders. |
76 | 76 | ||
77 | # ADC driver | ||
78 | |||
79 | config S3C_ADC | ||
80 | bool "ADC common driver support" | ||
81 | help | ||
82 | Core support for the ADC block found in the Samsung SoC systems | ||
83 | for drivers such as the touchscreen and hwmon to use to share | ||
84 | this resource. | ||
85 | |||
77 | # device definitions to compile in | 86 | # device definitions to compile in |
78 | 87 | ||
79 | config S3C_DEV_HSMMC | 88 | config S3C_DEV_HSMMC |
diff --git a/arch/arm/plat-samsung/Makefile b/arch/arm/plat-samsung/Makefile index aeb7e12d1f63..ee310384b90f 100644 --- a/arch/arm/plat-samsung/Makefile +++ b/arch/arm/plat-samsung/Makefile | |||
@@ -20,6 +20,10 @@ obj-$(CONFIG_SAMSUNG_CLKSRC) += clock-clksrc.o | |||
20 | obj-$(CONFIG_SAMSUNG_IRQ_UART) += irq-uart.o | 20 | obj-$(CONFIG_SAMSUNG_IRQ_UART) += irq-uart.o |
21 | obj-$(CONFIG_SAMSUNG_IRQ_VIC_TIMER) += irq-vic-timer.o | 21 | obj-$(CONFIG_SAMSUNG_IRQ_VIC_TIMER) += irq-vic-timer.o |
22 | 22 | ||
23 | # ADC | ||
24 | |||
25 | obj-$(CONFIG_S3C_ADC) += adc.o | ||
26 | |||
23 | # devices | 27 | # devices |
24 | 28 | ||
25 | obj-$(CONFIG_S3C_DEV_HSMMC) += dev-hsmmc.o | 29 | obj-$(CONFIG_S3C_DEV_HSMMC) += dev-hsmmc.o |
diff --git a/arch/arm/plat-s3c24xx/adc.c b/arch/arm/plat-samsung/adc.c index ce47627f3368..a8843dd5e1e7 100644 --- a/arch/arm/plat-s3c24xx/adc.c +++ b/arch/arm/plat-samsung/adc.c | |||
@@ -1,10 +1,10 @@ | |||
1 | /* arch/arm/plat-s3c24xx/adc.c | 1 | /* arch/arm/plat-samsung/adc.c |
2 | * | 2 | * |
3 | * Copyright (c) 2008 Simtec Electronics | 3 | * Copyright (c) 2008 Simtec Electronics |
4 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
5 | * Ben Dooks <ben@simtec.co.uk>, <ben-linux@fluff.org> | 5 | * Ben Dooks <ben@simtec.co.uk>, <ben-linux@fluff.org> |
6 | * | 6 | * |
7 | * S3C24XX ADC device core | 7 | * Samsung ADC device core |
8 | * | 8 | * |
9 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License as published by | 10 | * it under the terms of the GNU General Public License as published by |
diff --git a/arch/arm/plat-s3c/include/plat/adc.h b/arch/arm/plat-samsung/include/plat/adc.h index 5f3b1cd53b90..e8382c7be10b 100644 --- a/arch/arm/plat-s3c/include/plat/adc.h +++ b/arch/arm/plat-samsung/include/plat/adc.h | |||
@@ -1,10 +1,10 @@ | |||
1 | /* arch/arm/plat-s3c/include/plat/adc.h | 1 | /* arch/arm/plat-samsung/include/plat/adc.h |
2 | * | 2 | * |
3 | * Copyright (c) 2008 Simtec Electronics | 3 | * Copyright (c) 2008 Simtec Electronics |
4 | * http://armlinux.simnte.co.uk/ | 4 | * http://armlinux.simnte.co.uk/ |
5 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
6 | * | 6 | * |
7 | * S3C24XX ADC driver information | 7 | * S3C ADC driver information |
8 | * | 8 | * |
9 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License version 2 as | 10 | * it under the terms of the GNU General Public License version 2 as |