blob: c354c402c288b4c004bd2b5cc74a4d00beef2773 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Philippe CORNUdcbad9a2017-08-03 12:36:08 +02002#
3# Copyright (C) STMicroelectronics SA 2017
4#
5# Authors: Philippe Cornu <philippe.cornu@st.com>
6# Yannick Fertre <yannick.fertre@st.com>
Philippe CORNUdcbad9a2017-08-03 12:36:08 +02007
8menuconfig VIDEO_STM32
9 bool "Enable STM32 video support"
Simon Glass52cb5042022-10-18 07:46:31 -060010 depends on VIDEO
Alexander Graf50662612023-08-21 16:51:10 +030011 imply VIDEO_DAMAGE
Philippe CORNUdcbad9a2017-08-03 12:36:08 +020012 help
13 STM32 supports many video output options including RGB and
14 DSI. This option enables these supports which can be used on
15 devices which have RGB TFT or DSI display connected.
16
Yannick Fertré1334cf22019-10-07 15:29:07 +020017config VIDEO_STM32_DSI
18 bool "Enable STM32 DSI video support"
19 depends on VIDEO_STM32
20 select VIDEO_BRIDGE
21 select VIDEO_DW_MIPI_DSI
22 help
23 This option enables support DSI internal bridge which can be used on
24 devices which have DSI devices connected.
25
Philippe CORNUdcbad9a2017-08-03 12:36:08 +020026config VIDEO_STM32_MAX_XRES
27 int "Maximum horizontal resolution (for memory allocation purposes)"
28 depends on VIDEO_STM32
29 default 640
30 help
31 The maximum horizontal resolution to support for the framebuffer.
32 This configuration is used for reserving/allocating memory for the
33 framebuffer during device-model binding/probing.
34
35config VIDEO_STM32_MAX_YRES
36 int "Maximum vertical resolution (for memory allocation purposes)"
37 depends on VIDEO_STM32
38 default 480
39 help
40 The maximum vertical resolution to support for the framebuffer.
41 This configuration is used for reserving/allocating memory for the
42 framebuffer during device-model binding/probing.
43
44config VIDEO_STM32_MAX_BPP
45 int "Maximum bits per pixel (for memory allocation purposes)"
46 depends on VIDEO_STM32
47 default 16
48 help
49 The maximum bits per pixel to support for the framebuffer.
50 This configuration is used for reserving/allocating memory for the
51 framebuffer during device-model binding/probing.
52