[v3,5/5] video: rockchip: Support 4K resolution for rk3399, HDMI

Message ID 20200402114125.2501-6-jagan@amarulasolutions.com
State New
Headers show
Series
  • rockchip: rk3399: Fix HDMI out
Related show

Commit Message

Jagan Teki April 2, 2020, 11:41 a.m. UTC
The default resolution for rockchip display is 1920x1080
which failed to work on 4K HDMI out displays on rk3399.

So, mark the default resolution as 3480x2160 for rk3399
HDMI out.

This would work all the hdmi display resolutions till
4K.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v3:
- new patch

 drivers/video/rockchip/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Kever Yang April 2, 2020, 12:48 p.m. UTC | #1
On 2020/4/2 下午7:41, Jagan Teki wrote:
> The default resolution for rockchip display is 1920x1080
> which failed to work on 4K HDMI out displays on rk3399.
>
> So, mark the default resolution as 3480x2160 for rk3399
> HDMI out.
>
> This would work all the hdmi display resolutions till
> 4K.
>
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>



Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
> Changes for v3:
> - new patch
>
>   drivers/video/rockchip/Kconfig | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/video/rockchip/Kconfig b/drivers/video/rockchip/Kconfig
> index 10182d0b66..cfd774ead6 100644
> --- a/drivers/video/rockchip/Kconfig
> +++ b/drivers/video/rockchip/Kconfig
> @@ -22,6 +22,7 @@ menuconfig VIDEO_ROCKCHIP
>   config VIDEO_ROCKCHIP_MAX_XRES
>           int "Maximum horizontal resolution (for memory allocation purposes)"
>   	depends on VIDEO_ROCKCHIP
> +	default 3480 if ROCKCHIP_RK3399 && DISPLAY_ROCKCHIP_HDMI
>   	default 1920
>   	help
>   	  The maximum horizontal resolution to support for the framebuffer.
> @@ -31,6 +32,7 @@ config VIDEO_ROCKCHIP_MAX_XRES
>   config VIDEO_ROCKCHIP_MAX_YRES
>           int "Maximum vertical resolution (for memory allocation purposes)"
>   	depends on VIDEO_ROCKCHIP
> +	default 2160 if ROCKCHIP_RK3399 && DISPLAY_ROCKCHIP_HDMI
>   	default 1080
>   	help
>   	  The maximum vertical resolution to support for the framebuffer.

Patch

diff --git a/drivers/video/rockchip/Kconfig b/drivers/video/rockchip/Kconfig
index 10182d0b66..cfd774ead6 100644
--- a/drivers/video/rockchip/Kconfig
+++ b/drivers/video/rockchip/Kconfig
@@ -22,6 +22,7 @@  menuconfig VIDEO_ROCKCHIP
 config VIDEO_ROCKCHIP_MAX_XRES
         int "Maximum horizontal resolution (for memory allocation purposes)"
 	depends on VIDEO_ROCKCHIP
+	default 3480 if ROCKCHIP_RK3399 && DISPLAY_ROCKCHIP_HDMI
 	default 1920
 	help
 	  The maximum horizontal resolution to support for the framebuffer.
@@ -31,6 +32,7 @@  config VIDEO_ROCKCHIP_MAX_XRES
 config VIDEO_ROCKCHIP_MAX_YRES
         int "Maximum vertical resolution (for memory allocation purposes)"
 	depends on VIDEO_ROCKCHIP
+	default 2160 if ROCKCHIP_RK3399 && DISPLAY_ROCKCHIP_HDMI
 	default 1080
 	help
 	  The maximum vertical resolution to support for the framebuffer.