Commit 9d4fa1a1 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp: cleanup directory hierarchy

This driver has very long directories without a good
reason (IMHO). Let's drop two directories from such hierarchy,
in order to simplify things a little bit and make the dir
output a bit more readable.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent d8763340
menuconfig INTEL_ATOMISP menuconfig INTEL_ATOMISP
bool "Enable support to Intel MIPI camera drivers" bool "Enable support to Intel Atom ISP camera drivers"
depends on X86 && EFI && PCI && ACPI depends on X86 && EFI && PCI && ACPI
select IOSF_MBI select IOSF_MBI
select MEDIA_CONTROLLER select MEDIA_CONTROLLER
...@@ -8,7 +8,17 @@ menuconfig INTEL_ATOMISP ...@@ -8,7 +8,17 @@ menuconfig INTEL_ATOMISP
Enable support for the Intel ISP2 camera interfaces and MIPI Enable support for the Intel ISP2 camera interfaces and MIPI
sensor drivers. sensor drivers.
config VIDEO_ATOMISP
tristate "Intel Atom Image Signal Processor Driver"
depends on VIDEO_V4L2 && INTEL_ATOMISP
select IOSF_MBI
select VIDEOBUF_VMALLOC
---help---
Say Y here if your platform supports Intel Atom SoC
camera imaging subsystem.
To compile this driver as a module, choose M here: the
module will be called atomisp
if INTEL_ATOMISP if INTEL_ATOMISP
source "drivers/staging/media/atomisp/pci/Kconfig"
source "drivers/staging/media/atomisp/i2c/Kconfig" source "drivers/staging/media/atomisp/i2c/Kconfig"
endif endif
# #
# Makefile for camera drivers. # Makefile for camera drivers.
# #
obj-$(CONFIG_INTEL_ATOMISP) += pci/
obj-$(CONFIG_INTEL_ATOMISP) += i2c/ obj-$(CONFIG_INTEL_ATOMISP) += i2c/
obj-$(CONFIG_INTEL_ATOMISP) += platform/ obj-$(CONFIG_INTEL_ATOMISP) += platform/
obj-$(CONFIG_VIDEO_ATOMISP) += atomisp.o
atomisp = $(srctree)/drivers/staging/media/atomisp/
# SPDX-License-Identifier: GPL-2.0
atomisp-objs += \
pci/atomisp_acc.o \
pci/atomisp_cmd.o \
pci/atomisp_compat_css20.o \
pci/atomisp_compat_ioctl32.o \
pci/atomisp_csi2.o \
pci/atomisp_drvfs.o \
pci/atomisp_file.o \
pci/atomisp_fops.o \
pci/atomisp_ioctl.o \
pci/atomisp_subdev.o \
pci/atomisp_tpg.o \
pci/atomisp_v4l2.o \
pci/sh_css_firmware.o \
pci/sh_css_host_data.o \
pci/sh_css_hrt.o \
pci/sh_css_metadata.o \
pci/sh_css_metrics.o \
pci/sh_css_mipi.o \
pci/sh_css_mmu.o \
pci/sh_css_morph.o \
pci/sh_css.o \
pci/sh_css_param_dvs.o \
pci/sh_css_param_shading.o \
pci/sh_css_params.o \
pci/sh_css_pipe.o \
pci/sh_css_properties.o \
pci/sh_css_shading.o \
pci/sh_css_sp.o \
pci/sh_css_stream_format.o \
pci/sh_css_stream.o \
pci/sh_css_version.o \
pci/base/circbuf/src/circbuf.o \
pci/base/refcount/src/refcount.o \
pci/camera/pipe/src/pipe_binarydesc.o \
pci/camera/pipe/src/pipe_stagedesc.o \
pci/camera/pipe/src/pipe_util.o \
pci/camera/util/src/util.o \
pci/hmm/hmm_bo.o \
pci/hmm/hmm_dynamic_pool.o \
pci/hmm/hmm.o \
pci/hmm/hmm_reserved_pool.o \
pci/hmm/hmm_vm.o \
pci/hrt/hive_isp_css_mm_hrt.o \
pci/ia_css_device_access.o \
pci/ia_css_memory_access.o \
pci/isp/kernels/aa/aa_2/ia_css_aa2.host.o \
pci/isp/kernels/anr/anr_1.0/ia_css_anr.host.o \
pci/isp/kernels/anr/anr_2/ia_css_anr2.host.o \
pci/isp/kernels/anr/anr_2/ia_css_anr2_table.host.o \
pci/isp/kernels/bh/bh_2/ia_css_bh.host.o \
pci/isp/kernels/bnlm/ia_css_bnlm.host.o \
pci/isp/kernels/bnr/bnr_1.0/ia_css_bnr.host.o \
pci/isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.o \
pci/isp/kernels/cnr/cnr_1.0/ia_css_cnr.host.o \
pci/isp/kernels/cnr/cnr_2/ia_css_cnr2.host.o \
pci/isp/kernels/conversion/conversion_1.0/ia_css_conversion.host.o \
pci/isp/kernels/copy_output/copy_output_1.0/ia_css_copy_output.host.o \
pci/isp/kernels/crop/crop_1.0/ia_css_crop.host.o \
pci/isp/kernels/csc/csc_1.0/ia_css_csc.host.o \
pci/isp/kernels/ctc/ctc_1.0/ia_css_ctc.host.o \
pci/isp/kernels/ctc/ctc_1.0/ia_css_ctc_table.host.o \
pci/isp/kernels/ctc/ctc1_5/ia_css_ctc1_5.host.o \
pci/isp/kernels/ctc/ctc2/ia_css_ctc2.host.o \
pci/isp/kernels/de/de_1.0/ia_css_de.host.o \
pci/isp/kernels/de/de_2/ia_css_de2.host.o \
pci/isp/kernels/dpc2/ia_css_dpc2.host.o \
pci/isp/kernels/dp/dp_1.0/ia_css_dp.host.o \
pci/isp/kernels/dvs/dvs_1.0/ia_css_dvs.host.o \
pci/isp/kernels/eed1_8/ia_css_eed1_8.host.o \
pci/isp/kernels/fc/fc_1.0/ia_css_formats.host.o \
pci/isp/kernels/fpn/fpn_1.0/ia_css_fpn.host.o \
pci/isp/kernels/gc/gc_1.0/ia_css_gc.host.o \
pci/isp/kernels/gc/gc_1.0/ia_css_gc_table.host.o \
pci/isp/kernels/gc/gc_2/ia_css_gc2.host.o \
pci/isp/kernels/gc/gc_2/ia_css_gc2_table.host.o \
pci/isp/kernels/hdr/ia_css_hdr.host.o \
pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.o \
pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.o \
pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/ia_css_yuv444_io.host.o \
pci/isp/kernels/iterator/iterator_1.0/ia_css_iterator.host.o \
pci/isp/kernels/macc/macc_1.0/ia_css_macc.host.o \
pci/isp/kernels/macc/macc_1.0/ia_css_macc_table.host.o \
pci/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.o \
pci/isp/kernels/macc/macc1_5/ia_css_macc1_5_table.host.o \
pci/isp/kernels/norm/norm_1.0/ia_css_norm.host.o \
pci/isp/kernels/ob/ob_1.0/ia_css_ob.host.o \
pci/isp/kernels/ob/ob2/ia_css_ob2.host.o \
pci/isp/kernels/output/output_1.0/ia_css_output.host.o \
pci/isp/kernels/qplane/qplane_2/ia_css_qplane.host.o \
pci/isp/kernels/raw_aa_binning/raw_aa_binning_1.0/ia_css_raa.host.o \
pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.o \
pci/isp/kernels/ref/ref_1.0/ia_css_ref.host.o \
pci/isp/kernels/s3a/s3a_1.0/ia_css_s3a.host.o \
pci/isp/kernels/sc/sc_1.0/ia_css_sc.host.o \
pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.o \
pci/isp/kernels/sdis/sdis_2/ia_css_sdis2.host.o \
pci/isp/kernels/tdf/tdf_1.0/ia_css_tdf.host.o \
pci/isp/kernels/tnr/tnr_1.0/ia_css_tnr.host.o \
pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.o \
pci/isp/kernels/wb/wb_1.0/ia_css_wb.host.o \
pci/isp/kernels/xnr/xnr_1.0/ia_css_xnr.host.o \
pci/isp/kernels/xnr/xnr_1.0/ia_css_xnr_table.host.o \
pci/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.o \
pci/isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.o \
pci/isp/kernels/ynr/ynr_2/ia_css_ynr2.host.o \
pci/memory_realloc.o \
pci/mmu/isp_mmu.o \
pci/mmu/sh_mmu_mrfld.o \
pci/runtime/binary/src/binary.o \
pci/runtime/bufq/src/bufq.o \
pci/runtime/debug/src/ia_css_debug.o \
pci/runtime/eventq/src/eventq.o \
pci/runtime/event/src/event.o \
pci/runtime/frame/src/frame.o \
pci/runtime/ifmtr/src/ifmtr.o \
pci/runtime/inputfifo/src/inputfifo.o \
pci/runtime/isp_param/src/isp_param.o \
pci/runtime/isys/src/csi_rx_rmgr.o \
pci/runtime/isys/src/ibuf_ctrl_rmgr.o \
pci/runtime/isys/src/isys_dma_rmgr.o \
pci/runtime/isys/src/isys_init.o \
pci/runtime/isys/src/isys_stream2mmio_rmgr.o \
pci/runtime/isys/src/rx.o \
pci/runtime/isys/src/virtual_isys.o \
pci/runtime/pipeline/src/pipeline.o \
pci/runtime/queue/src/queue_access.o \
pci/runtime/queue/src/queue.o \
pci/runtime/rmgr/src/rmgr.o \
pci/runtime/rmgr/src/rmgr_vbuf.o \
pci/runtime/spctrl/src/spctrl.o \
pci/runtime/timer/src/timer.o \
pci/hive_isp_css_common/host/debug.o \
pci/hive_isp_css_common/host/dma.o \
pci/hive_isp_css_common/host/event_fifo.o \
pci/hive_isp_css_common/host/fifo_monitor.o \
pci/hive_isp_css_common/host/gdc.o \
pci/hive_isp_css_common/host/gp_device.o \
pci/hive_isp_css_common/host/gp_timer.o \
pci/hive_isp_css_common/host/hmem.o \
pci/hive_isp_css_common/host/input_formatter.o \
pci/hive_isp_css_common/host/input_system.o \
pci/hive_isp_css_common/host/irq.o \
pci/hive_isp_css_common/host/isp.o \
pci/hive_isp_css_common/host/mmu.o \
pci/hive_isp_css_common/host/sp.o \
pci/hive_isp_css_common/host/timed_ctrl.o \
pci/hive_isp_css_common/host/vmem.o \
pci/hive_isp_css_shared/host/tag.o \
pci/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_configs.o \
pci/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_params.o \
pci/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_states.o \
pci/css_2400_system/spmem_dump.o \
# These will be needed when clean merge CHT support nicely into the driver
# Keep them here handy for when we get to that point
#
obj-cht= \
pci/css_2401_system/spmem_dump.o \
pci/css_2401_csi2p_system/spmem_dump.o \
pci/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_configs.o \
pci/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_params.o \
pci/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_states.o \
pci/css_2401_csi2p_system/host/csi_rx.o \
pci/css_2401_csi2p_system/host/ibuf_ctrl.o \
pci/css_2401_csi2p_system/host/isys_dma.o \
pci/css_2401_csi2p_system/host/isys_irq.o \
pci/css_2401_csi2p_system/host/isys_stream2mmio.o \
pci/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_configs.o \
pci/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_params.o \
pci/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_states.o \
# -I$(atomisp)/pci/css_2401_system/hrt/ \
# -I$(atomisp)/pci/css_2401_csi2p_system/ \
# -I$(atomisp)/pci/css_2401_csi2p_system/host/ \
# -I$(atomisp)/pci/css_2401_csi2p_system/hrt/ \
# -I$(atomisp)/pci/css_2401_system/hive_isp_css_2401_system_generated/ \
# -I$(atomisp)/pci/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ \
INCLUDES += \
-I$(atomisp)/ \
-I$(atomisp)/include/ \
-I$(atomisp)/include/hmm/ \
-I$(atomisp)/include/mmu/ \
-I$(atomisp)/pci/ \
-I$(atomisp)/pci/hrt/ \
-I$(atomisp)/pci/base/circbuf/interface/ \
-I$(atomisp)/pci/base/refcount/interface/ \
-I$(atomisp)/pci/camera/pipe/interface/ \
-I$(atomisp)/pci/camera/util/interface/ \
-I$(atomisp)/pci/css_2400_system/ \
-I$(atomisp)/pci/css_2400_system/hive_isp_css_2400_system_generated/ \
-I$(atomisp)/pci/css_2400_system/hrt/ \
-I$(atomisp)/pci/hive_isp_css_common/ \
-I$(atomisp)/pci/hive_isp_css_common/host/ \
-I$(atomisp)/pci/hive_isp_css_include/ \
-I$(atomisp)/pci/hive_isp_css_include/device_access/ \
-I$(atomisp)/pci/hive_isp_css_include/host/ \
-I$(atomisp)/pci/hive_isp_css_include/memory_access/ \
-I$(atomisp)/pci/hive_isp_css_shared/ \
-I$(atomisp)/pci/hive_isp_css_shared/host/ \
-I$(atomisp)/pci/isp/kernels/ \
-I$(atomisp)/pci/isp/kernels/aa/aa_2/ \
-I$(atomisp)/pci/isp/kernels/anr/anr_1.0/ \
-I$(atomisp)/pci/isp/kernels/anr/anr_2/ \
-I$(atomisp)/pci/isp/kernels/bh/bh_2/ \
-I$(atomisp)/pci/isp/kernels/bnlm/ \
-I$(atomisp)/pci/isp/kernels/bnr/ \
-I$(atomisp)/pci/isp/kernels/bnr/bnr_1.0/ \
-I$(atomisp)/pci/isp/kernels/bnr/bnr2_2/ \
-I$(atomisp)/pci/isp/kernels/cnr/ \
-I$(atomisp)/pci/isp/kernels/cnr/cnr_1.0/ \
-I$(atomisp)/pci/isp/kernels/cnr/cnr_2/ \
-I$(atomisp)/pci/isp/kernels/conversion/ \
-I$(atomisp)/pci/isp/kernels/conversion/conversion_1.0/ \
-I$(atomisp)/pci/isp/kernels/copy_output/ \
-I$(atomisp)/pci/isp/kernels/copy_output/copy_output_1.0/ \
-I$(atomisp)/pci/isp/kernels/crop/ \
-I$(atomisp)/pci/isp/kernels/crop/crop_1.0/ \
-I$(atomisp)/pci/isp/kernels/csc/ \
-I$(atomisp)/pci/isp/kernels/csc/csc_1.0/ \
-I$(atomisp)/pci/isp/kernels/ctc/ \
-I$(atomisp)/pci/isp/kernels/ctc/ctc_1.0/ \
-I$(atomisp)/pci/isp/kernels/ctc/ctc1_5/ \
-I$(atomisp)/pci/isp/kernels/ctc/ctc2/ \
-I$(atomisp)/pci/isp/kernels/de/ \
-I$(atomisp)/pci/isp/kernels/de/de_1.0/ \
-I$(atomisp)/pci/isp/kernels/de/de_2/ \
-I$(atomisp)/pci/isp/kernels/dp/ \
-I$(atomisp)/pci/isp/kernels/dpc2/ \
-I$(atomisp)/pci/isp/kernels/dp/dp_1.0/ \
-I$(atomisp)/pci/isp/kernels/dvs/ \
-I$(atomisp)/pci/isp/kernels/dvs/dvs_1.0/ \
-I$(atomisp)/pci/isp/kernels/eed1_8/ \
-I$(atomisp)/pci/isp/kernels/fc/ \
-I$(atomisp)/pci/isp/kernels/fc/fc_1.0/ \
-I$(atomisp)/pci/isp/kernels/fixedbds/ \
-I$(atomisp)/pci/isp/kernels/fixedbds/fixedbds_1.0/ \
-I$(atomisp)/pci/isp/kernels/fpn/ \
-I$(atomisp)/pci/isp/kernels/fpn/fpn_1.0/ \
-I$(atomisp)/pci/isp/kernels/gc/ \
-I$(atomisp)/pci/isp/kernels/gc/gc_1.0/ \
-I$(atomisp)/pci/isp/kernels/gc/gc_2/ \
-I$(atomisp)/pci/isp/kernels/hdr/ \
-I$(atomisp)/pci/isp/kernels/ipu2_io_ls/ \
-I$(atomisp)/pci/isp/kernels/ipu2_io_ls/ \
-I$(atomisp)/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ \
-I$(atomisp)/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ \
-I$(atomisp)/pci/isp/kernels/ipu2_io_ls/common/ \
-I$(atomisp)/pci/isp/kernels/ipu2_io_ls/common/ \
-I$(atomisp)/pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/ \
-I$(atomisp)/pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/ \
-I$(atomisp)/pci/isp/kernels/iterator/ \
-I$(atomisp)/pci/isp/kernels/iterator/iterator_1.0/ \
-I$(atomisp)/pci/isp/kernels/macc/ \
-I$(atomisp)/pci/isp/kernels/macc/macc_1.0/ \
-I$(atomisp)/pci/isp/kernels/macc/macc1_5/ \
-I$(atomisp)/pci/isp/kernels/norm/ \
-I$(atomisp)/pci/isp/kernels/norm/norm_1.0/ \
-I$(atomisp)/pci/isp/kernels/ob/ \
-I$(atomisp)/pci/isp/kernels/ob/ob_1.0/ \
-I$(atomisp)/pci/isp/kernels/ob/ob2/ \
-I$(atomisp)/pci/isp/kernels/output/ \
-I$(atomisp)/pci/isp/kernels/output/output_1.0/ \
-I$(atomisp)/pci/isp/kernels/qplane/ \
-I$(atomisp)/pci/isp/kernels/qplane/qplane_2/ \
-I$(atomisp)/pci/isp/kernels/raw/ \
-I$(atomisp)/pci/isp/kernels/raw_aa_binning/ \
-I$(atomisp)/pci/isp/kernels/raw_aa_binning/raw_aa_binning_1.0/ \
-I$(atomisp)/pci/isp/kernels/raw/raw_1.0/ \
-I$(atomisp)/pci/isp/kernels/ref/ \
-I$(atomisp)/pci/isp/kernels/ref/ref_1.0/ \
-I$(atomisp)/pci/isp/kernels/s3a/ \
-I$(atomisp)/pci/isp/kernels/s3a/s3a_1.0/ \
-I$(atomisp)/pci/isp/kernels/sc/ \
-I$(atomisp)/pci/isp/kernels/sc/sc_1.0/ \
-I$(atomisp)/pci/isp/kernels/sdis/ \
-I$(atomisp)/pci/isp/kernels/sdis/common/ \
-I$(atomisp)/pci/isp/kernels/sdis/sdis_1.0/ \
-I$(atomisp)/pci/isp/kernels/sdis/sdis_2/ \
-I$(atomisp)/pci/isp/kernels/tdf/ \
-I$(atomisp)/pci/isp/kernels/tdf/tdf_1.0/ \
-I$(atomisp)/pci/isp/kernels/tnr/ \
-I$(atomisp)/pci/isp/kernels/tnr/tnr_1.0/ \
-I$(atomisp)/pci/isp/kernels/tnr/tnr3/ \
-I$(atomisp)/pci/isp/kernels/uds/ \
-I$(atomisp)/pci/isp/kernels/uds/uds_1.0/ \
-I$(atomisp)/pci/isp/kernels/vf/ \
-I$(atomisp)/pci/isp/kernels/vf/vf_1.0/ \
-I$(atomisp)/pci/isp/kernels/wb/ \
-I$(atomisp)/pci/isp/kernels/wb/wb_1.0/ \
-I$(atomisp)/pci/isp/kernels/xnr/ \
-I$(atomisp)/pci/isp/kernels/xnr/xnr_1.0/ \
-I$(atomisp)/pci/isp/kernels/xnr/xnr_3.0/ \
-I$(atomisp)/pci/isp/kernels/ynr/ \
-I$(atomisp)/pci/isp/kernels/ynr/ynr_1.0/ \
-I$(atomisp)/pci/isp/kernels/ynr/ynr_2/ \
-I$(atomisp)/pci/isp/modes/interface/ \
-I$(atomisp)/pci/runtime/binary/interface/ \
-I$(atomisp)/pci/runtime/bufq/interface/ \
-I$(atomisp)/pci/runtime/debug/interface/ \
-I$(atomisp)/pci/runtime/event/interface/ \
-I$(atomisp)/pci/runtime/eventq/interface/ \
-I$(atomisp)/pci/runtime/frame/interface/ \
-I$(atomisp)/pci/runtime/ifmtr/interface/ \
-I$(atomisp)/pci/runtime/inputfifo/interface/ \
-I$(atomisp)/pci/runtime/isp_param/interface/ \
-I$(atomisp)/pci/runtime/isys/interface/ \
-I$(atomisp)/pci/runtime/isys/src/ \
-I$(atomisp)/pci/runtime/pipeline/interface/ \
-I$(atomisp)/pci/runtime/queue/interface/ \
-I$(atomisp)/pci/runtime/queue/src/ \
-I$(atomisp)/pci/runtime/rmgr/interface/ \
-I$(atomisp)/pci/runtime/spctrl/interface/ \
-I$(atomisp)/pci/runtime/tagger/interface/
ifeq ($(CONFIG_ION),y)
INCLUDES += -I$(srctree)/drivers/staging/android/ion
endif
DEFINES := -DHRT_HW -DHRT_ISP_CSS_CUSTOM_HOST -DHRT_USE_VIR_ADDRS -D__HOST__
#DEFINES += -DUSE_DYNAMIC_BIN
#DEFINES += -DISP_POWER_GATING
#DEFINES += -DUSE_INTERRUPTS
#DEFINES += -DUSE_SSSE3
#DEFINES += -DPUNIT_CAMERA_BUSY
#DEFINES += -DUSE_KMEM_CACHE
DEFINES += -DATOMISP_POSTFIX=\"css2400b0_v21\"
DEFINES += -DSYSTEM_hive_isp_css_2400_system -DISP2400
ccflags-y += $(INCLUDES) $(DEFINES) -fno-common
# HACK! While this driver is in bad shape, don't enable several warnings
# that would be otherwise enabled with W=1
ccflags-y += $(call cc-disable-warning, implicit-fallthrough)
ccflags-y += $(call cc-disable-warning, missing-prototypes)
ccflags-y += $(call cc-disable-warning, missing-declarations)
ccflags-y += $(call cc-disable-warning, suggest-attribute=format)
ccflags-y += $(call cc-disable-warning, unused-const-variable)
ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
7. The ISP code depends on the exact FW version. The version defined in 7. The ISP code depends on the exact FW version. The version defined in
BYT: BYT:
drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_firmware.c drivers/staging/media/atomisp/pci/atomisp2/pci/sh_css_firmware.c
static const char *release_version = STR(irci_stable_candrpv_0415_20150521_0458); static const char *release_version = STR(irci_stable_candrpv_0415_20150521_0458);
CHT: CHT:
drivers/staging/media/atomisp/pci/atomisp2/css/sh_css_firmware.c drivers/staging/media/atomisp/pci/atomisp2/css/sh_css_firmware.c
......
#
# Kconfig for ISP driver
#
config VIDEO_ATOMISP
tristate "Intel Atom Image Signal Processor Driver"
depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
select IOSF_MBI
select VIDEOBUF_VMALLOC
---help---
Say Y here if your platform supports Intel Atom SoC
camera imaging subsystem.
To compile this driver as a module, choose M here: the
module will be called atomisp
#
# Makefile for ISP driver
#
obj-$(CONFIG_VIDEO_ATOMISP) += atomisp2/
# SPDX-License-Identifier: GPL-2.0
atomisp-objs += \
atomisp_drvfs.o \
atomisp_file.o \
css2400/sh_css_mipi.o \
css2400/runtime/pipeline/src/pipeline.o \
css2400/runtime/spctrl/src/spctrl.o \
css2400/runtime/rmgr/src/rmgr.o \
css2400/runtime/rmgr/src/rmgr_vbuf.o \
css2400/runtime/isp_param/src/isp_param.o \
css2400/runtime/inputfifo/src/inputfifo.o \
css2400/runtime/queue/src/queue_access.o \
css2400/runtime/queue/src/queue.o \
css2400/runtime/frame/src/frame.o \
css2400/runtime/eventq/src/eventq.o \
css2400/runtime/binary/src/binary.o \
css2400/runtime/timer/src/timer.o \
css2400/runtime/isys/src/csi_rx_rmgr.o \
css2400/runtime/isys/src/isys_stream2mmio_rmgr.o \
css2400/runtime/isys/src/virtual_isys.o \
css2400/runtime/isys/src/rx.o \
css2400/runtime/isys/src/isys_dma_rmgr.o \
css2400/runtime/isys/src/ibuf_ctrl_rmgr.o \
css2400/runtime/isys/src/isys_init.o \
css2400/runtime/bufq/src/bufq.o \
css2400/runtime/ifmtr/src/ifmtr.o \
css2400/runtime/debug/src/ia_css_debug.o \
css2400/runtime/event/src/event.o \
css2400/sh_css_sp.o \
css2400/css_2400_system/spmem_dump.o \
css2400/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_states.o \
css2400/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_configs.o \
css2400/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_params.o \
css2400/sh_css_stream_format.o \
css2400/sh_css_hrt.o \
css2400/sh_css_properties.o \
css2400/memory_realloc.o \
css2400/hive_isp_css_shared/host/tag.o \
css2400/sh_css_params.o \
css2400/sh_css.o \
css2400/isp/kernels/hdr/ia_css_hdr.host.o \
css2400/isp/kernels/ynr/ynr_2/ia_css_ynr2.host.o \
css2400/isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.o \
css2400/isp/kernels/conversion/conversion_1.0/ia_css_conversion.host.o \
css2400/isp/kernels/fpn/fpn_1.0/ia_css_fpn.host.o \
css2400/isp/kernels/tnr/tnr_1.0/ia_css_tnr.host.o \
css2400/isp/kernels/vf/vf_1.0/ia_css_vf.host.o \
css2400/isp/kernels/raw/raw_1.0/ia_css_raw.host.o \
css2400/isp/kernels/ref/ref_1.0/ia_css_ref.host.o \
css2400/isp/kernels/qplane/qplane_2/ia_css_qplane.host.o \
css2400/isp/kernels/norm/norm_1.0/ia_css_norm.host.o \
css2400/isp/kernels/output/output_1.0/ia_css_output.host.o \
css2400/isp/kernels/raw_aa_binning/raw_aa_binning_1.0/ia_css_raa.host.o \
css2400/isp/kernels/macc/macc1_5/ia_css_macc1_5_table.host.o \
css2400/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.o \
css2400/isp/kernels/macc/macc_1.0/ia_css_macc.host.o \
css2400/isp/kernels/macc/macc_1.0/ia_css_macc_table.host.o \
css2400/isp/kernels/csc/csc_1.0/ia_css_csc.host.o \
css2400/isp/kernels/bnr/bnr_1.0/ia_css_bnr.host.o \
css2400/isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.o \
css2400/isp/kernels/dpc2/ia_css_dpc2.host.o \
css2400/isp/kernels/fc/fc_1.0/ia_css_formats.host.o \
css2400/isp/kernels/ctc/ctc_1.0/ia_css_ctc.host.o \
css2400/isp/kernels/ctc/ctc_1.0/ia_css_ctc_table.host.o \
css2400/isp/kernels/ctc/ctc2/ia_css_ctc2.host.o \
css2400/isp/kernels/ctc/ctc1_5/ia_css_ctc1_5.host.o \
css2400/isp/kernels/bh/bh_2/ia_css_bh.host.o \
css2400/isp/kernels/bnlm/ia_css_bnlm.host.o \
css2400/isp/kernels/tdf/tdf_1.0/ia_css_tdf.host.o \
css2400/isp/kernels/dvs/dvs_1.0/ia_css_dvs.host.o \
css2400/isp/kernels/anr/anr_1.0/ia_css_anr.host.o \
css2400/isp/kernels/anr/anr_2/ia_css_anr2_table.host.o \
css2400/isp/kernels/anr/anr_2/ia_css_anr2.host.o \
css2400/isp/kernels/dp/dp_1.0/ia_css_dp.host.o \
css2400/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.o \
css2400/isp/kernels/sdis/sdis_2/ia_css_sdis2.host.o \
css2400/isp/kernels/cnr/cnr_2/ia_css_cnr2.host.o \
css2400/isp/kernels/cnr/cnr_1.0/ia_css_cnr.host.o \
css2400/isp/kernels/xnr/xnr_1.0/ia_css_xnr.host.o \
css2400/isp/kernels/xnr/xnr_1.0/ia_css_xnr_table.host.o \
css2400/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.o \
css2400/isp/kernels/de/de_1.0/ia_css_de.host.o \
css2400/isp/kernels/de/de_2/ia_css_de2.host.o \
css2400/isp/kernels/gc/gc_2/ia_css_gc2.host.o \
css2400/isp/kernels/gc/gc_2/ia_css_gc2_table.host.o \
css2400/isp/kernels/gc/gc_1.0/ia_css_gc.host.o \
css2400/isp/kernels/gc/gc_1.0/ia_css_gc_table.host.o \
css2400/isp/kernels/crop/crop_1.0/ia_css_crop.host.o \
css2400/isp/kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.o \
css2400/isp/kernels/aa/aa_2/ia_css_aa2.host.o \
css2400/isp/kernels/copy_output/copy_output_1.0/ia_css_copy_output.host.o \
css2400/isp/kernels/ob/ob_1.0/ia_css_ob.host.o \
css2400/isp/kernels/ob/ob2/ia_css_ob2.host.o \
css2400/isp/kernels/iterator/iterator_1.0/ia_css_iterator.host.o \
css2400/isp/kernels/wb/wb_1.0/ia_css_wb.host.o \
css2400/isp/kernels/eed1_8/ia_css_eed1_8.host.o \
css2400/isp/kernels/sc/sc_1.0/ia_css_sc.host.o \
css2400/isp/kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.o \
css2400/isp/kernels/ipu2_io_ls/yuv444_io_ls/ia_css_yuv444_io.host.o \
css2400/isp/kernels/s3a/s3a_1.0/ia_css_s3a.host.o \
css2400/sh_css_pipe.o \
css2400/ia_css_device_access.o \
css2400/sh_css_host_data.o \
css2400/sh_css_mmu.o \
css2400/sh_css_metadata.o \
css2400/base/refcount/src/refcount.o \
css2400/base/circbuf/src/circbuf.o \
css2400/camera/pipe/src/pipe_binarydesc.o \
css2400/camera/pipe/src/pipe_util.o \
css2400/camera/pipe/src/pipe_stagedesc.o \
css2400/camera/util/src/util.o \
css2400/sh_css_metrics.o \
css2400/sh_css_version.o \
css2400/ia_css_memory_access.o \
css2400/sh_css_param_shading.o \
css2400/sh_css_morph.o \
css2400/sh_css_firmware.o \
css2400/hive_isp_css_common/host/isp.o \
css2400/hive_isp_css_common/host/gdc.o \
css2400/hive_isp_css_common/host/sp.o \
css2400/hive_isp_css_common/host/vmem.o \
css2400/hive_isp_css_common/host/dma.o \
css2400/hive_isp_css_common/host/input_formatter.o \
css2400/hive_isp_css_common/host/debug.o \
css2400/hive_isp_css_common/host/hmem.o \
css2400/hive_isp_css_common/host/gp_device.o \
css2400/hive_isp_css_common/host/fifo_monitor.o \
css2400/hive_isp_css_common/host/gp_timer.o \
css2400/hive_isp_css_common/host/irq.o \
css2400/hive_isp_css_common/host/input_system.o \
css2400/hive_isp_css_common/host/timed_ctrl.o \
css2400/hive_isp_css_common/host/mmu.o \
css2400/hive_isp_css_common/host/event_fifo.o \
css2400/sh_css_param_dvs.o \
css2400/sh_css_shading.o \
css2400/sh_css_stream.o \
mmu/sh_mmu_mrfld.o \
mmu/isp_mmu.o \
atomisp_acc.o \
atomisp_compat_css20.o \
atomisp_fops.o \
atomisp_subdev.o \
atomisp_ioctl.o \
atomisp_compat_ioctl32.o \
atomisp_csi2.o \
atomisp_cmd.o \
atomisp_tpg.o \
hmm/hmm_vm.o \
hmm/hmm.o \
hmm/hmm_bo.o \
hmm/hmm_reserved_pool.o \
hmm/hmm_dynamic_pool.o \
hrt/hive_isp_css_mm_hrt.o \
atomisp_v4l2.o
# These will be needed when clean merge CHT support nicely into the driver
# Keep them here handy for when we get to that point
#
obj-cht= \
css2400/css_2401_system/spmem_dump.o \
css2400/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_states.o \
css2400/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_configs.o \
css2400/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_params.o \
css2400/css_2401_csi2p_system/spmem_dump.o \
css2400/css_2401_csi2p_system/host/isys_stream2mmio.o \
css2400/css_2401_csi2p_system/host/ibuf_ctrl.o \
css2400/css_2401_csi2p_system/host/isys_irq.o \
css2400/css_2401_csi2p_system/host/isys_dma.o \
css2400/css_2401_csi2p_system/host/csi_rx.o \
css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_states.o \
css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_configs.o \
css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_params.o \
# -I$(atomisp)/css2400/css_2401_csi2p_system/ \
# -I$(atomisp)/css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ \
# -I$(atomisp)/css2400/css_2401_csi2p_system/host/ \
# -I$(atomisp)/css2400/css_2401_csi2p_system/hrt/ \
# -I$(atomisp)/css2400/css_2401_system/hive_isp_css_2401_system_generated/ \
# -I$(atomisp)/css2400/css_2401_system/hrt/ \
obj-$(CONFIG_VIDEO_ATOMISP) += atomisp.o
atomisp = $(srctree)/drivers/staging/media/atomisp/pci/atomisp2
INCLUDES += \
-I$(atomisp)/ \
-I$(atomisp)/css2400/ \
-I$(atomisp)/hrt/ \
-I$(atomisp)/include/ \
-I$(atomisp)/include/hmm/ \
-I$(atomisp)/include/mmu/ \
-I$(atomisp)/css2400/base/circbuf/interface/ \
-I$(atomisp)/css2400/base/refcount/interface/ \
-I$(atomisp)/css2400/camera/pipe/interface/ \
-I$(atomisp)/css2400/camera/util/interface/ \
-I$(atomisp)/css2400/css_2400_system/ \
-I$(atomisp)/css2400/css_2400_system/hive_isp_css_2400_system_generated/ \
-I$(atomisp)/css2400/css_2400_system/hrt/ \
-I$(atomisp)/css2400/hive_isp_css_common/ \
-I$(atomisp)/css2400/hive_isp_css_common/host/ \
-I$(atomisp)/css2400/hive_isp_css_include/ \
-I$(atomisp)/css2400/hive_isp_css_include/device_access/ \
-I$(atomisp)/css2400/hive_isp_css_include/host/ \
-I$(atomisp)/css2400/hive_isp_css_include/memory_access/ \
-I$(atomisp)/css2400/hive_isp_css_shared/ \
-I$(atomisp)/css2400/hive_isp_css_shared/host/ \
-I$(atomisp)/css2400/isp/kernels/ \
-I$(atomisp)/css2400/isp/kernels/aa/aa_2/ \
-I$(atomisp)/css2400/isp/kernels/anr/anr_1.0/ \
-I$(atomisp)/css2400/isp/kernels/anr/anr_2/ \
-I$(atomisp)/css2400/isp/kernels/bh/bh_2/ \
-I$(atomisp)/css2400/isp/kernels/bnlm/ \
-I$(atomisp)/css2400/isp/kernels/bnr/ \
-I$(atomisp)/css2400/isp/kernels/bnr/bnr_1.0/ \
-I$(atomisp)/css2400/isp/kernels/bnr/bnr2_2/ \
-I$(atomisp)/css2400/isp/kernels/cnr/ \
-I$(atomisp)/css2400/isp/kernels/cnr/cnr_1.0/ \
-I$(atomisp)/css2400/isp/kernels/cnr/cnr_2/ \
-I$(atomisp)/css2400/isp/kernels/conversion/ \
-I$(atomisp)/css2400/isp/kernels/conversion/conversion_1.0/ \
-I$(atomisp)/css2400/isp/kernels/copy_output/ \
-I$(atomisp)/css2400/isp/kernels/copy_output/copy_output_1.0/ \
-I$(atomisp)/css2400/isp/kernels/crop/ \
-I$(atomisp)/css2400/isp/kernels/crop/crop_1.0/ \
-I$(atomisp)/css2400/isp/kernels/csc/ \
-I$(atomisp)/css2400/isp/kernels/csc/csc_1.0/ \
-I$(atomisp)/css2400/isp/kernels/ctc/ \
-I$(atomisp)/css2400/isp/kernels/ctc/ctc_1.0/ \
-I$(atomisp)/css2400/isp/kernels/ctc/ctc1_5/ \
-I$(atomisp)/css2400/isp/kernels/ctc/ctc2/ \
-I$(atomisp)/css2400/isp/kernels/de/ \
-I$(atomisp)/css2400/isp/kernels/de/de_1.0/ \
-I$(atomisp)/css2400/isp/kernels/de/de_2/ \
-I$(atomisp)/css2400/isp/kernels/dpc2/ \
-I$(atomisp)/css2400/isp/kernels/dp/ \
-I$(atomisp)/css2400/isp/kernels/dp/dp_1.0/ \
-I$(atomisp)/css2400/isp/kernels/dvs/ \
-I$(atomisp)/css2400/isp/kernels/dvs/dvs_1.0/ \
-I$(atomisp)/css2400/isp/kernels/eed1_8/ \
-I$(atomisp)/css2400/isp/kernels/fc/ \
-I$(atomisp)/css2400/isp/kernels/fc/fc_1.0/ \
-I$(atomisp)/css2400/isp/kernels/fixedbds/ \
-I$(atomisp)/css2400/isp/kernels/fixedbds/fixedbds_1.0/ \
-I$(atomisp)/css2400/isp/kernels/fpn/ \
-I$(atomisp)/css2400/isp/kernels/fpn/fpn_1.0/ \
-I$(atomisp)/css2400/isp/kernels/gc/ \
-I$(atomisp)/css2400/isp/kernels/gc/gc_1.0/ \
-I$(atomisp)/css2400/isp/kernels/gc/gc_2/ \
-I$(atomisp)/css2400/isp/kernels/hdr/ \
-I$(atomisp)/css2400/isp/kernels/ipu2_io_ls/ \
-I$(atomisp)/css2400/isp/kernels/ipu2_io_ls/bayer_io_ls/ \
-I$(atomisp)/css2400/isp/kernels/ipu2_io_ls/common/ \
-I$(atomisp)/css2400/isp/kernels/ipu2_io_ls/yuv444_io_ls/ \
-I$(atomisp)/css2400/isp/kernels/ipu2_io_ls/ \
-I$(atomisp)/css2400/isp/kernels/ipu2_io_ls/bayer_io_ls/ \
-I$(atomisp)/css2400/isp/kernels/ipu2_io_ls/common/ \
-I$(atomisp)/css2400/isp/kernels/ipu2_io_ls/yuv444_io_ls/ \
-I$(atomisp)/css2400/isp/kernels/iterator/ \
-I$(atomisp)/css2400/isp/kernels/iterator/iterator_1.0/ \
-I$(atomisp)/css2400/isp/kernels/macc/ \
-I$(atomisp)/css2400/isp/kernels/macc/macc_1.0/ \
-I$(atomisp)/css2400/isp/kernels/macc/macc1_5/ \
-I$(atomisp)/css2400/isp/kernels/norm/ \
-I$(atomisp)/css2400/isp/kernels/norm/norm_1.0/ \
-I$(atomisp)/css2400/isp/kernels/ob/ \
-I$(atomisp)/css2400/isp/kernels/ob/ob_1.0/ \
-I$(atomisp)/css2400/isp/kernels/ob/ob2/ \
-I$(atomisp)/css2400/isp/kernels/output/ \
-I$(atomisp)/css2400/isp/kernels/output/output_1.0/ \
-I$(atomisp)/css2400/isp/kernels/qplane/ \
-I$(atomisp)/css2400/isp/kernels/qplane/qplane_2/ \
-I$(atomisp)/css2400/isp/kernels/raw_aa_binning/ \
-I$(atomisp)/css2400/isp/kernels/raw_aa_binning/raw_aa_binning_1.0/ \
-I$(atomisp)/css2400/isp/kernels/raw/ \
-I$(atomisp)/css2400/isp/kernels/raw/raw_1.0/ \
-I$(atomisp)/css2400/isp/kernels/ref/ \
-I$(atomisp)/css2400/isp/kernels/ref/ref_1.0/ \
-I$(atomisp)/css2400/isp/kernels/s3a/ \
-I$(atomisp)/css2400/isp/kernels/s3a/s3a_1.0/ \
-I$(atomisp)/css2400/isp/kernels/sc/ \
-I$(atomisp)/css2400/isp/kernels/sc/sc_1.0/ \
-I$(atomisp)/css2400/isp/kernels/sdis/ \
-I$(atomisp)/css2400/isp/kernels/sdis/common/ \
-I$(atomisp)/css2400/isp/kernels/sdis/sdis_1.0/ \
-I$(atomisp)/css2400/isp/kernels/sdis/sdis_2/ \
-I$(atomisp)/css2400/isp/kernels/tdf/ \
-I$(atomisp)/css2400/isp/kernels/tdf/tdf_1.0/ \
-I$(atomisp)/css2400/isp/kernels/tnr/ \
-I$(atomisp)/css2400/isp/kernels/tnr/tnr_1.0/ \
-I$(atomisp)/css2400/isp/kernels/tnr/tnr3/ \
-I$(atomisp)/css2400/isp/kernels/uds/ \
-I$(atomisp)/css2400/isp/kernels/uds/uds_1.0/ \
-I$(atomisp)/css2400/isp/kernels/vf/ \
-I$(atomisp)/css2400/isp/kernels/vf/vf_1.0/ \
-I$(atomisp)/css2400/isp/kernels/wb/ \
-I$(atomisp)/css2400/isp/kernels/wb/wb_1.0/ \
-I$(atomisp)/css2400/isp/kernels/xnr/ \
-I$(atomisp)/css2400/isp/kernels/xnr/xnr_1.0/ \
-I$(atomisp)/css2400/isp/kernels/xnr/xnr_3.0/ \
-I$(atomisp)/css2400/isp/kernels/ynr/ \
-I$(atomisp)/css2400/isp/kernels/ynr/ynr_1.0/ \
-I$(atomisp)/css2400/isp/kernels/ynr/ynr_2/ \
-I$(atomisp)/css2400/isp/modes/interface/ \
-I$(atomisp)/css2400/runtime/binary/interface/ \
-I$(atomisp)/css2400/runtime/bufq/interface/ \
-I$(atomisp)/css2400/runtime/debug/interface/ \
-I$(atomisp)/css2400/runtime/event/interface/ \
-I$(atomisp)/css2400/runtime/eventq/interface/ \
-I$(atomisp)/css2400/runtime/frame/interface/ \
-I$(atomisp)/css2400/runtime/ifmtr/interface/ \
-I$(atomisp)/css2400/runtime/inputfifo/interface/ \
-I$(atomisp)/css2400/runtime/isp_param/interface/ \
-I$(atomisp)/css2400/runtime/isys/interface/ \
-I$(atomisp)/css2400/runtime/isys/src/ \
-I$(atomisp)/css2400/runtime/pipeline/interface/ \
-I$(atomisp)/css2400/runtime/queue/interface/ \
-I$(atomisp)/css2400/runtime/queue/src/ \
-I$(atomisp)/css2400/runtime/rmgr/interface/ \
-I$(atomisp)/css2400/runtime/spctrl/interface/ \
-I$(atomisp)/css2400/runtime/tagger/interface/
ifeq ($(CONFIG_ION),y)
INCLUDES += -I$(srctree)/drivers/staging/android/ion
endif
DEFINES := -DHRT_HW -DHRT_ISP_CSS_CUSTOM_HOST -DHRT_USE_VIR_ADDRS -D__HOST__
#DEFINES += -DUSE_DYNAMIC_BIN
#DEFINES += -DISP_POWER_GATING
#DEFINES += -DUSE_INTERRUPTS
#DEFINES += -DUSE_SSSE3
#DEFINES += -DPUNIT_CAMERA_BUSY
#DEFINES += -DUSE_KMEM_CACHE
DEFINES += -DATOMISP_POSTFIX=\"css2400b0_v21\"
DEFINES += -DSYSTEM_hive_isp_css_2400_system -DISP2400
ccflags-y += $(INCLUDES) $(DEFINES) -fno-common
# HACK! While this driver is in bad shape, don't enable several warnings
# that would be otherwise enabled with W=1
ccflags-y += $(call cc-disable-warning, implicit-fallthrough)
ccflags-y += $(call cc-disable-warning, missing-prototypes)
ccflags-y += $(call cc-disable-warning, missing-declarations)
ccflags-y += $(call cc-disable-warning, suggest-attribute=format)
ccflags-y += $(call cc-disable-warning, unused-const-variable)
ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment