| #
d00abaef |
| 01-Mar-2024 |
Wenping Zhang <wenping.zhang@rock-chips.com> |
video/drm: display: add support for video console mode
In video console mode, the logs will be showed in the panel/monitor.
To enable the video console mode, the following Kconfig options are requi
video/drm: display: add support for video console mode
In video console mode, the logs will be showed in the panel/monitor.
To enable the video console mode, the following Kconfig options are required:
/* enable the video console */ CONFIG_ROCKCHIP_VIDCONSOLE=y
The default horizontal resolution of video console is the minimum &drm_display_mode.crtc_hdisplay of the VPs, and the vertical resolution is the minimum &drm_display_mode.crtc_vdisplay. The bits per pixel is set to 32 by default.
To set the resolution of video console to 1920x1080 with 16bpp manually, the following Kconfig options should be set:
/* the resolution of the video console */ CONFIG_ROCKCHIP_VIDCONSOLE_WIDTH=1920 CONFIG_ROCKCHIP_VIDCONSOLE_HEIGHT=1080
/* the bits per pixel the of video console */ CONFIG_ROCKCHIP_VIDCONSOLE_BPP32 is not set CONFIG_ROCKCHIP_VIDCONSOLE_BPP16=y CONFIG_ROCKCHIP_VIDCONSOLE_BPP8 is not set
The default video console framebuffer size is 16M, and it can be calculated by: size = ROUNDUP(width x height x bpp / 8 / 1024 / 1024) Take 1080p 32bpp as an example: size = ROUNDUP(1920 x 1080 x 32 / 8 / 1024 / 1024) = 8M
And the following Kconfig option may be set:
/* the framebuffer size of video console */ CONFIG_ROCKCHIP_VIDCONSOLE_MEM_RESERVED_SIZE_MBYTES=8
To confirm the video console is initialized successfully, the logs may be like:
...... Enable video console mode: resolution[1920x1080] bpp[16] ......
Change-Id: I667f896cfcdf1d6460f63db2f0cb7c29d3b11de2 Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com> Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
show more ...
|
| #
6b6b8331 |
| 07-Sep-2021 |
Sandy Huang <hjc@rock-chips.com> |
video/drm: add config for drm memory reserved
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: I43e21a4fd57f93953af9cad9fd1cdca2f259eae3
|
| #
a2d2b88e |
| 23-Jul-2019 |
Sandy Huang <hjc@rock-chips.com> |
video/drm: rockchip_display: add return value for automatic test
Change-Id: I6cd4f7d4bd738c7f4cf59af3a2daf46365e7c1e9 Signed-off-by: Sandy Huang <hjc@rock-chips.com>
|
| #
51619d03 |
| 22-Feb-2018 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: display: enable rockchip_display_fixup()
Enable and update the rockchip_display_fixup() so that we can update the logo reserve memory node for kernel dts.
Change-Id: I34e3812689052a63ed58
rockchip: display: enable rockchip_display_fixup()
Enable and update the rockchip_display_fixup() so that we can update the logo reserve memory node for kernel dts.
Change-Id: I34e3812689052a63ed58c61a41bca53798ffd666 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| #
3016d3d4 |
| 31-Jan-2018 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: video: reserve memory for fb without bind video driver
The video DM need to bind video driver before relocate in order to get the size need by video driver, which is fixed in rockchip plat
rockchip: video: reserve memory for fb without bind video driver
The video DM need to bind video driver before relocate in order to get the size need by video driver, which is fixed in rockchip platform, we can get it without bind the driver.
With this patch, we don't need to enable the video/display nodes in pre-reloc, and we can get all these nodes from kernel dtb.
Change-Id: I02d86b69e8c10bbf47e6b421c41b6dae20667a33 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| #
f8a3e587 |
| 27-Oct-2017 |
Joseph Chen <chenjh@rock-chips.com> |
include: add video_rockchip.h
export interfaces for other driver.
Change-Id: Iaad51ec77a4427ff94d45d2ae32fff8060d72f7b Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|