rk3026: tb: fix lcdc reg size define
author黄涛 <huangtao@rock-chips.com>
Wed, 31 Jul 2013 06:32:01 +0000 (14:32 +0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 31 Jul 2013 06:32:01 +0000 (14:32 +0800)
arch/arm/mach-rk3026/board-rk3026-tb.c
arch/arm/mach-rk3026/board-rk3028a-tb.c

index d29eaddf1a6b4e468ce2ab3c8376a3bba8277a0c..ef398bb946cfee514fd2eb70e8ba0babddc78623 100755 (executable)
@@ -333,7 +333,7 @@ static struct resource resource_lcdc0[] = {
        [0] = {
                .name  = "lcdc0 reg",
                .start = RK3026_LCDC0_PHYS,
-               .end   = RK3026_LCDC0_PHYS + RK3026_LCDC0_PHYS - 1,
+               .end   = RK3026_LCDC0_PHYS + RK3026_LCDC0_SIZE - 1,
                .flags = IORESOURCE_MEM,
        },
        
@@ -361,7 +361,7 @@ static struct resource resource_lcdc1[] = {
        [0] = {
                .name  = "lcdc1 reg",
                .start = RK3026_LCDC1_PHYS,
-               .end   = RK3026_LCDC1_PHYS + RK3026_LCDC1_PHYS - 1,
+               .end   = RK3026_LCDC1_PHYS + RK3026_LCDC1_SIZE - 1,
                .flags = IORESOURCE_MEM,
        },
        [1] = {
index 035c79374b3a3e61a8016451711d7f500dd6ecec..823253267b0208e7135b351a3097c4ab61b16663 100755 (executable)
@@ -333,7 +333,7 @@ static struct resource resource_lcdc0[] = {
        [0] = {
                .name  = "lcdc0 reg",
                .start = RK3026_LCDC0_PHYS,
-               .end   = RK3026_LCDC0_PHYS + RK3026_LCDC0_PHYS - 1,
+               .end   = RK3026_LCDC0_PHYS + RK3026_LCDC0_SIZE - 1,
                .flags = IORESOURCE_MEM,
        },
        
@@ -361,7 +361,7 @@ static struct resource resource_lcdc1[] = {
        [0] = {
                .name  = "lcdc1 reg",
                .start = RK3026_LCDC1_PHYS,
-               .end   = RK3026_LCDC1_PHYS + RK3026_LCDC1_PHYS - 1,
+               .end   = RK3026_LCDC1_PHYS + RK3026_LCDC1_SIZE - 1,
                .flags = IORESOURCE_MEM,
        },
        [1] = {