mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
omapfb provides several sysfs interfaces for framebuffer configuration and debugging, but these are not required for the core driver. Remove the hard dependency on CONFIG_FB_DEVICE and make sysfs support optional by using dev_of_fbinfo() to obtain the backing device at runtime. When FB_DEVICE is disabled, sysfs operations are skipped while the code still builds and is type-checked. Suggested-by: Helge Deller <deller@gmx.de> Signed-off-by: Chintan Patel <chintanlike@gmail.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Helge Deller <deller@gmx.de>
41 lines
998 B
Plaintext
41 lines
998 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config OMAP2_VRFB
|
|
bool
|
|
|
|
menuconfig FB_OMAP2
|
|
tristate "OMAP2+ frame buffer support"
|
|
depends on FB
|
|
depends on DRM_OMAP = n
|
|
depends on GPIOLIB
|
|
select FB_OMAP2_DSS
|
|
select OMAP2_VRFB if ARCH_OMAP2 || ARCH_OMAP3
|
|
select FB_IOMEM_HELPERS
|
|
help
|
|
Frame buffer driver for OMAP2+ based boards.
|
|
FB_DEVICE is not required, but if enabled, provides sysfs interface
|
|
for framebuffer configuration and debugging.
|
|
|
|
if FB_OMAP2
|
|
|
|
config FB_OMAP2_DEBUG_SUPPORT
|
|
bool "Debug support for OMAP2+ FB"
|
|
default y
|
|
depends on FB_OMAP2
|
|
help
|
|
Support for debug output. You have to enable the actual printing
|
|
with 'debug' module parameter.
|
|
|
|
config FB_OMAP2_NUM_FBS
|
|
int "Number of framebuffers"
|
|
range 1 10
|
|
default 3
|
|
depends on FB_OMAP2
|
|
help
|
|
Select the number of framebuffers created. OMAP2/3 has 3 overlays
|
|
so normally this would be 3.
|
|
|
|
source "drivers/video/fbdev/omap2/omapfb/dss/Kconfig"
|
|
source "drivers/video/fbdev/omap2/omapfb/displays/Kconfig"
|
|
|
|
endif
|