mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
Add resource structure data and probe() logic to support static
declarations of encoder and decoder.
Right now we rely on video encoder/decoder selection happening in the dtb
but, this goes against the remit of device tree which is supposed to
describe hardware, not select functional logic in Linux drivers.
Provide two strings in the venus resource structure enc_nodename and
dec_nodename.
When set the venus driver will create an OF entry in-memory consistent
with:
dec_nodename {
compat = "video-decoder";
};
and/or
enc_nodename {
compat = "video-encoder";
};
This will allow us to reuse the existing driver scheme of relying on compat
names maintaining compatibility with old dtb files.
dec_nodename can be "video-decoder" or "video0"
enc_nodename can be "video-encoder" or "video1"
This change relies on of_changeset() API as a result select OF_DYNAMIC will
be added to venus/Kconfig
Tested-by: Renjiang Han <quic_renjiang@quicinc.com>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
16 lines
550 B
Plaintext
16 lines
550 B
Plaintext
config VIDEO_QCOM_VENUS
|
|
tristate "Qualcomm Venus V4L2 encoder/decoder driver"
|
|
depends on V4L_MEM2MEM_DRIVERS
|
|
depends on VIDEO_DEV && QCOM_SMEM
|
|
depends on (ARCH_QCOM && IOMMU_DMA) || COMPILE_TEST
|
|
select OF_DYNAMIC if ARCH_QCOM
|
|
select QCOM_MDT_LOADER if ARCH_QCOM
|
|
select QCOM_SCM
|
|
select VIDEOBUF2_DMA_CONTIG
|
|
select V4L2_MEM2MEM_DEV
|
|
help
|
|
This is a V4L2 driver for Qualcomm Venus video accelerator
|
|
hardware. It accelerates encoding and decoding operations
|
|
on various Qualcomm SoCs.
|
|
To compile this driver as a module choose m here.
|