update fb for win1 buf -1
authorzyw <zyw@rock-chips.com>
Sat, 26 Feb 2011 02:49:09 +0000 (10:49 +0800)
committerzyw <zyw@rock-chips.com>
Sat, 26 Feb 2011 02:49:09 +0000 (10:49 +0800)
arch/arm/mach-rk29/board-malata.c
arch/arm/mach-rk29/board-rk29-aigo.c
arch/arm/mach-rk29/board-rk29-winaccord.c
arch/arm/mach-rk29/board-rk29sdk.c
drivers/video/rk29_fb.c

index caca88cfb8dbd21a6a13913d35dd5e8411aceadf..a9a4e4dde9c07c65aa851b56ad16a4d9f3c764ff 100644 (file)
@@ -231,7 +231,7 @@ static struct resource rk29_fb_resource[] = {
        [2] = {
            .name   = "win1 buf",
         .start  = MEM_FB_BASE,
-        .end    = MEM_FB_BASE + MEM_FB_SIZE,
+        .end    = MEM_FB_BASE + MEM_FB_SIZE - 1,
         .flags  = IORESOURCE_MEM,
     },
 };
@@ -617,7 +617,7 @@ static struct i2c_board_info __initdata board_i2c2_devices[] = {
      .platform_data  = &sintek_touch_info,
   },
 
-#endif 
+#endif
 };
 #endif
 
@@ -633,7 +633,7 @@ static struct i2c_board_info __initdata board_i2c3_devices[] = {
      .platform_data  = &synaptics_touchkey_info,
   },
 
-#endif 
+#endif
 };
 #endif
 
@@ -694,7 +694,7 @@ static struct i2c_board_info __initdata board_i2c3_devices[] = {
 #define SENSOR_RESETACTIVE_LEVEL_1 RK29_CAM_RESETACTIVE_L
 #define SENSOR_POWERDNACTIVE_LEVEL_1 RK29_CAM_POWERDNACTIVE_H
 #define SENSOR_FLASHACTIVE_LEVEL_1 RK29_CAM_FLASHACTIVE_L
-#endif 
+#endif
 
 static int rk29_sensor_io_init(void);
 static int rk29_sensor_io_deinit(int sensor);
@@ -1094,7 +1094,7 @@ static void rk29_backlight_close(void){
    gpio_direction_output(FB_DISPLAY_ON_PIN, 0);
    gpio_set_value(FB_DISPLAY_ON_PIN, GPIO_LOW);
    gpio_free(FB_DISPLAY_ON_PIN);
-   
+
    rk29_mux_api_set(PWM_MUX_NAME, PWM_MUX_MODE);
    ret = gpio_request(PWM_GPIO_PIN, NULL);
    if(ret != 0)
index e0fb50d881e5ed0401f585c0073bf4077009e226..6dc091759b7953d001572f08fe5323a29070c4f4 100644 (file)
@@ -213,7 +213,7 @@ struct resource rk29_fb_resource[] = {
        [2] = {\r
            .name   = "win1 buf",\r
         .start  = MEM_FB_BASE,\r
-        .end    = MEM_FB_BASE + MEM_FB_SIZE,\r
+        .end     = MEM_FB_BASE + MEM_FB_SIZE - 1,\r
         .flags  = IORESOURCE_MEM,\r
     },\r
 };\r
index 39cc2e81640c3d31d6deb456668f93e669a27254..e091ecef29e6f590b6bfdd0262e459bddf9610ab 100644 (file)
@@ -213,7 +213,7 @@ struct resource rk29_fb_resource[] = {
        [2] = {
            .name   = "win1 buf",
         .start  = MEM_FB_BASE,
-        .end    = MEM_FB_BASE + MEM_FB_SIZE,
+        .end    = MEM_FB_BASE + MEM_FB_SIZE - 1,
         .flags  = IORESOURCE_MEM,
     },
 };
index 5217787af3a919da27309533f103f346e23ed53a..7290ba847f3ea85946166958c3c3cf71ff35b3c4 100755 (executable)
@@ -231,7 +231,7 @@ static struct resource rk29_fb_resource[] = {
        [2] = {
            .name   = "win1 buf",
         .start  = MEM_FB_BASE,
-        .end    = MEM_FB_BASE + MEM_FB_SIZE,
+        .end    = MEM_FB_BASE + MEM_FB_SIZE - 1,
         .flags  = IORESOURCE_MEM,
     },
 };
index 064dfa702be4613fbd601bb18a4eb72a975d6708..05428474c86364831fe6ba67a3229c1bc6fa1ec6 100755 (executable)
@@ -2163,7 +2163,7 @@ static int __init rk29fb_probe (struct platform_device *pdev)
         goto release_win1fb;
     }
     inf->fb0->fix.smem_start = res->start;
-    inf->fb0->fix.smem_len = res->end - res->start;
+    inf->fb0->fix.smem_len = res->end - res->start + 1;
     inf->fb0->screen_base = ioremap(res->start, inf->fb0->fix.smem_len);
     memset(inf->fb0->screen_base, 0, inf->fb0->fix.smem_len);