[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,
},
};
.platform_data = &sintek_touch_info,
},
-#endif
+#endif
};
#endif
.platform_data = &synaptics_touchkey_info,
},
-#endif
+#endif
};
#endif
#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);
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)
[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
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);