1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Samsung LSI S5C73M3 8M pixel camera driver 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Copyright (C) 2012, Samsung Electronics, Co., Ltd. 5*4882a593Smuzhiyun * Sylwester Nawrocki <s.nawrocki@samsung.com> 6*4882a593Smuzhiyun * Andrzej Hajda <a.hajda@samsung.com> 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or 9*4882a593Smuzhiyun * modify it under the terms of the GNU General Public License 10*4882a593Smuzhiyun * version 2 as published by the Free Software Foundation. 11*4882a593Smuzhiyun * 12*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify 13*4882a593Smuzhiyun * it under the terms of the GNU General Public License as published by 14*4882a593Smuzhiyun * the Free Software Foundation; either version 2 of the License, or 15*4882a593Smuzhiyun * (at your option) any later version. 16*4882a593Smuzhiyun */ 17*4882a593Smuzhiyun #ifndef MEDIA_S5C73M3__ 18*4882a593Smuzhiyun #define MEDIA_S5C73M3__ 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun #include <linux/videodev2.h> 21*4882a593Smuzhiyun #include <media/v4l2-mediabus.h> 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun /** 24*4882a593Smuzhiyun * struct s5c73m3_gpio - data structure describing a GPIO 25*4882a593Smuzhiyun * @gpio: GPIO number 26*4882a593Smuzhiyun * @level: indicates active state of the @gpio 27*4882a593Smuzhiyun */ 28*4882a593Smuzhiyun struct s5c73m3_gpio { 29*4882a593Smuzhiyun int gpio; 30*4882a593Smuzhiyun int level; 31*4882a593Smuzhiyun }; 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun /** 34*4882a593Smuzhiyun * struct s5c73m3_platform_data - s5c73m3 driver platform data 35*4882a593Smuzhiyun * @mclk_frequency: sensor's master clock frequency in Hz 36*4882a593Smuzhiyun * @gpio_reset: GPIO driving RESET pin 37*4882a593Smuzhiyun * @gpio_stby: GPIO driving STBY pin 38*4882a593Smuzhiyun * @nlanes: maximum number of MIPI-CSI lanes used 39*4882a593Smuzhiyun * @horiz_flip: default horizontal image flip value, non zero to enable 40*4882a593Smuzhiyun * @vert_flip: default vertical image flip value, non zero to enable 41*4882a593Smuzhiyun */ 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun struct s5c73m3_platform_data { 44*4882a593Smuzhiyun unsigned long mclk_frequency; 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun struct s5c73m3_gpio gpio_reset; 47*4882a593Smuzhiyun struct s5c73m3_gpio gpio_stby; 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun enum v4l2_mbus_type bus_type; 50*4882a593Smuzhiyun u8 nlanes; 51*4882a593Smuzhiyun u8 horiz_flip; 52*4882a593Smuzhiyun u8 vert_flip; 53*4882a593Smuzhiyun }; 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun #endif /* MEDIA_S5C73M3__ */ 56