1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Support for Medifield PNW Camera Imaging ISP subsystem.
5 * Copyright (c) 2010 Intel Corporation. All Rights Reserved.
7 * Copyright (c) 2010 Silicon Hive www.siliconhive.com.
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License version
11 * 2 as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
21 #ifndef __ATOMISP_COMMON_H__
22 #define __ATOMISP_COMMON_H__
24 #include "../../include/linux/atomisp.h"
26 #include <linux/v4l2-mediabus.h>
28 #include <media/videobuf2-v4l2.h>
30 #include "atomisp_compat.h"
36 extern int mipicsi_flag;
40 #define CSS_DTRACE_VERBOSITY_LEVEL 5 /* Controls trace verbosity */
41 #define CSS_DTRACE_VERBOSITY_TIMEOUT 9 /* Verbosity on ISP timeout */
42 #define MRFLD_MAX_ZOOM_FACTOR 1024
45 #define ATOMISP_CSS_ISP_PIPE_VERSION_2_7 1
47 struct atomisp_format_bridge {
48 unsigned int pixelformat;
51 enum ia_css_frame_format sh_fmt;
52 unsigned char description[32]; /* the same as struct v4l2_fmtdesc */