提交 4f7cdc38 编写于 作者: N Naveen Krishna 提交者: Ben Dooks

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: NNaveen Krishna Ch <ch.naveen@samsung.com>
Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: NBen Dooks <ben-linux@fluff.org>
上级 7ebd4675
...@@ -85,6 +85,7 @@ config MACH_ANW6410 ...@@ -85,6 +85,7 @@ config MACH_ANW6410
config MACH_SMDK6410 config MACH_SMDK6410
bool "SMDK6410" bool "SMDK6410"
select CPU_S3C6410 select CPU_S3C6410
select SAMSUNG_DEV_ADC
select S3C_DEV_HSMMC select S3C_DEV_HSMMC
select S3C_DEV_HSMMC1 select S3C_DEV_HSMMC1
select S3C_DEV_I2C1 select S3C_DEV_I2C1
......
...@@ -58,5 +58,4 @@ obj-$(CONFIG_MACH_HMT) += mach-hmt.o ...@@ -58,5 +58,4 @@ obj-$(CONFIG_MACH_HMT) += mach-hmt.o
obj-y += dev-uart.o obj-y += dev-uart.o
obj-y += dev-rtc.o obj-y += dev-rtc.o
obj-y += dev-audio.o obj-y += dev-audio.o
obj-$(CONFIG_S3C_ADC) += dev-adc.o
obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o
...@@ -103,5 +103,6 @@ ...@@ -103,5 +103,6 @@
#define S3C_PA_USBHOST S3C64XX_PA_USBHOST #define S3C_PA_USBHOST S3C64XX_PA_USBHOST
#define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG #define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG
#define S3C_VA_USB_HSPHY S3C64XX_VA_USB_HSPHY #define S3C_VA_USB_HSPHY S3C64XX_VA_USB_HSPHY
#define SAMSUNG_PA_ADC S3C64XX_PA_ADC
#endif /* __ASM_ARCH_6400_MAP_H */ #endif /* __ASM_ARCH_6400_MAP_H */
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <plat/clock.h> #include <plat/clock.h>
#include <plat/sdhci.h> #include <plat/sdhci.h>
#include <plat/iic-core.h> #include <plat/iic-core.h>
#include <plat/adc.h>
#include <mach/s3c6400.h> #include <mach/s3c6400.h>
#include <mach/s3c6410.h> #include <mach/s3c6410.h>
...@@ -52,6 +53,7 @@ void __init s3c6410_map_io(void) ...@@ -52,6 +53,7 @@ void __init s3c6410_map_io(void)
s3c_i2c0_setname("s3c2440-i2c"); s3c_i2c0_setname("s3c2440-i2c");
s3c_i2c1_setname("s3c2440-i2c"); s3c_i2c1_setname("s3c2440-i2c");
s3c_device_adc.name = "s3c64xx-adc";
s3c_device_nand.name = "s3c6400-nand"; s3c_device_nand.name = "s3c6400-nand";
} }
......
...@@ -185,6 +185,11 @@ config S3C_DEV_NAND ...@@ -185,6 +185,11 @@ config S3C_DEV_NAND
help help
Compile in platform device definition for NAND controller Compile in platform device definition for NAND controller
config SAMSUNG_DEV_ADC
bool
help
Compile in platform device definition for ADC controller
config S3C64XX_DEV_SPI config S3C64XX_DEV_SPI
bool bool
help help
......
...@@ -40,6 +40,7 @@ obj-y += dev-uart.o ...@@ -40,6 +40,7 @@ obj-y += dev-uart.o
obj-$(CONFIG_S3C_DEV_USB_HOST) += dev-usb.o obj-$(CONFIG_S3C_DEV_USB_HOST) += dev-usb.o
obj-$(CONFIG_S3C_DEV_USB_HSOTG) += dev-usb-hsotg.o obj-$(CONFIG_S3C_DEV_USB_HSOTG) += dev-usb-hsotg.o
obj-$(CONFIG_S3C_DEV_NAND) += dev-nand.o obj-$(CONFIG_S3C_DEV_NAND) += dev-nand.o
obj-$(CONFIG_SAMSUNG_DEV_ADC) += dev-adc.o
# DMA support # DMA support
......
/* linux/arch/arm/plat-s3c64xx/dev-adc.c /* linux/arch/arm/plat-samsung/dev-adc.c
* *
* Copyright 2010 Maurus Cuelenaere * Copyright 2010 Maurus Cuelenaere
* *
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
static struct resource s3c_adc_resource[] = { static struct resource s3c_adc_resource[] = {
[0] = { [0] = {
.start = S3C64XX_PA_ADC, .start = SAMSUNG_PA_ADC,
.end = S3C64XX_PA_ADC + SZ_256 - 1, .end = SAMSUNG_PA_ADC + SZ_256 - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
...@@ -39,7 +39,7 @@ static struct resource s3c_adc_resource[] = { ...@@ -39,7 +39,7 @@ static struct resource s3c_adc_resource[] = {
}; };
struct platform_device s3c_device_adc = { struct platform_device s3c_device_adc = {
.name = "s3c64xx-adc", .name = "samsung-adc",
.id = -1, .id = -1,
.num_resources = ARRAY_SIZE(s3c_adc_resource), .num_resources = ARRAY_SIZE(s3c_adc_resource),
.resource = s3c_adc_resource, .resource = s3c_adc_resource,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册