diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index f096a54..e108d8a 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -93,4 +93,8 @@ This enabled support for reading and parsing EDID data from an attached monitor. +config DRIVER_VIDEO_BACKLIGHT + bool "Add backlight support" + help + Enable this for backlight support. endif diff --git a/drivers/video/Makefile b/drivers/video/Makefile index ae9f6e5..0655b0f 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -1,6 +1,7 @@ obj-$(CONFIG_VIDEO) += fb.o obj-$(CONFIG_DRIVER_VIDEO_EDID) += edid.o obj-$(CONFIG_OFDEVICE) += of_display_timing.o +obj-$(CONFIG_DRIVER_VIDEO_BACKLIGHT) += backlight.o obj-$(CONFIG_DRIVER_VIDEO_ATMEL) += atmel_lcdfb.o atmel_lcdfb_core.o obj-$(CONFIG_DRIVER_VIDEO_ATMEL_HLCD) += atmel_hlcdfb.o atmel_lcdfb_core.o diff --git a/drivers/video/backlight.c b/drivers/video/backlight.c new file mode 100644 index 0000000..ddde6f8 --- /dev/null +++ b/drivers/video/backlight.c @@ -0,0 +1,90 @@ +#include +#include +#include +#include