Skip to content

Commit aa62bfb

Browse files
committed
cma: Add vc_cma driver to enable use of CMA
Signed-off-by: popcornmix <popcornmix@gmail.com>
1 parent 23194c5 commit aa62bfb

8 files changed

Lines changed: 1208 additions & 1 deletion

File tree

‎drivers/char/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,8 @@ config DEVPORT
581581

582582
source "drivers/s390/char/Kconfig"
583583

584+
source "drivers/char/broadcom/Kconfig"
585+
584586
config MSM_SMD_PKT
585587
bool "Enable device interface for some SMD packet ports"
586588
default n

‎drivers/char/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ obj-$(CONFIG_JS_RTC) += js-rtc.o
6161
js-rtc-y = rtc.o
6262

6363
obj-$(CONFIG_TILE_SROM) += tile-srom.o
64+
65+
obj-$(CONFIG_BRCM_CHAR_DRIVERS) += broadcom/

‎drivers/char/broadcom/Kconfig‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#
2+
# Broadcom char driver config
3+
#
4+
5+
menuconfig BRCM_CHAR_DRIVERS
6+
bool "Broadcom Char Drivers"
7+
help
8+
Broadcom's char drivers
9+
10+
config BCM_VC_CMA
11+
bool "Videocore CMA"
12+
depends on CMA && BRCM_CHAR_DRIVERS && BCM2708_VCHIQ
13+
default n
14+
help
15+
Helper for videocore CMA access.
16+

‎drivers/char/broadcom/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj-$(CONFIG_BCM_VC_CMA) += vc_cma/
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ccflags-y += -Wall -Wstrict-prototypes -Wno-trigraphs
2+
ccflags-y += -Werror
3+
ccflags-y += -Iinclude/linux/broadcom
4+
ccflags-y += -Idrivers/misc/vc04_services
5+
ccflags-y += -Idrivers/misc/vc04_services/interface/vchi
6+
ccflags-y += -Idrivers/misc/vc04_services/interface/vchiq_arm
7+
8+
ccflags-y += -D__KERNEL__
9+
ccflags-y += -D__linux__
10+
ccflags-y += -Werror
11+
12+
obj-$(CONFIG_BCM_VC_CMA) += vc-cma.o
13+
14+
vc-cma-objs := vc_cma.o

0 commit comments

Comments
 (0)