- Feb 16, 2016
-
-
Simon Glass authored
Adjust the driver to use driver model. The SOR becomes a bridge device. We use the normal simple_panel driver to handle the display itself. We also need to enable some options such as regulators, PWMs and DM_VIDEO itself. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
Simon Glass authored
There isn't a lot of benefit of have two separate files. With driver model the code needs to be in the same driver, so it's better to have it in the same file. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
Simon Glass authored
This helps keep the display consistent. puts() is used when printing the prompt, so is a useful way to make sure the current display contents is visible. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
- Feb 11, 2016
-
-
Simon Glass authored
Boards with a saved environment may use 'lcd' in their stdout environment variable, expecting that this will enable output to the LCD. When the board moves to use driver model for video, this will no-longer work. Add a work-around to fix this. A warning messages is printed, and we will remove the work-around at the end of 2016. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de> Tested-by:
Stephen Warren <swarren@nvidia.com>
-
- Feb 06, 2016
-
-
Stephen Warren authored
The FB address is generated by the firmware running on the GPU/VideoCore and is a "bus" address. This address is the other side of an IOMMU from the ARM upon which U-Boot is running. Use bus_to_phys() to convert this to an ARM physical address. Without this, U-Boot seems to work just fine, but once the Linux kernel boots on an RPi2, accessing the FB memory often causes a hard system hang. This is related to: 122426d4 ARM: bcm2835: use phys_to_bus() for mbox 5c0beb5c usb: dwc2: use phys_to_bus/bus_to_phys 79340db7 ARM: bcm2835: implement phys_to_bus/bus_to_phys Signed-off-by:
Stephen Warren <swarren@wwwdotorg.org>
-
Simon Glass authored
Using short doesn't save anything and is confusing when the width and height variables are ulong. This may fix Coverity CID134902 but I doubt it. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
- Jan 30, 2016
-
-
Simon Glass authored
For testing it is useful to be able to select the font size and the console driver for sandbox. Add this information to platform data and copy it to the video device when needed. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Provide a way for the video console driver to be selected. This is controlled by the video driver's private data. This can be set up when the driver is probed so that it is ready for the video_post_probe() method. The font size is provided as well. The console driver may or may not support this depending on its capability. Signed-off-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
This font is a little more ornate than normal. Example uses are on security screens where a feeling of formality is required. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This can be used when a a friendly 'hand-writing' font is needed. It helps to make the device feel familiar. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This can be used when a mono-space font is needed, but the console font is too small (such as with high-DPI displays). Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This provides a good-looking font for user prompts. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The existing 8x16 font is adequate for most purposes. It is small and fast. However for boot screens where information must be presented to the user, the console font is not ideal. Common requirements are larger and better-looking fonts. This console driver can use TrueType fonts built into U-Boot, and render them at any size. This can be used in scripts to place text as needed on the display. This driver is not really designed to operate with the command line. Much of U-Boot expects a fixed-width font. But to keep things working correctly, rudimentary support for the console is provided. The main missing feature is support for command-line editing. Signed-off-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
With proportional fonts the vidconsole uclass cannot itself erase the previous character. Provide an optional method so that the driver can handle this operation. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When we start a new line (due to the user pressing return), signal this to the driver so that it can flush its buffer of character positions. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Allow the left margin to be set so that text does not have to be right up against the left side. On some panels this makes it hard to read. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This can be sent when to many characters are entered. Make sure it is ignored and does not cause a character to be displayed. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
With anti-aliased fonts we need a more fine-grained horizontal position than a single pixel. Characters can be positioned to start part-way through a pixel, with anti-aliasing (greyscale edges) taking care of the visual effect. To cope with this, use fractional units (1/256 pixel) for horizontal positions in the text console. Signed-off-by:
Simon Glass <sjg@chromium.org> [agust: rebased] Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
Signed-off-by:
Simon Glass <sjg@chromium.org> [agust: rebased on current master] Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
This is a header file which provides a fairly light-weight TrueType rendering implementation. It is pulled from http://nothings.org/ . The code style does not comply with U-Boot but I think it is best to leave alone to permit the source to be synced later if needed. The only change is to fix a reference to fabs() which should route through a macro to allow U-Boot to provide its own version. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 26, 2016
-
-
Anatolij Gustschin authored
Enabling CONFIG_DISPLAY breaks building for some architectures (microblaze-generic), so we disable CONFIG_DISPLAY in Kconfig by default and enable this option in defconfigs. CONFIG_DISPLAY depends on CONFIG_I2C_EDID, so add and enable it in defconfigs, too. Signed-off-by:
Anatolij Gustschin <agust@denx.de> Reported-by:
Bin Meng <bmeng.cn@gmail.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Tested-by:
Bin Meng <bmeng.cn@gmail.com> Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
- Jan 23, 2016
-
-
Stefan Roese authored
This patch adds basic support for the LCD controller of the Marvell Armada XP SoC. An AXP based custom board port will be added later, to use this driver to display a splash screen via the bmp command later. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Anatolij Gustschin <agust@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr> [agust: rebased] Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
- Jan 22, 2016
-
-
Simon Glass authored
Some rockchip SoCs include video output (VOP). Add a driver to support this. It can output via a display driver (UCLASS_DISPLAY) and currently HDMI and eDP are supported. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some Rockchip SoCs support embedded DisplayPort output. Add a display driver for this so that these displays can be used on supported boards. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some Rockchip SoCs support HDMI output. Add a display driver for this so that these displays can be used on supported boards. Unfortunately this driver is not fully functional. It cannot reliably read EDID information over HDMI. This seems to be due to the clocks being incorrect - the I2C bus speed appears to be up to 100x slower than the clock settings indicate. The root cause may be in the clock logic. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The current DisplayPort uclass is too specific. The operations it provides are shared with other types of output devices, such as HDMI and LVDS LCD displays. Generalise the uclass so that it can be used with these devices as well. Adjust the uclass to handle the EDID reading and conversion to display_timing internally. Also update nyan-big which is affected by this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Most panels are very simple - they just have a power supply and a backlight. Add a driver which supports this and implements the enable_backlight() method. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
LCD panels can usefully be modelled as their own uclass. They can be probed (which powers them up ready for use). If they have a backlight, this can be enabled. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Many backlights need to use a PWM to control the brightness. Add a driver for this. It understands the standard device tree binding. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
LCD panels normally have a backlight which can be controlled to illuminate the LCD contents. Add a uclass to support this. Initially it only has a method to enable the backlight. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some video bridges will not have GPIOs to control reset, etc. Allow these to be optional. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Allow the cache-flushing function of a video device to be controlled. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We must use the console name in the 'stdout' variable to select the one we want. At present the name is formed from the driver name with a suffix indicating the rotation value. It seems better to name them sequentially since this can be controlled by driver order. So adjust the code to use 'vidconsole' for the first, 'vidconsole1' for the second, etc. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 21, 2016
-
-
Simon Glass authored
Add tests that check that the video console is working correcty. Also check that text output produces the expected result. Test coverage includes character output, wrapping and scrolling. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
Now that driver model support is available, convert sandbox over to use it. We can remove a few of the special hooks that sandbox currently has. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
Move this option to Kconfig. This is quite simple as only sandbox uses the driver. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
This command can use the bitmap display code in the uclass. This is similar to the code in lcd.c and cfb_console.c. These other copies will go away when all boards are converted to use driver model for video. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
Sometimes the console must be rotated. Add a driver which supports rotating the text clockwise to 90, 180 and 270 degrees. This can support devices where the display is rotated for mechanical reasons. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
Most of the time we don't need to rotate the display so a simple font blitting feature is enough for our purposes. Add a simple driver which supports this function. It provides text output on the console using the standard 8x16-pixel font. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
The existing LCD/video interface suffers from conflating the bitmap display with text output on that display. As a result the implementation is more complex than it needs to me. We can support multiple text console drivers. Create a separate uclass to support this, with its own API. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de>
-