2 camera.h - PXA camera driver header file
4 Copyright (C) 2003, Intel Corporation
5 Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __ASM_ARCH_CAMERA_RK30_H_
22 #define __ASM_ARCH_CAMERA_RK30_H_
24 #define RK29_CAM_DRV_NAME "rk312x-camera"
25 #define RK_SUPPORT_CIF0 1
26 #define RK_SUPPORT_CIF1 0
27 #define RK_CIF_NAME "rk_cif"
28 #define RK_SENSOR_NAME "rk_sensor"
30 #include "rk_camera.h"
31 #include <dt-bindings/pinctrl/rockchip-rk3288.h>
33 #define CONFIG_CAMERA_INPUT_FMT_SUPPORT (RK_CAM_INPUT_FMT_YUV422)
34 #ifdef CONFIG_SOC_RK3028
35 #define CONFIG_CAMERA_SCALE_CROP_MACHINE RK_CAM_SCALE_CROP_ARM
37 #define CONFIG_CAMERA_SCALE_CROP_MACHINE RK_CAM_SCALE_CROP_IPP
40 #if (CONFIG_CAMERA_SCALE_CROP_MACHINE==RK_CAM_SCALE_CROP_ARM)
41 #define CAMERA_SCALE_CROP_MACHINE "arm"
42 #elif (CONFIG_CAMERA_SCALE_CROP_MACHINE==RK_CAM_SCALE_CROP_IPP)
43 #define CAMERA_SCALE_CROP_MACHINE "ipp"
44 #elif (CONFIG_CAMERA_SCALE_CROP_MACHINE==RK_CAM_SCALE_CROP_RGA)
45 #define CAMERA_SCALE_CROP_MACHINE "rga"
46 #elif (CONFIG_CAMERA_SCALE_CROP_MACHINE==RK_CAM_SCALE_CROP_PP)
47 #define CAMERA_SCALE_CROP_MACHINE "pp"
51 #define CAMERA_VIDEOBUF_ARM_ACCESS 0