summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * compulab: Drop old LCD codeSimon Glass2022-10-302-453/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * nexell: Drop old LCD codeSimon Glass2022-10-302-58/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: samsung: Drop old LCD codeSimon Glass2022-10-308-32/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Drop atmel LCD codeSimon Glass2022-10-3012-378/+0
| | | | | | | | | | | | This has not been migrated to DM_VIDEO since 2019. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * treewide: Stop enabling CONFIG_LCDSimon Glass2022-10-3014-14/+0
| | | | | | | | | | | | | | This option is not used anymore since the LCD implementation is being removed. Stop enabling it on various boards. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: atmel: Drop CONFIG_LCD_IN_PSRAMSimon Glass2022-10-301-95/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Drop ld9040 driverSimon Glass2022-10-306-135/+0
| | | | | | | | | | | | This is not used anymore. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: atmel: Drop pre-DM parts of video driverSimon Glass2022-10-303-289/+2
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Drop CONFIG_AM335X_LCDSimon Glass2022-10-3013-1135/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * BuR: Drop old LCD codeSimon Glass2022-10-304-245/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Drop VCXK video controllerSimon Glass2022-10-308-586/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * Drop CONFIG_LCD_LOGOSimon Glass2022-10-308-123/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * api: Drop LCD implementationSimon Glass2022-10-301-22/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Move bmp_display() prototype to video.hSimon Glass2022-10-302-10/+9
| | | | | | | | | | | | The lcd.h header is about to be deleted, so move this prototype. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Drop CONFIG_LCD_INFOSimon Glass2022-10-3010-178/+0
| | | | | | | | | | | | | | This option is not used anymore since the LCD implementation is being removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Drop CONFIG_LCD_INFO_BELOW_LOGOSimon Glass2022-10-305-15/+4
| | | | | | | | | | | | | | This option is not used anymore since the LCD implementation is being removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Drop CONFIG_LCD_MENUSimon Glass2022-10-307-368/+0
| | | | | | | | | | | | This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Drop CONFIG_LCD_ALIGNMENTSimon Glass2022-10-305-27/+0
| | | | | | | | | | | | | | This option is not needed now that the LCD implementation is being removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: lcd: Drop console rotationSimon Glass2022-10-303-216/+0
| | | | | | | | | | | | | | This option is not used in U-Boot anymore. Drop it option and the associated implementation. Signed-off-by: Simon Glass <sjg@chromium.org>
| * Convert CONFIG_VIDEO_LOGO_MAX_SIZE to KconfigSimon Glass2022-10-3020-33/+17
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_VIDEO_LOGO_MAX_SIZE Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Rename CONFIG_SYS_VIDEO_LOGO_MAX_SIZESimon Glass2022-10-3011-22/+22
| | | | | | | | | | | | | | | | | | | | This option should not have the SYS_ in it. Drop it so it fits in with the other video options. Also simplify the alignment code in gunzip_bmp(), since malloc() always returns a 32-bit-aligned pointer. Signed-off-by: Simon Glass <sjg@chromium.org>
| * Convert CONFIG_HIDE_LOGO_VERSION to KconfigSimon Glass2022-10-308-4/+12
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_HIDE_LOGO_VERSION Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Split SPLASH_SCREEN_ALIGN from bmp commandSimon Glass2022-10-302-6/+5
| | | | | | | | | | | | | | | | | | | | The bmp command already has a way to centre the image. Using this CONFIG option to also centre it makes it impossible to control where images are placed on the screen. Drop the extra check. Simplify the Kconfig file we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
| * splash: get devpart from environment variableJulien Masson2022-10-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default several types of splash locations are supported and the user can select one of them through environment var (splashsource). However the devpart is still hardcoded and we cannot change it from the environment. This patch add the support of "splashdevpart" which allow the user to set the devpart though this environment variable. Example: image located in splashscreen partition (MMC as raw) ``` splashsource=mmc_raw splashdevpart=0#splashscreen ``` Signed-off-by: Julien Masson <jmasson@baylibre.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * splash: support raw image from MMCJulien Masson2022-10-302-0/+32
| | | | | | | | | | | | | | | | The user has now the choice to specify the splash location in the MMC as a raw storage. Signed-off-by: Julien Masson <jmasson@baylibre.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * video: Add a way to get the default font heightSimon Glass2022-10-302-0/+20
| | | | | | | | | | | | | | This is not as simple as it seems. Add a function to provide it so that the upcoming menu feature can space lines out correctly. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Add a function to get the dimensions of a BMP imageSimon Glass2022-10-302-4/+23
| | | | | | | | | | | | This is useful for some other users, so break this out into a function. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Add commands to list and change fontsSimon Glass2022-10-3011-0/+240
| | | | | | | | | | | | | | | | | | | | Add a new 'font' command which allows the fonts to be listed as well as selecting a different font and size. Allow the test to run on sandbox, where multiple font/size combinations are supported, as well as sandbox_flattree, where they are not. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Enable the cls command by defaultSimon Glass2022-10-301-1/+1
| | | | | | | | | | | | | | This is enabled for LCD but not for VIDEO. Enable it since it is useful to be able to clear the screen and adds very little code. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Add a way to change the font name and sizeSimon Glass2022-10-302-0/+91
| | | | | | | | | | | | | | It is useful to be able to support multiple fonts. Add a function to handle this as well as one to list the available fonts. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Add a function to select the truetype metricsSimon Glass2022-10-301-7/+17
| | | | | | | | | | | | | | Move this code into a function so we can call it later when we want to change the font. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Record the truetype font nameSimon Glass2022-10-301-10/+13
| | | | | | | | | | | | | | Add this to the metrics so we can later adjust the font size without changing the font itself. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Refactor to allow more than one font sizeSimon Glass2022-10-302-42/+113
| | | | | | | | | | | | | | | | | | At present the truetype console supports only a single font and size. It is useful to be able to support different combinations. As a first step, move the metrics into there own structure and allow having multiple metrics. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Tidy up the check for valid fontsSimon Glass2022-10-301-4/+13
| | | | | | | | | | | | | | Put this check into a function so we can use it elsewhere. Also drop the macros which do the same thing but are not actually used. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Add function to obtain the U-Boot logoSimon Glass2022-10-302-0/+12
| | | | | | | | | | | | | | It is useful to show the logo from other code, coming in a later feature. Add a function to obtain it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Allow filling the display with a colourSimon Glass2022-10-302-6/+27
| | | | | | | | | | | | | | | | | | Generalise the video_clear() function to allow filling with a different colour. Tidy up the comments while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Move and rename DM_HX8238D optionSimon Glass2022-10-303-12/+12
| | | | | | | | | | | | | | This is actually a panel, not a video device. Rename the option, move it into the right place and make it depend on PANEL. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Move the console commands to cmd/Simon Glass2022-10-305-58/+75
| | | | | | | | | | | | | | | | | | | | Move these commands and the implementation to the cmd/ directory, which is where most commands are kept. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> [agust: keep vidconsole_position_cursor() in vidconsole uclass] Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * video: Use vidconsole_put_string() to write a stringSimon Glass2022-10-301-4/+5
| | | | | | | | | | | | | | Use the existing function rather that duplicating the code. Also fix up the missing error handling. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Provide a function to set the cursor positionSimon Glass2022-10-302-5/+25
| | | | | | | | | | | | | | Add an exported function which allows the cursor position to be set to pixel granularity. Make use of this in the existing code. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: Move console colours to the video uclassSimon Glass2022-10-304-108/+104
| | | | | | | | | | | | | | | | | | | | | | | | At present these are attached to vidconsole which means that the video uclass requires that a console is enabled. This is not the intention. The colours are a reasonable way of indexing common colours in any case, so move them to the video uclass instead. Rename vid_console_color() to video_index_to_colour() now that it is more generic. Also fix the inconsistent spelling in these functions. Signed-off-by: Simon Glass <sjg@chromium.org>
| * video: simplefb: add rotation supportTakumi Sueda2022-10-301-1/+5
| | | | | | | | | | | | It introduces the way to rotate the screen for boards with rotated screen. Signed-off-by: Takumi Sueda <puhitaku@gmail.com>
| * video: dw_mipi_dsi: fix [hv]sync active vs back porchJohn Keeping2022-10-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | The wrong fields are pulled out of the timings here so the values programmed into the DSI_VID_HSA_LINES/DSI_VID_HBP_LINES and DSI_VID_VSA_LINES/DSI_VID_VBP_LINES registers are swapped. Use the right fields so that the correct values are programmed. Fixes: d4f7ea83fc ("video: add MIPI DSI host controller bridge") Signed-off-by: John Keeping <john@metanate.com>
* | Merge tag 'dm-pull-29oct22' of ↵Tom Rini2022-10-2933-122/+328
|\ \ | |/ |/| | | | | | | | | https://source.denx.de/u-boot/custodians/u-boot-dm Fix pylibfdt warnings and use setuptools to build Various minor changes to core dm and sandbox
| * dm: core: Do not stop uclass iteration on errorMichal Suchanek2022-10-294-32/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When probing a device fails NULL pointer is returned, and following devices in uclass list cannot be iterated. Skip to next device on error instead. With that the only condition under which these simple iteration functions return error is when the dm is not initialized at uclass_get time. This is not all that interesting, change return type to void. Fixes: 6494d708bf ("dm: Add base driver model support") Signed-off-by: Michal Suchanek <msuchanek@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * dm: treewide: Do not use the return value of simple uclass iteratorMichal Suchanek2022-10-295-37/+17
| | | | | | | | | | | | | | | | | | | | | | | | uclass_first_device/uclass_next_device return value will be removed, don't use it. With the current implementation dev is equivalent to !ret. It is redundant to check both, ret check can be replaced with dev check, and ret check inside the iteration is dead code. Signed-off-by: Michal Suchanek <msuchanek@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * dm: core: Add note about device_probe idempotenceMichal Suchanek2022-10-291-2/+2
| | | | | | | | | | | | | | | | device_probe returns early when the device is already activated. Add a note to the documentation that it can be used on already activated devices. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
| * dm: core: Document return value of device bind functionsMichal Suchanek2022-10-291-0/+2
| | | | | | | | | | | | | | These functions use device_bind_with_driver_data internally, copy the return value description. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
| * dm: core: Switch uclass_*_device_err to use uclass_*_device_checkMichal Suchanek2022-10-293-9/+20
| | | | | | | | | | | | | | Clarify documentation, fix a few more cases that could be broken by the change. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
| * fdt: Move to setuptoolsSimon Glass2022-10-293-10/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The distutils package is deprecated. The upstream libfdt repo uses setuptools for building the pylibfdt module, so bring in that code, suitably modified for U-Boot. Also bring in the README. The modifications include setting the version correctly, making use of the environment variables provided by the Makefile and various tweaks to the directories. Note that the version omits the minus character at the start of EXTRAVERSION, since this creates a warning. The build is really just used within U-Boot itself, so it doesn't matter too much if the version matches upstream, or exactly matches U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org>