RTC subsystem, SA1100/PXA2xx driver
PATCH 1/1 RTC subsystem, SA1100/PXA2xx driver
Add an RTC subsystem driver for the ARM SA1100/PXA2XX processor RTC.
Signed-off-by Richard Purdie <[email protected]>
--
drivers/rtc/Kconfig +10 -0
@@ -113,6 +113,16 @@ This driver can also be built as a module. If so, the module will be called rtc-rs5c372. +config RTC_DRV_SA1100 + bool "SA11x0/PXA2xx RTC support" + depends on ARCH_SA1100 || ARCH_PXA + help + If you say Y here you will get access to the real time clock + built into your SA11x0 or PXA2xx CPU. + + To compile this driver as a module, choose M here: the + module will be called rtc-sa1100. + config RTC_DRV_TEST tristate "Test driver/device" depends on RTC_CLASS
drivers/rtc/Makefile +1 -0
@@ -17,4 +17,5 @@ obj-$(CONFIG_RTC_DRV_DS1672) += rtc-ds1672.o obj-$(CONFIG_RTC_DRV_PCF8563) += rtc-pcf8563.o obj-$(CONFIG_RTC_DRV_RS5C372) += rtc-rs5c372.o +obj-$(CONFIG_RTC_DRV_SA1100) += rtc-sa1100.o
drivers/rtc/rtc-sa1100.c new file +391 -0
391 lines not on this page · raw message
arch/arm/mach-pxa/generic.c +6 -0
@@ -319,6 +319,11 @@ pxaficp_device.dev.platform_data = info; } +static struct platform_device pxartc_device = { + .name ="sa1100-rtc" , + .id =-1 , +}; +static struct platform_device *devices[]__initdata = { &pxamci_device, &udc_device,
@@ -329,6 +334,7 @@ &pxaficp_device, &i2c_device, &i2s_device, + &pxartc_device, };static int __init pxa_init (void )
arch/arm/mach-sa1100/generic.c +6 -0
@@ -324,6 +324,11 @@ sa11x0ir_device.dev.platform_data = irda; } +static struct platform_device sa11x0rtc_device = { + .name ="sa1100-rtc" , + .id =-1 , +}; +static struct platform_device *sa11x0_devices[]__initdata = { &sa11x0udc_device, &sa11x0uart1_device,
@@ -333,6 +338,7 @@ &sa11x0pcmcia_device, &sa11x0fb_device, &sa11x0mtd_device, + &sa11x0rtc_device, };static int __init sa1100_init (void )
Quoted 3 lines · On Sat, 04 Mar 2006 22:24:37 +0000 Richard Purdie <[email protected]> wrote:
Add an RTC subsystem driver for the ARM SA1100/PXA2XX processor RTC.
Signed-off-by Richard Purdie <[email protected]>
Thanks, I will import it in my patchset.
Signature · 6 lines
Best regards, Alessandro Zummo, Tower Technologies - Turin, Italy http://www.towertech.it