diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-05-31 17:59:29 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-07 21:30:49 -0600 |
commit | 89b2b6186d259014c217d887463a5030d0c5f23a (patch) | |
tree | eb70c0d790da7c37d2339d2aa6d492fd2e148288 /drivers/video/rockchip/rk_vop.c | |
parent | d4bee08419e5059d8e1412355f96bd1e5f5faf18 (diff) | |
download | u-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/rk_vop.c')
-rw-r--r-- | drivers/video/rockchip/rk_vop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index 48bfcd4..c612b55 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -357,7 +357,8 @@ static int rk_vop_bind(struct udevice *dev) { struct video_uc_platdata *plat = dev_get_uclass_platdata(dev); - plat->size = 1920 * 1200 * 4; + plat->size = 4 * (CONFIG_VIDEO_ROCKCHIP_MAX_XRES * + CONFIG_VIDEO_ROCKCHIP_MAX_YRES); return 0; } |