ARM: S3C64XX: Add virtual mapping for S3C64XX SROM area
authorAndy Green <andy@warmcat.com>
Tue, 29 Dec 2009 14:40:30 +0000 (14:40 +0000)
committerBen Dooks <ben-linux@fluff.org>
Mon, 18 Jan 2010 02:41:03 +0000 (11:41 +0900)
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>
arch/arm/mach-s3c6400/include/mach/map.h
arch/arm/plat-s3c64xx/cpu.c

index 0d6044090566a7f21a6a7033552672586aac73aa..3e17adf3a89baf92d50630f4482a5ff3d3b5f302 100644 (file)
@@ -50,6 +50,8 @@
 #define S3C_VA_UART2           S3C_VA_UARTx(2)
 #define S3C_VA_UART3           S3C_VA_UARTx(3)
 
+#define S3C64XX_PA_SROM                (0x70000000)
+
 #define S3C64XX_PA_NAND                (0x70200000)
 #define S3C64XX_PA_FB          (0x77100000)
 #define S3C64XX_PA_USB_HSOTG   (0x7C000000)
index c0e6f2a45154ad265b377a8e6522fb1263cd9727..bc7ca1812e32dcc2fdea73a2ae32a0998c82e27d 100644 (file)
@@ -72,6 +72,11 @@ static struct map_desc s3c_iodesc[] __initdata = {
                .pfn            = __phys_to_pfn(S3C64XX_PA_SYSCON),
                .length         = SZ_4K,
                .type           = MT_DEVICE,
+       }, {
+               .virtual        = (unsigned long)S3C_VA_MEM,
+               .pfn            = __phys_to_pfn(S3C64XX_PA_SROM),
+               .length         = SZ_4K,
+               .type           = MT_DEVICE,
        }, {
                .virtual        = (unsigned long)(S3C_VA_UART + UART_OFFS),
                .pfn            = __phys_to_pfn(S3C_PA_UART),