aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/nexell_display.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-01-23 07:04:08 -0700
committerAnatolij Gustschin <agust@denx.de>2022-03-28 20:17:07 +0200
commit1fa43cad862591fe8917a0c1fe2f21f062c7502b (patch)
treea17f830e6243917cd145007b1bee7bf0291ea0e7 /drivers/video/nexell_display.c
parent82975f8a9ec290b4cf2f9a228dd78761b35565ea (diff)
downloadu-boot-1fa43cad862591fe8917a0c1fe2f21f062c7502b.zip
u-boot-1fa43cad862591fe8917a0c1fe2f21f062c7502b.tar.gz
u-boot-1fa43cad862591fe8917a0c1fe2f21f062c7502b.tar.bz2
video: Drop references to CONFIG_VIDEO et al
Drop the Kconfigs which are not used and all references to them. In particular, this drops CONFIG_VIDEO to avoid confusion and allow us to eventually rename CONFIG_DM_VIDEO to CONFIG_VIDEO. Also drop the prototype for video_get_info_str() which is no-longer used. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Jason Liu <jason.hui.liu@nxp.com>
Diffstat (limited to 'drivers/video/nexell_display.c')
-rw-r--r--drivers/video/nexell_display.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/video/nexell_display.c b/drivers/video/nexell_display.c
index 0a9cea6..090fd6e 100644
--- a/drivers/video/nexell_display.c
+++ b/drivers/video/nexell_display.c
@@ -562,7 +562,6 @@ static int nx_display_probe(struct udevice *dev)
}
struct nx_display_dev *dp;
- /* unsigned int pp_index = 0; */
dp = nx_display_setup();
if (!dp) {
@@ -572,9 +571,7 @@ static int nx_display_probe(struct udevice *dev)
}
switch (dp->depth) {
-#if 0 /* GDF_16BIT_565RGB is not defined in video.h */
case 2:
- pp_index = GDF_16BIT_565RGB;
uc_priv->bpix = VIDEO_BPP16;
break;
case 3:
@@ -582,10 +579,8 @@ static int nx_display_probe(struct udevice *dev)
* type video_log2_bpp
*/
case 4:
- pp_index = GDF_32BIT_X888RGB;
uc_priv->bpix = VIDEO_BPP32;
break;
-#endif
default:
printf("fail : not support LCD bit per pixel %d\n",
dp->depth * 8);
@@ -598,8 +593,7 @@ static int nx_display_probe(struct udevice *dev)
/*
* set environment variable "fb_addr" (frame buffer address), required
- * for splash image. Because drv_video_init() in common/stdio.c is only
- * called when CONFIG_VIDEO is set (and not if CONFIG_DM_VIDEO is set).
+ * for splash image, which is not set if CONFIG_DM_VIDEO is enabled).
*/
sprintf(addr, "0x%x", dp->fb_addr);
debug("%s(): env_set(\"fb_addr\", %s) ...\n", __func__, addr);