aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-21 15:36:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-21 15:36:53 +0000
commit5a502875b183c0b86b284573b0bbbc30101f635c (patch)
tree7094b35573c61a3f544e7c95b00e5f081970ce45 /package/kernel/linux
parent10b487273a3785d829b0ad56c63c73f59db663b3 (diff)
downloadupstream-5a502875b183c0b86b284573b0bbbc30101f635c.tar.gz
upstream-5a502875b183c0b86b284573b0bbbc30101f635c.tar.bz2
upstream-5a502875b183c0b86b284573b0bbbc30101f635c.zip
kernel: add backlight kernel module support
Signed-off-by: Tim Harvey <tharvey@gateworks.com> SVN-Revision: 48432
Diffstat (limited to 'package/kernel/linux')
-rw-r--r--package/kernel/linux/modules/video.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index 4226adc33a..61d7d88497 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -11,6 +11,52 @@ VIDEO_MENU:=Video Support
V4L2_DIR=v4l2-core
V4L2_USB_DIR=usb
+#
+# Video Display
+#
+
+define KernelPackage/backlight
+ SUBMENU:=$(VIDEO_MENU)
+ TITLE:=Backlight support
+ KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \
+ CONFIG_BACKLIGHT_LCD_SUPPORT=y \
+ CONFIG_LCD_CLASS_DEVICE=n \
+ CONFIG_BACKLIGHT_PWM=n \
+ CONFIG_BACKLIGHT_GENERIC=n \
+ CONFIG_BACKLIGHT_ADP8860=n \
+ CONFIG_BACKLIGHT_ADP8870=n \
+ CONFIG_BACKLIGHT_PM8941_WLED=n
+ FILES:=$(LINUX_DIR)/drivers/video/backlight/backlight.ko
+ AUTOLOAD:=$(call AutoProbe,video backlight)
+endef
+
+define KernelPackage/backlight/description
+ Kernel module for Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight))
+
+define AddDepends/backlight
+ SUBMENU:=$(VIDEO_MENU)
+ DEPENDS+=kmod-backlight $(1)
+endef
+
+define KernelPackage/backlight-pwm
+ TITLE:=PWM Backlight support
+ DEPENDS:=+kmod-pwm
+ KCONFIG:=CONFIG_BACKLIGHT_PWM=m
+ FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
+ AUTOLOAD:=$(call AutoProbe,video pwm_bl)
+ $(call AddDepends/backlight)
+endef
+
+define KernelPackage/backlight/backlight-pwm
+ Kernel module for PWM based Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight-pwm))
+
+
define KernelPackage/fb
SUBMENU:=$(VIDEO_MENU)
TITLE:=Framebuffer support