summaryrefslogtreecommitdiffstats
path: root/include/fb.h
Commit message (Collapse)AuthorAgeFilesLines
* include: add SPDX GPL-2.0-only license tags for files without licensing ↵Roland Hieber2020-02-171-0/+1
| | | | | | | | | | | information According to our /README, GPL-2.0-only applies for the whole project except noted otherwise. Signed-off-by: Roland Hieber <rohieb@rohieb.name> Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: introduce flush for virtual framebufferBastian Stender2017-02-281-0/+2
| | | | | | | | | | | Some drivers need an explicit sync method to flush the virtual framebuffer to the display. It is called fb_flush(). fb_flush() gets called on fbc_putc, on fb_close and in the pattern cycle in the fbtest command. Signed-off-by: Bastian Stender <bst@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* whole tree: remove trailing whitespacesDu Huanpeng2016-04-211-2/+2
| | | | | Signed-off-by: Du Huanpeng <u74147@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: Add shadowfb supportSascha Hauer2015-08-201-0/+3
| | | | | | | | | | | | For speeding up rendering we need shadow framebuffers. This is currently implemented in the gui functions. This does not work properly when two users (splash and fbconsole) use the same framebuffer since in this case two different shadow framebuffers will be used. This patch implements shadowfb handling in the fb core directly. With this the fb device gets a parameter 'shadowfb'. When this is true the fb core will allocate a shadow fb and provide it to the users. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/vpl'Sascha Hauer2015-08-071-0/+2
|\
| * video: Add missing prototype for display_timings_releaseSascha Hauer2015-07-131-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: Add Video Pipeline (VPL) supportSascha Hauer2015-07-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Complex video pipelines are modelled with the of_graph bindings in the devicetree. This patch adds a ioctl infrastructure to issue commands to the remote endpoint of a of_graph. Currently defined ioctls are prepare/unprepare, enable/disable and get_modes. This is enough to control LVDS or HDMI encoder or simple panels. A device node which contains of_graph endpoints can be registered as a VPL entity. An entity can receive ioctls via the .ioctl callback and also issue ioctls by calling vpl_ioctl. The core itself will never iterate over the entire pipeline. Instead, the different VPL entities should forward an ioctl to the next instance in the pipeline whenever necessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/video'Sascha Hauer2015-08-061-0/+1
|\ \
| * | video: Add generic fixup handler to reserve fb memorySascha Hauer2015-07-061-0/+1
| |/ | | | | | | | | | | | | When a framebuffer is kept enabled when Linux starts its framebuffer memory should be reserved. Otherwise Linux may overwrite its contents. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | video: implement framebuffer consoleAntony Pavlov2015-07-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch realizes framebuffer console support for barebox. It supports colors and enough escape sequences to show the barebox console and editor properly. fbconsole mini-HOWTO ==================== 1. compile sandbox barebox with CONFIG_VIDEO=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_DRIVER_VIDEO_SDL=y 2. run barebox 3. test fbconsole fbconsole0.active=oe Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fb: Add fb_enable/disable functionsSascha Hauer2015-07-201-0/+3
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: Add edid supportSascha Hauer2014-03-291-1/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: Add display timing from devicetree helperSascha Hauer2014-03-291-1/+14
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: rework mode_name parameter settingSascha Hauer2014-03-291-0/+2
| | | | | | | | We have dev_add_param_enum() now, so use it for the mode_name setting. Also drop the special case for single mode framebuffers, just add the mode_name parameter for this case aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: introduce struct display_timingsSascha Hauer2014-03-291-2/+14
| | | | | | | And use it inside struct fb_info. This struct has the advantage that the supported modes can be passed around in a single pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: Add screen_size fieldSascha Hauer2013-12-201-0/+1
| | | | | | | | | 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>
* video: set up the kernel's simple framebuffer driverAndre Heider2013-11-061-0/+7
| | | | | | | | Add support to configure the active framebuffer for the kernel through device tree. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: add a line_length value to struct fb_infoAndre Heider2013-11-061-0/+1
| | | | | | | | | | | Add support for framebuffers with noncontiguous horizontal lines. Video drivers can set this value if the hardware requires it. In case a driver does not set it, the current value of xres * (bpp / 8) is used instead. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide include/: Add missing includesSascha Hauer2013-05-311-0/+1
| | | | | | | This adds several missing includes to files under include/ which we relied on being included implicitly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: Use dev_add_param_bool for enable parameterSascha Hauer2013-04-111-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: add it's own bus for fb devicesJean-Christophe PLAGNIOL-VILLARD2012-09-231-0/+2
| | | | | | | This is need for oftree device probing Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add the feature to change the video mode at runtimeJuergen Beisert2010-12-211-0/+3
| | | | | | | | This patch add the possibility to change the video mode at barebox's runtime if the graphics driver in use supports it. Signed-off-by: <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: add a usage counter to prevent double enable/disableSascha Hauer2010-06-241-1/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rework device parametersSascha Hauer2010-06-171-2/+0
| | | | | | | | Change device parameters so that the memory management is in generic code. This also removes the need of storing statically initialized parameters as they are stored in a struct list_head for each device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: Add FB_SYNC_ defines from kernelSascha Hauer2009-12-091-0/+22
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add missing include/fb.hSascha Hauer2009-08-131-0/+89
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>