9
0
Fork 0

video: Add screen_size field

barebox does not need the screen size directly, but we pass the
framebuffer to Linux via simnplefb it is desirable to pass the
full size of the framebuffer. Default to calculated values from
the screen resolution.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-12-18 16:22:01 +01:00
parent 484cc65fdb
commit 8bec1f2f16
2 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,8 @@ static int fb_setup_mode(struct device_d *dev, struct param_d *param,
if (!info->line_length)
info->line_length = info->xres * (info->bits_per_pixel >> 3);
if (!info->screen_size)
info->screen_size = info->line_length * info->yres;
if (!ret) {
dev->resource[0].start = (resource_size_t)info->screen_base;

View File

@ -86,6 +86,7 @@ struct fb_info {
struct device_d dev; /* This is this fb device */
void *screen_base;
unsigned long screen_size;
void *priv;