diff options
author | Andy Green <andy@warmcat.com> | 2009-12-29 09:40:30 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-01-17 21:41:03 -0500 |
commit | 810f613c03a1614c71a2b27859e91ae155bd659f (patch) | |
tree | 99f323797320a465933fdd788a571f0b5c4255ca /arch/arm | |
parent | f01fdac005d44e6c36af5b5eb841c4804570f0ad (diff) |
ARM: S3C64XX: Add virtual mapping for S3C64XX SROM area
This adds the physical address of the SROM unit, and
applies a virtual mapping for it to the S3C_VA_MEM
slot.
Signed-off-by: Andy Green <andy@warmcat.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s3c6400/include/mach/map.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-s3c64xx/cpu.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c6400/include/mach/map.h b/arch/arm/mach-s3c6400/include/mach/map.h index 0d6044090566..3e17adf3a89b 100644 --- a/arch/arm/mach-s3c6400/include/mach/map.h +++ b/arch/arm/mach-s3c6400/include/mach/map.h | |||
@@ -50,6 +50,8 @@ | |||
50 | #define S3C_VA_UART2 S3C_VA_UARTx(2) | 50 | #define S3C_VA_UART2 S3C_VA_UARTx(2) |
51 | #define S3C_VA_UART3 S3C_VA_UARTx(3) | 51 | #define S3C_VA_UART3 S3C_VA_UARTx(3) |
52 | 52 | ||
53 | #define S3C64XX_PA_SROM (0x70000000) | ||
54 | |||
53 | #define S3C64XX_PA_NAND (0x70200000) | 55 | #define S3C64XX_PA_NAND (0x70200000) |
54 | #define S3C64XX_PA_FB (0x77100000) | 56 | #define S3C64XX_PA_FB (0x77100000) |
55 | #define S3C64XX_PA_USB_HSOTG (0x7C000000) | 57 | #define S3C64XX_PA_USB_HSOTG (0x7C000000) |
diff --git a/arch/arm/plat-s3c64xx/cpu.c b/arch/arm/plat-s3c64xx/cpu.c index c0e6f2a45154..bc7ca1812e32 100644 --- a/arch/arm/plat-s3c64xx/cpu.c +++ b/arch/arm/plat-s3c64xx/cpu.c | |||
@@ -73,6 +73,11 @@ static struct map_desc s3c_iodesc[] __initdata = { | |||
73 | .length = SZ_4K, | 73 | .length = SZ_4K, |
74 | .type = MT_DEVICE, | 74 | .type = MT_DEVICE, |
75 | }, { | 75 | }, { |
76 | .virtual = (unsigned long)S3C_VA_MEM, | ||
77 | .pfn = __phys_to_pfn(S3C64XX_PA_SROM), | ||
78 | .length = SZ_4K, | ||
79 | .type = MT_DEVICE, | ||
80 | }, { | ||
76 | .virtual = (unsigned long)(S3C_VA_UART + UART_OFFS), | 81 | .virtual = (unsigned long)(S3C_VA_UART + UART_OFFS), |
77 | .pfn = __phys_to_pfn(S3C_PA_UART), | 82 | .pfn = __phys_to_pfn(S3C_PA_UART), |
78 | .length = SZ_4K, | 83 | .length = SZ_4K, |