Skip to content

Commit

Permalink
cma: Add vc_cma driver to enable use of CMA
Browse files Browse the repository at this point in the history
Signed-off-by: popcornmix <[email protected]>
  • Loading branch information
popcornmix committed Apr 27, 2014
1 parent 79c6ee6 commit 580927b
Show file tree
Hide file tree
Showing 8 changed files with 1,208 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/char/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ config DEVPORT

source "drivers/s390/char/Kconfig"

source "drivers/char/broadcom/Kconfig"

config MSM_SMD_PKT
bool "Enable device interface for some SMD packet ports"
default n
Expand Down
2 changes: 2 additions & 0 deletions drivers/char/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ obj-$(CONFIG_JS_RTC) += js-rtc.o
js-rtc-y = rtc.o

obj-$(CONFIG_TILE_SROM) += tile-srom.o

obj-$(CONFIG_BRCM_CHAR_DRIVERS) += broadcom/
16 changes: 16 additions & 0 deletions drivers/char/broadcom/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Broadcom char driver config
#

menuconfig BRCM_CHAR_DRIVERS
bool "Broadcom Char Drivers"
help
Broadcom's char drivers

config BCM_VC_CMA
bool "Videocore CMA"
depends on CMA && BRCM_CHAR_DRIVERS && BCM2708_VCHIQ
default n
help
Helper for videocore CMA access.

1 change: 1 addition & 0 deletions drivers/char/broadcom/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_BCM_VC_CMA) += vc_cma/
14 changes: 14 additions & 0 deletions drivers/char/broadcom/vc_cma/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ccflags-y += -Wall -Wstrict-prototypes -Wno-trigraphs
ccflags-y += -Werror
ccflags-y += -Iinclude/linux/broadcom
ccflags-y += -Idrivers/misc/vc04_services
ccflags-y += -Idrivers/misc/vc04_services/interface/vchi
ccflags-y += -Idrivers/misc/vc04_services/interface/vchiq_arm

ccflags-y += -D__KERNEL__
ccflags-y += -D__linux__
ccflags-y += -Werror

obj-$(CONFIG_BCM_VC_CMA) += vc-cma.o

vc-cma-objs := vc_cma.o
Loading

0 comments on commit 580927b

Please sign in to comment.