diff options
author | mokopatches <mokopatches@openmoko.org> | 2008-11-19 17:03:18 +0000 |
---|---|---|
committer | warmcat <andy@warmcat.com> | 2008-11-19 17:03:18 +0000 |
commit | 81487a2b118cee39ed13586b17c394935d799216 (patch) | |
tree | 646638c5c2f25c9180af1239f20ae1b8a45af76a /arch/arm/mach-s3c2440/mach-gta02.c | |
parent | 8fd8547b742a608695823e38ca7cfc531d50f341 (diff) |
introduce-fiq-use-timer3-as-source.patch
This makes the FIQ stuff specific to one of the timers on the
s3c244x and adds the platform stuff for fiq in the gta02 init
Currently one sysfs node is exposed, a count of FIQ events
cat /sys/devices/platform/sc32440_fiq.0/fiq/count
From: Andy Green <andy@openmoko.com>
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/mach-s3c2440/mach-gta02.c')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-gta02.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index 0bdd0e02010..cb839b24b6d 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -57,6 +57,7 @@ #include <asm/irq.h> #include <asm/mach-types.h> +#include <asm/arch-s3c2410/regs-irq.h> #include <asm/arch/regs-gpio.h> #include <asm/arch/regs-gpioj.h> #include <asm/arch/fb.h> @@ -336,6 +337,21 @@ struct platform_device gta02_pmu_dev = { }, }; +/* FIQ */ + +static struct resource sc32440_fiq_resources[] = { + [0] = { + .flags = IORESOURCE_IRQ, + .start = IRQ_TIMER3, + .end = IRQ_TIMER3, + }, +}; + +struct platform_device sc32440_fiq_device = { + .name = "sc32440_fiq", + .num_resources = 1, + .resource = sc32440_fiq_resources, +}; /* NOR Flash */ @@ -403,6 +419,7 @@ static struct platform_device *gta02_devices[] __initdata = { &s3c_device_nand, &s3c_device_ts, >a02_nor_flash, + &sc32440_fiq_device, }; static struct s3c2410_nand_set gta02_nand_sets[] = { |