Skip to content

Commit

Permalink
ARM: S3C64XX: Use S3C64XX_SDMA_SEL register name instead of numeric a…
Browse files Browse the repository at this point in the history
…ddress

This patch adds a definition of S3C64XX_SDMA_SEL register and modifies
the s3c64xx DMA driver to use it instead of a magic register address.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Tomasz Figa authored and Kukjin Kim committed Sep 19, 2011
1 parent 8c051ab commit 6d8d492
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c64xx/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ static int __init s3c64xx_dma_init(void)
}

/* Set all DMA configuration to be DMA, not SDMA */
writel(0xffffff, S3C_SYSREG(0x110));
writel(0xffffff, S3C64XX_SDMA_SEL);

/* Register standard DMA controllers */
s3c64xx_dma_init1(0, DMACH_UART0, IRQ_DMA0, 0x75000000);
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-s3c64xx/include/mach/regs-sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#define S3C64XX_AHB_CON1 S3C_SYSREG(0x104)
#define S3C64XX_AHB_CON2 S3C_SYSREG(0x108)

#define S3C64XX_SDMA_SEL S3C_SYSREG(0x110)

#define S3C64XX_OTHERS S3C_SYSREG(0x900)

#define S3C64XX_OTHERS_USBMASK (1 << 16)
Expand Down

0 comments on commit 6d8d492

Please sign in to comment.