diff options
author | Atul Dahiya <atul.dahiya@samsung.com> | 2010-05-18 01:58:56 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-18 03:44:58 -0400 |
commit | adc0950c08e1f433f6933759f4facf9b2cf8d29d (patch) | |
tree | 547262e81bc29189741e123e08bcd6aee59ae7c8 /arch | |
parent | 7ebd467551ed6ae200d7835a84bbda0dcadaa511 (diff) |
ARM: SAMSUNG: Move RTC device definitions in plat-samsung
This patch moves RTC device definitions from mach-s3c64xx
to plat-samsung, to enable the other SoCs to use same device
definition.
Signed-off-by: Atul Dahiya <atul.dahiya@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@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/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/map.h | 1 | ||||
-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-rtc.c (renamed from arch/arm/mach-s3c64xx/dev-rtc.c) | 28 |
5 files changed, 21 insertions, 15 deletions
diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile index 3758e15086be..56ef97286b31 100644 --- a/arch/arm/mach-s3c64xx/Makefile +++ b/arch/arm/mach-s3c64xx/Makefile | |||
@@ -56,7 +56,6 @@ obj-$(CONFIG_MACH_HMT) += mach-hmt.o | |||
56 | # device support | 56 | # device support |
57 | 57 | ||
58 | obj-y += dev-uart.o | 58 | obj-y += dev-uart.o |
59 | obj-y += dev-rtc.o | ||
60 | obj-y += dev-audio.o | 59 | obj-y += dev-audio.o |
61 | obj-$(CONFIG_S3C_ADC) += dev-adc.o | 60 | 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..cce28a968164 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 S3C_PA_RTC S3C64XX_PA_RTC | ||
106 | 107 | ||
107 | #endif /* __ASM_ARCH_6400_MAP_H */ | 108 | #endif /* __ASM_ARCH_6400_MAP_H */ |
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig index d552c65fa1b0..f4a017df29a1 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 S3C_DEV_RTC | ||
189 | bool | ||
190 | help | ||
191 | Complie in platform device definition for RTC | ||
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..4326c1be4936 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_S3C_DEV_RTC) += dev-rtc.o | ||
43 | 44 | ||
44 | # DMA support | 45 | # DMA support |
45 | 46 | ||
diff --git a/arch/arm/mach-s3c64xx/dev-rtc.c b/arch/arm/plat-samsung/dev-rtc.c index b9e7a05f0129..bf4e2267333c 100644 --- a/arch/arm/mach-s3c64xx/dev-rtc.c +++ b/arch/arm/plat-samsung/dev-rtc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/dev-rtc.c | 1 | /* linux/arch/arm/plat-samsung/dev-rtc.c |
2 | * | 2 | * |
3 | * Copyright 2009 by Maurus Cuelenaere <mcuelenaere@gmail.com> | 3 | * Copyright 2009 by Maurus Cuelenaere <mcuelenaere@gmail.com> |
4 | * | 4 | * |
@@ -18,26 +18,26 @@ | |||
18 | 18 | ||
19 | static struct resource s3c_rtc_resource[] = { | 19 | static struct resource s3c_rtc_resource[] = { |
20 | [0] = { | 20 | [0] = { |
21 | .start = S3C64XX_PA_RTC, | 21 | .start = S3C_PA_RTC, |
22 | .end = S3C64XX_PA_RTC + 0xff, | 22 | .end = S3C_PA_RTC + 0xff, |
23 | .flags = IORESOURCE_MEM, | 23 | .flags = IORESOURCE_MEM, |
24 | }, | 24 | }, |
25 | [1] = { | 25 | [1] = { |
26 | .start = IRQ_RTC_ALARM, | 26 | .start = IRQ_RTC_ALARM, |
27 | .end = IRQ_RTC_ALARM, | 27 | .end = IRQ_RTC_ALARM, |
28 | .flags = IORESOURCE_IRQ, | 28 | .flags = IORESOURCE_IRQ, |
29 | }, | 29 | }, |
30 | [2] = { | 30 | [2] = { |
31 | .start = IRQ_RTC_TIC, | 31 | .start = IRQ_RTC_TIC, |
32 | .end = IRQ_RTC_TIC, | 32 | .end = IRQ_RTC_TIC, |
33 | .flags = IORESOURCE_IRQ | 33 | .flags = IORESOURCE_IRQ |
34 | } | 34 | } |
35 | }; | 35 | }; |
36 | 36 | ||
37 | struct platform_device s3c_device_rtc = { | 37 | struct platform_device s3c_device_rtc = { |
38 | .name = "s3c64xx-rtc", | 38 | .name = "s3c64xx-rtc", |
39 | .id = -1, | 39 | .id = -1, |
40 | .num_resources = ARRAY_SIZE(s3c_rtc_resource), | 40 | .num_resources = ARRAY_SIZE(s3c_rtc_resource), |
41 | .resource = s3c_rtc_resource, | 41 | .resource = s3c_rtc_resource, |
42 | }; | 42 | }; |
43 | EXPORT_SYMBOL(s3c_device_rtc); | 43 | EXPORT_SYMBOL(s3c_device_rtc); |