ARM: DaVinci: DM646x Video: Makefile and config files modifications for Display
RFC 5/7 ARM: DaVinci: DM646x Video: Makefile and config files modifications for Display
From: Chaithrika U S <[email protected]>
Makefile and Kconfig changes
Modifies and adds the video Makefiles and Kconfig files to support DM646x Video display device
---
Applies to v4l-dvb repository located at
http://linuxtv.org/hg/v4l-dvb/rev/1fd54a62abde
drivers/media/video/Kconfig | 22 ++++++++++++++++++++++ drivers/media/video/Makefile | 2 ++ drivers/media/video/davinci/Makefile | 9 +++++++++ 3 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 drivers/media/video/davinci/Makefile
drivers/media/video/Kconfig +22 -0
@@ -471,6 +471,28 @@ config VIDEO_UPD64083 endmenu # encoder / decoder chips +config DISPLAY_DAVINCI_DM646X_EVM + tristate "DM646x EVM Video Display" + depends on VIDEO_DEV && MACH_DAVINCI_DM646X_EVM + select VIDEOBUF_DMA_CONTIG + select VIDEO_DAVINCI_VPIF + select VIDEO_ADV7343 + select VIDEO_THS7303 + help + Support for DaVinci based display device. + + To compile this driver as a module, choose M here: the + module will be called davincihd_display. + +config VIDEO_DAVINCI_VPIF + tristate "DaVinci VPIF Driver" + depends on DISPLAY_DAVINCI_DM646X_EVM + help + Support for DaVinci VPIF Driver. + + To compile this driver as a module, choose M here: the + module will be called vpif. + config VIDEO_VIVI tristate "Virtual Video Driver" depends on VIDEO_DEV && VIDEO_V4L2 && !SPARC32 && !SPARC64
drivers/media/video/Makefile +2 -0
@@ -151,6 +151,8 @@ obj-$(CONFIG_VIDEO_AU0828) += au0828/ obj-$(CONFIG_USB_VIDEO_CLASS) += uvc/ +obj-$(CONFIG_ARCH_DAVINCI) += davinci/ + EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends EXTRA_CFLAGS += -Idrivers/media/common/tuners
drivers/media/video/davinci/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# +# Makefile for the davinci video device drivers. +# + +# VPIF +obj-$(CONFIG_VIDEO_DAVINCI_VPIF) += vpif.o + +#DM646x EVM Display driver +obj-$(CONFIG_DISPLAY_DAVINCI_DM646X_EVM) += dm646x_display.o
Signature · 1 line
1.5.6
Quoted 8 lines · On Friday 13 March 2009, [email protected] wrote:
+configDISPLAY_DAVINCI_DM646X_EVM
+ tristate "DM646x EVM Video Display"
+ depends onVIDEO_DEV&&MACH_DAVINCI_DM646X_EVM
+ selectVIDEOBUF_DMA_CONTIG
+ selectVIDEO_DAVINCI_VPIF
+ selectVIDEO_ADV7343
+ selectVIDEO_THS7303
A quick glance at the dm646x_display.c code in patch 7 suggests that the file name is generic, but the code is full of EVM-specific bits.
I suggest either making the code generic (and maybe move most of that VPIF code into the VPIF driver) so other dm646x boards can reuse it ... or renaming it. Generic would IMO be preferrable.
Quoted 3 lines
+config
VIDEO_DAVINCI_VPIF
+ tristate "DaVinci VPIF Driver"
+ depends onDISPLAY_DAVINCI_DM646X_EVM
Please have the Kconfig helptext here explain what a VPIF is and does.
Surely the driver is usable for any dm646x board, not just the EVM hardware; so, "depends on ARCH_DAVINCI_DM646x".
And, patch style point, most of us like to see one patch adding an entire driver ... C source, headers, and its associated Kconfig and Kbuild support. Make sure that the kernel continues building between patches; in this case, the build will break after patch #5 since the source code it tries to build hasn't been added yet.