aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/rockchip/Kconfig
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-05-31 17:59:29 +0200
committerSimon Glass <sjg@chromium.org>2017-06-07 21:30:49 -0600
commit89b2b6186d259014c217d887463a5030d0c5f23a (patch)
treeeb70c0d790da7c37d2339d2aa6d492fd2e148288 /drivers/video/rockchip/Kconfig
parentd4bee08419e5059d8e1412355f96bd1e5f5faf18 (diff)
downloadu-boot-89b2b6186d259014c217d887463a5030d0c5f23a.zip
u-boot-89b2b6186d259014c217d887463a5030d0c5f23a.tar.gz
u-boot-89b2b6186d259014c217d887463a5030d0c5f23a.tar.bz2
rockchip: video: Kconfig: set MAX_XRES and MAX_YRES via Kconfig
This introduces two new Kconfig options that configure the maximum allowable framebuffer size (i.e. the memory reservation/allocation for the framebuffer): - VIDEO_ROCKCHIP_MAX_XRES - VIDEO_ROCKCHIP_MAX_YRES The resulting memory allocation will cover 4 byte per pixel for these resolutions. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video/rockchip/Kconfig')
-rw-r--r--drivers/video/rockchip/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/video/rockchip/Kconfig b/drivers/video/rockchip/Kconfig
index 4ad2da5..b1d7c62 100644
--- a/drivers/video/rockchip/Kconfig
+++ b/drivers/video/rockchip/Kconfig
@@ -19,6 +19,24 @@ menuconfig VIDEO_ROCKCHIP
This driver supports the on-chip video output device, and targets the
Rockchip RK3288 and RK3399.
+config VIDEO_ROCKCHIP_MAX_XRES
+ int "Maximum horizontal resolution (for memory allocation purposes)"
+ depends on VIDEO_ROCKCHIP
+ default 1920
+ help
+ The maximum horizontal resolution to support for the framebuffer.
+ This configuration is used for reserving/allocating memory for the
+ framebuffer during device-model binding/probing.
+
+config VIDEO_ROCKCHIP_MAX_YRES
+ int "Maximum vertical resolution (for memory allocation purposes)"
+ depends on VIDEO_ROCKCHIP
+ default 1080
+ help
+ The maximum vertical resolution to support for the framebuffer.
+ This configuration is used for reserving/allocating memory for the
+ framebuffer during device-model binding/probing.
+
if VIDEO_ROCKCHIP
config DISPLAY_ROCKCHIP_EDP