-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correct format rollback clang_format Signed-off-by: longyiluo <[email protected]>
- Loading branch information
Showing
71 changed files
with
101,922 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
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,38 @@ | ||
config VPU_CANAAN | ||
tristate "Linlon VPU support." | ||
depends on VIDEO_DEV | ||
depends on COMMON_CLK && HAS_DMA | ||
select VIDEO_V4L2_SUBDEV_API | ||
select VIDEOBUF2_DMA_CONTIG | ||
select V4L_MEM2MEM_DRIVERS | ||
select V4L2_FWNODE | ||
select VIDEOBUF2_DMA_SG | ||
default y | ||
help | ||
This is a v4l2 driver for Canaan video codec. | ||
Canaan video codec is video decoder and encoder hardware unit. | ||
It accelerates video decoder and encoder operations, such as h264, hevc, | ||
jpeg formats. | ||
To compile this driver as a module choose m here. | ||
|
||
config VPU_CANAAN_FTRACE | ||
depends on VPU_CANAAN | ||
bool "Send kernel space logs to ftrace." | ||
default n | ||
help | ||
This is a v4l2 driver for Canaan video codec. | ||
Canaan video codec is video decoder and encoder hardware unit. | ||
It accelerates video decoder and encoder operations, such as h264, hevc, | ||
jpeg formats. Send kernel space logs to ftrace. | ||
To compile this driver as a module choose m here. | ||
|
||
config VPU_CANAAN_PRINT_FILE | ||
depends on VPU_CANAAN | ||
bool "Append file and line number to kernel space log messages." | ||
default y | ||
help | ||
This is a v4l2 driver for Canaan video codec. | ||
Canaan video codec is video decoder and encoder hardware unit. | ||
It accelerates video decoder and encoder operations, such as h264, hevc, | ||
jpeg formats. Append file and line number to kernel space log messages. | ||
To compile this driver as a module choose m here. |
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,58 @@ | ||
#############################################if/############## | ||
# 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_VPU_CANAAN_FTRACE) += -DMVX_LOG_FTRACE_ENABLE | ||
ccflags-$(CONFIG_VPU_CANAAN_PRINT_FILE) += -DMVX_LOG_PRINT_FILE_ENABLE | ||
ccflags-y += $(EXTRA_CCFLAGS) | ||
|
||
########################################################### | ||
# Define build targets and what files to include. | ||
########################################################### | ||
|
||
# Amvx module | ||
obj-$(CONFIG_VPU_CANAAN) := amvx.o | ||
|
||
# Add objects for if module. | ||
if-y := mvx_if.o \ | ||
mvx_buffer.o \ | ||
mvx_firmware_cache.o \ | ||
mvx_firmware.o \ | ||
mvx_firmware_v2.o \ | ||
mvx_firmware_v3.o \ | ||
mvx_mmu.o \ | ||
mvx_secure.o \ | ||
mvx_session.o \ | ||
fw_jpegenc.o \ | ||
fw_jpegdec.o \ | ||
fw_h264enc.o \ | ||
fw_h264dec.o \ | ||
fw_hevcenc.o \ | ||
fw_hevcdec.o | ||
|
||
# Add external interface. | ||
if-y += mvx_ext_v4l2.o \ | ||
mvx_v4l2_buffer.o \ | ||
mvx_v4l2_session.o \ | ||
mvx_v4l2_vidioc.o \ | ||
mvx_v4l2_fops.o \ | ||
mvx_v4l2_ctrls.o | ||
|
||
# Add objects for dev module. | ||
dev-y := mvx_dev.o \ | ||
mvx_hwreg.o \ | ||
mvx_hwreg_v500.o \ | ||
mvx_hwreg_v550.o \ | ||
mvx_hwreg_v61.o \ | ||
mvx_hwreg_v52_v76.o \ | ||
mvx_lsid.o \ | ||
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) |
11,335 changes: 11,335 additions & 0 deletions
11,335
drivers/media/platform/canaan/vpu/fw_h264dec.c
Large diffs are not rendered by default.
Oops, something went wrong.
15,101 changes: 15,101 additions & 0 deletions
15,101
drivers/media/platform/canaan/vpu/fw_h264enc.c
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
14,775 changes: 14,775 additions & 0 deletions
14,775
drivers/media/platform/canaan/vpu/fw_hevcenc.c
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
11,613 changes: 11,613 additions & 0 deletions
11,613
drivers/media/platform/canaan/vpu/fw_jpegenc.c
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.