Skip to content

Commit 0a06a49

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

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
@@ -580,6 +580,8 @@ config DEVPORT
580580

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

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

‎drivers/char/Makefile‎

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

6464
obj-$(CONFIG_TILE_SROM) += tile-srom.o
65+
66+
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+
EXTRA_CFLAGS += -Wall -Wstrict-prototypes -Wno-trigraphs
2+
EXTRA_CFLAGS += -Werror
3+
EXTRA_CFLAGS += -I"include/linux/broadcom"
4+
EXTRA_CFLAGS += -I"drivers/misc/vc04_services"
5+
EXTRA_CFLAGS += -I"drivers/misc/vc04_services/interface/vchi"
6+
EXTRA_CFLAGS += -I"drivers/misc/vc04_services/interface/vchiq_arm"
7+
8+
EXTRA_CFLAGS += -D__KERNEL__
9+
EXTRA_CFLAGS += -D__linux__
10+
EXTRA_CFLAGS += -Werror
11+
12+
obj-$(CONFIG_BCM_VC_CMA) += vc-cma.o
13+
14+
vc-cma-objs := vc_cma.o

0 commit comments

Comments
 (0)