Skip to content

Commit

Permalink
RFC: drm/lcdc: add support for LCD panels
Browse files Browse the repository at this point in the history
Add an output panel driver for LCD panels.  Tested with LCD3 cape on
beaglebone.

TODO: need some way to control the appropriate backlight device
TODO: probably want to make the DT bindings more generic for panel-info

Signed-off-by: Rob Clark <robdclark@gmail.com>
  • Loading branch information
robclark committed Dec 27, 2012
1 parent 270357f commit e2aef5f
Show file tree
Hide file tree
Showing 5 changed files with 490 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/lcdc/Kconfig
Expand Up @@ -4,6 +4,8 @@ config DRM_LCDC
select DRM_KMS_HELPER
select DRM_KMS_CMA_HELPER
select DRM_GEM_CMA_HELPER
select DISPLAY_TIMING
select OF_DISPLAY_TIMINGS
help
Choose this option if you have an TI SoC with LCDC display
controller, for example AM33xx in beagle-bone, DA8xx, or
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/lcdc/Makefile
Expand Up @@ -3,6 +3,7 @@ ccflags-y := -Iinclude/drm -Werror
lcdc-y := \
lcdc_crtc.o \
lcdc_tfp410.o \
lcdc_panel.o \
lcdc_drv.o

obj-$(CONFIG_DRM_LCDC) += lcdc.o
3 changes: 3 additions & 0 deletions drivers/gpu/drm/lcdc/lcdc_drv.c
Expand Up @@ -20,6 +20,7 @@
#include "lcdc_drv.h"
#include "lcdc_regs.h"
#include "lcdc_tfp410.h"
#include "lcdc_panel.h"

#include "drm_fb_helper.h"

Expand Down Expand Up @@ -586,13 +587,15 @@ static int __init lcdc_drm_init(void)
{
DBG("init");
lcdc_tfp410_init();
lcdc_panel_init();
return platform_driver_register(&lcdc_platform_driver);
}

static void __exit lcdc_drm_fini(void)
{
DBG("fini");
lcdc_tfp410_fini();
lcdc_panel_fini();
platform_driver_unregister(&lcdc_platform_driver);
}

Expand Down

0 comments on commit e2aef5f

Please sign in to comment.