]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
arm: mach-shmobile: Split MERAM resources into regs and meram
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 11 Sep 2011 21:30:45 +0000 (23:30 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Mar 2012 21:41:07 +0000 (22:41 +0100)
The MERAM resource currently combines both the registers space and the
MERAM space. Only the register space needs to be ioremapped, split the
resource to make that possible.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
arch/arm/mach-shmobile/board-ap4evb.c
arch/arm/mach-shmobile/board-mackerel.c

index 80b94302981549ac08efa04d2aea12278945c6ea..63498fbdfd121cc2331fd98e2cf8cf8e374331af 100644 (file)
@@ -258,10 +258,16 @@ static struct sh_mobile_meram_info meram_info = {
 
 static struct resource meram_resources[] = {
        [0] = {
-               .name   = "MERAM",
-               .start  = 0xe8000000,
-               .end    = 0xe81fffff,
-               .flags  = IORESOURCE_MEM,
+               .name   = "regs",
+               .start  = 0xe8000000,
+               .end    = 0xe807ffff,
+               .flags  = IORESOURCE_MEM,
+       },
+       [1] = {
+               .name   = "meram",
+               .start  = 0xe8080000,
+               .end    = 0xe81fffff,
+               .flags  = IORESOURCE_MEM,
        },
 };
 
index aff7df8ccc307901803c52dab09fa9cedf809956..17ba6bccf97b2a852d308cb7894da33079f3924b 100644 (file)
@@ -318,8 +318,14 @@ static struct sh_mobile_meram_info mackerel_meram_info = {
 
 static struct resource meram_resources[] = {
        [0] = {
-               .name   = "MERAM",
+               .name   = "regs",
                .start  = 0xe8000000,
+               .end    = 0xe807ffff,
+               .flags  = IORESOURCE_MEM,
+       },
+       [1] = {
+               .name   = "meram",
+               .start  = 0xe8080000,
                .end    = 0xe81fffff,
                .flags  = IORESOURCE_MEM,
        },