diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 1dcae48..79de32c 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -124,6 +124,13 @@ help Enable this to get support for backlight devices driven by a PWM. +config BACKLIGHT_RAVE_SP + tristate "RAVE SP Backlight driver" + depends on RAVE_SP_CORE + depends on DRIVER_VIDEO_BACKLIGHT + help + Support for backlight control on RAVE SP device. + comment "Video encoder chips" config DRIVER_VIDEO_MTL017 diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 081e446..01fabe8 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -23,3 +23,5 @@ obj-$(CONFIG_DRIVER_VIDEO_IMX_IPUV3) += imx-ipu-v3/ obj-$(CONFIG_DRIVER_VIDEO_EFI_GOP) += efi_gop.o obj-$(CONFIG_DRIVER_VIDEO_FB_SSD1307) += ssd1307fb.o +obj-$(CONFIG_BACKLIGHT_RAVE_SP) += rave-sp-backlight.o + diff --git a/drivers/video/rave-sp-backlight.c b/drivers/video/rave-sp-backlight.c new file mode 100644 index 0000000..88ec86e --- /dev/null +++ b/drivers/video/rave-sp-backlight.c @@ -0,0 +1,72 @@ +/* + * LCD Backlight driver for RAVE SP + * + * Copyright (C) 2018 Zodiac Inflight Innovations + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include +#include +#include +#include