Commit 49c6695c authored by Dave Stevenson's avatar Dave Stevenson Committed by popcornmix
Browse files

staging: vc04_services: Add new vc-sm-cma driver



This new driver allows contiguous memory blocks to be imported
into the VideoCore VPU memory map, and manages the lifetime of
those objects, only releasing the source dmabuf once the VPU has
confirmed it has finished with it.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.org>
parent b2980458
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ source "drivers/staging/vc04_services/bcm2835-audio/Kconfig"

source "drivers/staging/vc04_services/bcm2835-camera/Kconfig"
source "drivers/staging/vc04_services/vchiq-mmal/Kconfig"
source "drivers/staging/vc04_services/vc-sm-cma/Kconfig"

endif
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ vchiq-objs := \
obj-$(CONFIG_SND_BCM2835)	+= bcm2835-audio/
obj-$(CONFIG_VIDEO_BCM2835)	+= bcm2835-camera/
obj-$(CONFIG_BCM2835_VCHIQ_MMAL) += vchiq-mmal/
obj-$(CONFIG_BCM_VC_SM_CMA) 	+= vc-sm-cma/

ccflags-y += -Idrivers/staging/vc04_services -D__VCCOREVER__=0x04000000
+10 −0
Original line number Diff line number Diff line
config BCM_VC_SM_CMA
	tristate "VideoCore Shared Memory (CMA) driver"
	depends on BCM2835_VCHIQ
	select RBTREE
	select DMA_SHARED_BUFFER
	help
	  Say Y here to enable the shared memory interface that
	  supports sharing dmabufs with VideoCore.
	  This operates over the VCHIQ interface to a service
	  running on VideoCore.
+8 −0
Original line number Diff line number Diff line
ccflags-y += -Idrivers/staging/vc04_services -Idrivers/staging/vc04_services/interface/vchi -Idrivers/staging/vc04_services/interface/vchiq_arm
# -I"drivers/staging/android/ion/" -I"$(srctree)/fs/"
ccflags-y += -D__VCCOREVER__=0

vc-sm-cma-$(CONFIG_BCM_VC_SM_CMA) := \
	vc_sm.o vc_sm_cma_vchi.o

obj-$(CONFIG_BCM_VC_SM_CMA) += vc-sm-cma.o
+2 −0
Original line number Diff line number Diff line
1) Convert to a platform driver.
Loading