[MIPS] Au1200: MMC resource size off by one
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 8 May 2008 19:06:17 +0000 (23:06 +0400)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 16 Jun 2008 14:14:49 +0000 (15:14 +0100)
Au12x0 MMC platform device strangely claims 0x41 bytes for its
memory-mapped registers.  Make it claim the whole 0x80000 instead according
to the memory map given in the datasheets.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/au1000/common/platform.c

index 8cae7753ef79931612eb5070e2236014df07fe78..74d6d4a593be309af9f6ec5bb83035d28999dc64 100644 (file)
@@ -165,12 +165,12 @@ static struct resource au1xxx_usb_gdt_resources[] = {
 static struct resource au1xxx_mmc_resources[] = {
        [0] = {
                .start          = SD0_PHYS_ADDR,
-               .end            = SD0_PHYS_ADDR + 0x40,
+               .end            = SD0_PHYS_ADDR + 0x7ffff,
                .flags          = IORESOURCE_MEM,
        },
        [1] = {
                .start          = SD1_PHYS_ADDR,
-               .end            = SD1_PHYS_ADDR + 0x40,
+               .end            = SD1_PHYS_ADDR + 0x7ffff,
                .flags          = IORESOURCE_MEM,
        },
        [2] = {