mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
update fb for win1 buf -1
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user