Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drivers/media/platform/cix/Kconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
source "drivers/media/platform/cix/linlon-aeu/Kconfig"

source "drivers/media/platform/cix/cix_vpu/Kconfig"
2 changes: 2 additions & 0 deletions drivers/media/platform/cix/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_LINLON_AEU) += linlon-aeu/

obj-$(CONFIG_VIDEO_LINLON) += cix_vpu/
52 changes: 52 additions & 0 deletions drivers/media/platform/cix/cix_vpu/Kbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
###########################################################
# Set the include-path according to the defined interface.
###########################################################

ccflags-y += -I$(src) -I$(src)/if -I$(src)/dev -I$(src)/if/v4l2 -I$(src)/external
ccflags-$(CONFIG_VIDEO_LINLON_FTRACE) += -DMVX_LOG_FTRACE_ENABLE
ccflags-$(CONFIG_VIDEO_LINLON_PRINT_FILE) += -DMVX_LOG_PRINT_FILE_ENABLE
ccflags-y += $(EXTRA_CCFLAGS)

###########################################################
# Define build targets and what files to include.
###########################################################

# Amvx module
obj-$(CONFIG_VIDEO_LINLON) := amvx.o

# Add objects for if module.
if-y := if/mvx_if.o \
if/mvx_buffer.o \
if/mvx_firmware_cache.o \
if/mvx_firmware.o \
if/mvx_firmware_v2.o \
if/mvx_firmware_v3.o \
if/mvx_mmu.o \
if/mvx_secure.o \
if/mvx_session.o

# Add external interface.
if-y += if/v4l2/mvx_ext_v4l2.o \
if/v4l2/mvx_v4l2_buffer.o \
if/v4l2/mvx_v4l2_session.o \
if/v4l2/mvx_v4l2_vidioc.o \
if/v4l2/mvx_v4l2_fops.o \
if/v4l2/mvx_v4l2_ctrls.o

# Add objects for dev module.
dev-y := dev/mvx_dev.o \
dev/mvx_hwreg.o \
dev/mvx_hwreg_v500.o \
dev/mvx_hwreg_v550.o \
dev/mvx_hwreg_v61.o \
dev/mvx_hwreg_v52_v76.o \
dev/mvx_lsid.o \
dev/mvx_scheduler.o \
mvx_pm_runtime.o

# Add driver objects.
amvx-y := mvx_driver.o \
mvx_seq.o \
mvx_log.o \
mvx_log_group.o \
$(if-y) $(dev-y)
20 changes: 20 additions & 0 deletions drivers/media/platform/cix/cix_vpu/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config VIDEO_LINLON
tristate "Linlon VPU support."
depends on VIDEO_DEV
default m
help
This enables support for the Linlon VPU family.

config VIDEO_LINLON_FTRACE
depends on VIDEO_LINLON
bool "Send kernel space logs to ftrace."
default n
help
Send kernel space logs to ftrace.

config VIDEO_LINLON_PRINT_FILE
depends on VIDEO_LINLON
bool "Append file and line number to kernel space log messages."
default y
help
Append file and line number to kernel space log messages.
11 changes: 11 additions & 0 deletions drivers/media/platform/cix/cix_vpu/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
all: mono_v4l2

mono_v4l2:
@env CONFIG_VIDEO_LINLON=m CONFIG_VIDEO_LINLON_MONO=y CONFIG_VIDEO_LINLON_IF_V4L2=y $(MAKE) -C $(KDIR) M=$(CURDIR) modules

clean:
@rm -rf *.ko
@find . -type f -name '*.o' -delete
@rm -rf *.mod.c
@rm -f Module.symvers
@rm -f modules.order
Loading