Lines Matching +full:simple +full:- +full:framebuffer

1 // SPDX-License-Identifier: GPL-2.0-only
3 * framebuffer-coreboot.c
5 * Memory based framebuffer accessed through coreboot table.
7 * Copyright 2012-2013 David Herrmann <dh.herrmann@gmail.com>
29 struct lb_framebuffer *fb = &dev->framebuffer; in framebuffer_probe()
33 .width = fb->x_resolution, in framebuffer_probe()
34 .height = fb->y_resolution, in framebuffer_probe()
35 .stride = fb->bytes_per_line, in framebuffer_probe()
40 if (fb->bits_per_pixel == formats[i].bits_per_pixel && in framebuffer_probe()
41 fb->red_mask_pos == formats[i].red.offset && in framebuffer_probe()
42 fb->red_mask_size == formats[i].red.length && in framebuffer_probe()
43 fb->green_mask_pos == formats[i].green.offset && in framebuffer_probe()
44 fb->green_mask_size == formats[i].green.length && in framebuffer_probe()
45 fb->blue_mask_pos == formats[i].blue.offset && in framebuffer_probe()
46 fb->blue_mask_size == formats[i].blue.length && in framebuffer_probe()
47 fb->reserved_mask_pos == formats[i].transp.offset && in framebuffer_probe()
48 fb->reserved_mask_size == formats[i].transp.length) in framebuffer_probe()
52 return -ENODEV; in framebuffer_probe()
56 res.name = "Coreboot Framebuffer"; in framebuffer_probe()
57 res.start = fb->physical_address; in framebuffer_probe()
58 length = PAGE_ALIGN(fb->y_resolution * fb->bytes_per_line); in framebuffer_probe()
59 res.end = res.start + length - 1; in framebuffer_probe()
61 return -EINVAL; in framebuffer_probe()
63 pdev = platform_device_register_resndata(&dev->dev, in framebuffer_probe()
64 "simple-framebuffer", 0, in framebuffer_probe()
68 pr_warn("coreboot: could not register framebuffer\n"); in framebuffer_probe()
70 dev_set_drvdata(&dev->dev, pdev); in framebuffer_probe()
77 struct platform_device *pdev = dev_get_drvdata(&dev->dev); in framebuffer_remove()
86 .name = "framebuffer",