Skip to content

Commit

Permalink
[ARM] 3799/1: S3C2442: DMA channel mappings
Browse files Browse the repository at this point in the history
DMA channel mappings for the S3C2442

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Ben Dooks authored and Russell King committed Sep 25, 2006
1 parent 98c418a commit 3fc3a25
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
7 changes: 7 additions & 0 deletions arch/arm/mach-s3c2410/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ config S3C2410_CLOCK
help
Clock code for the S3C2410, and similar processors

config CPU_S3C2410_DMA
bool
depends on S3C2410_DMA && (CPU_S3C2410 || CPU_S3C2442)
default y if CPU_S3C2410 || CPU_S3C2442
help
DMA device selection for S3C2410 and compatible CPUs

config CPU_S3C2410
bool
depends on ARCH_S3C2410
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ obj-$(CONFIG_CPU_S3C2400) += s3c2400-gpio.o

obj-$(CONFIG_CPU_S3C2410) += s3c2410.o
obj-$(CONFIG_CPU_S3C2410) += s3c2410-gpio.o
obj-dma-$(CONFIG_CPU_S3C2410) += s3c2410-dma.o
obj-$(CONFIG_CPU_S3C2410_DMA) += s3c2410-dma.o

# Power Management support

Expand Down
15 changes: 15 additions & 0 deletions arch/arm/mach-s3c2410/s3c2410-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,18 @@ static int __init s3c2410_dma_init(void)
}

arch_initcall(s3c2410_dma_init);

/* S3C2442 DMA contains the same selection table as the S3C2410 */

static struct sysdev_driver s3c2442_dma_driver = {
.add = s3c2410_dma_add,
};

static int __init s3c2442_dma_init(void)
{
return sysdev_driver_register(&s3c2442_sysclass, &s3c2442_dma_driver);
}

arch_initcall(s3c2442_dma_init);


0 comments on commit 3fc3a25

Please sign in to comment.