ARM: ebsa110: provide TRICK?_SIZE macros
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 10 Jun 2011 11:35:45 +0000 (12:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Feb 2012 17:40:27 +0000 (17:40 +0000)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ebsa110/core.c
arch/arm/mach-ebsa110/core.h

index d7f83e912bd7eb430f93403a57fe038e8577d6df..6235efb0ccd43d044747924eefb4f461299958cc 100644 (file)
@@ -76,22 +76,22 @@ static struct map_desc ebsa110_io_desc[] __initdata = {
        {       /* IRQ_STAT/IRQ_MCLR */
                .virtual        = IRQ_STAT,
                .pfn            = __phys_to_pfn(TRICK4_PHYS),
-               .length         = PGDIR_SIZE,
+               .length         = TRICK4_SIZE,
                .type           = MT_DEVICE
        }, {    /* IRQ_MASK/IRQ_MSET */
                .virtual        = IRQ_MASK,
                .pfn            = __phys_to_pfn(TRICK3_PHYS),
-               .length         = PGDIR_SIZE,
+               .length         = TRICK3_SIZE,
                .type           = MT_DEVICE
        }, {    /* SOFT_BASE */
                .virtual        = SOFT_BASE,
                .pfn            = __phys_to_pfn(TRICK1_PHYS),
-               .length         = PGDIR_SIZE,
+               .length         = TRICK1_SIZE,
                .type           = MT_DEVICE
        }, {    /* PIT_BASE */
                .virtual        = PIT_BASE,
                .pfn            = __phys_to_pfn(TRICK0_PHYS),
-               .length         = PGDIR_SIZE,
+               .length         = TRICK0_SIZE,
                .type           = MT_DEVICE
        },
 
index 61f675426eb8eb5b06eccde8050923f12dde1765..c93c9e43012dfc836ec00dd3ac2e6ce8ed952a24 100644 (file)
 #define ISAIO_SIZE             PGDIR_SIZE
 
 #define TRICK0_PHYS            0xf2000000
+#define TRICK0_SIZE            PGDIR_SIZE
 #define TRICK1_PHYS            0xf2400000
+#define TRICK1_SIZE            PGDIR_SIZE
 #define TRICK2_PHYS            0xf2800000
 #define TRICK3_PHYS            0xf2c00000
+#define TRICK3_SIZE            PGDIR_SIZE
 #define TRICK4_PHYS            0xf3000000
+#define TRICK4_SIZE            PGDIR_SIZE
 #define TRICK5_PHYS            0xf3400000
 #define TRICK6_PHYS            0xf3800000
 #define TRICK7_PHYS            0xf3c00000