1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * mx2-cam.h - i.MX27/i.MX25 camera driver header file 4 * 5 * Copyright (C) 2003, Intel Corporation 6 * Copyright (C) 2008, Sascha Hauer <s.hauer@pengutronix.de> 7 * Copyright (C) 2010, Baruch Siach <baruch@tkos.co.il> 8 */ 9 10 #ifndef __MACH_MX2_CAM_H_ 11 #define __MACH_MX2_CAM_H_ 12 13 #define MX2_CAMERA_EXT_VSYNC (1 << 1) 14 #define MX2_CAMERA_CCIR (1 << 2) 15 #define MX2_CAMERA_CCIR_INTERLACE (1 << 3) 16 #define MX2_CAMERA_HSYNC_HIGH (1 << 4) 17 #define MX2_CAMERA_GATED_CLOCK (1 << 5) 18 #define MX2_CAMERA_INV_DATA (1 << 6) 19 #define MX2_CAMERA_PCLK_SAMPLE_RISING (1 << 7) 20 21 /** 22 * struct mx2_camera_platform_data - optional platform data for mx2_camera 23 * @flags: any combination of MX2_CAMERA_* 24 * @clk: clock rate of the csi block / 2 25 */ 26 struct mx2_camera_platform_data { 27 unsigned long flags; 28 unsigned long clk; 29 }; 30 31 #endif /* __MACH_MX2_CAM_H_ */