-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cma: Add vc_cma driver to enable use of CMA
Signed-off-by: popcornmix <[email protected]> vc_cma: Make the vc_cma area the default contiguous DMA area vc_cma: Provide empty functions when module is not built Providing empty functions saves the users from guarding the function call with an #if clause. Move __init markings from prototypes to functions. Signed-off-by: Noralf Trønnes <[email protected]>
- Loading branch information
1 parent
508bc1b
commit e3b43f7
Showing
7 changed files
with
1,262 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
obj-$(CONFIG_BCM_VC_CMA) += vc_cma/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.