diff options
author | Sandeep Sanjay Patil <psandeep.s@gmail.com> | 2007-05-16 05:51:45 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-05-16 10:37:43 -0400 |
commit | e903382ceae1dd85e650ffc7e98facdd59cc7a3f (patch) | |
tree | cce29e6f9e35f8febce2e26ca054b5e6905363cd /arch/arm/mach-s3c2412/s3c2412.c | |
parent | d73d8011779292788def2cd2520d6f39d9b406de (diff) |
[ARM] 4384/1: S3C2412/13 SPI registers offset correction
Change the SPI Channel 1 register offset in s3c_spi1_resource[], and
s3c2412_dma_mappings[]. Offset has to be 0x100 in s3c2412/13's case.
Also, total SPI memory resource size changed to 0x24 for s3c2412/13.
Signed-off-by: Sandeep Patil <psandeep.s@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2412/s3c2412.c')
-rw-r--r-- | arch/arm/mach-s3c2412/s3c2412.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2412/s3c2412.c b/arch/arm/mach-s3c2412/s3c2412.c index aafe0bc593f1..c602aa39f9c4 100644 --- a/arch/arm/mach-s3c2412/s3c2412.c +++ b/arch/arm/mach-s3c2412/s3c2412.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <asm/arch/regs-gpio.h> | 37 | #include <asm/arch/regs-gpio.h> |
38 | #include <asm/arch/regs-gpioj.h> | 38 | #include <asm/arch/regs-gpioj.h> |
39 | #include <asm/arch/regs-dsc.h> | 39 | #include <asm/arch/regs-dsc.h> |
40 | #include <asm/arch/regs-spi.h> | ||
40 | 41 | ||
41 | #include <asm/plat-s3c24xx/s3c2412.h> | 42 | #include <asm/plat-s3c24xx/s3c2412.h> |
42 | #include <asm/plat-s3c24xx/cpu.h> | 43 | #include <asm/plat-s3c24xx/cpu.h> |
@@ -74,6 +75,14 @@ void __init s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no) | |||
74 | s3c_device_sdi.name = "s3c2412-sdi"; | 75 | s3c_device_sdi.name = "s3c2412-sdi"; |
75 | s3c_device_lcd.name = "s3c2412-lcd"; | 76 | s3c_device_lcd.name = "s3c2412-lcd"; |
76 | s3c_device_nand.name = "s3c2412-nand"; | 77 | s3c_device_nand.name = "s3c2412-nand"; |
78 | |||
79 | /* spi channel related changes, s3c2412/13 specific */ | ||
80 | s3c_device_spi0.name = "s3c2412-spi"; | ||
81 | s3c_device_spi0.resource[0].end = S3C24XX_PA_SPI + 0x24; | ||
82 | s3c_device_spi1.name = "s3c2412-spi"; | ||
83 | s3c_device_spi1.resource[0].start = S3C24XX_PA_SPI + S3C2412_SPI1; | ||
84 | s3c_device_spi1.resource[0].end = S3C24XX_PA_SPI + S3C2412_SPI1 + 0x24; | ||
85 | |||
77 | } | 86 | } |
78 | 87 | ||
79 | /* s3c2412_idle | 88 | /* s3c2412_idle |