Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Samsung LSI S5C73M3 8M pixel camera driver
0003  *
0004  * Copyright (C) 2012, Samsung Electronics, Co., Ltd.
0005  * Sylwester Nawrocki <s.nawrocki@samsung.com>
0006  * Andrzej Hajda <a.hajda@samsung.com>
0007  *
0008  * This program is free software; you can redistribute it and/or
0009  * modify it under the terms of the GNU General Public License
0010  * version 2 as published by the Free Software Foundation.
0011  *
0012  * This program is free software; you can redistribute it and/or modify
0013  * it under the terms of the GNU General Public License as published by
0014  * the Free Software Foundation; either version 2 of the License, or
0015  * (at your option) any later version.
0016  */
0017 #ifndef MEDIA_S5C73M3__
0018 #define MEDIA_S5C73M3__
0019 
0020 #include <linux/videodev2.h>
0021 #include <media/v4l2-mediabus.h>
0022 
0023 /**
0024  * struct s5c73m3_gpio - data structure describing a GPIO
0025  * @gpio:  GPIO number
0026  * @level: indicates active state of the @gpio
0027  */
0028 struct s5c73m3_gpio {
0029     int gpio;
0030     int level;
0031 };
0032 
0033 /**
0034  * struct s5c73m3_platform_data - s5c73m3 driver platform data
0035  * @mclk_frequency: sensor's master clock frequency in Hz
0036  * @gpio_reset:  GPIO driving RESET pin
0037  * @gpio_stby:   GPIO driving STBY pin
0038  * @bus_type:    bus type
0039  * @nlanes:      maximum number of MIPI-CSI lanes used
0040  * @horiz_flip:  default horizontal image flip value, non zero to enable
0041  * @vert_flip:   default vertical image flip value, non zero to enable
0042  */
0043 
0044 struct s5c73m3_platform_data {
0045     unsigned long mclk_frequency;
0046 
0047     struct s5c73m3_gpio gpio_reset;
0048     struct s5c73m3_gpio gpio_stby;
0049 
0050     enum v4l2_mbus_type bus_type;
0051     u8 nlanes;
0052     u8 horiz_flip;
0053     u8 vert_flip;
0054 };
0055 
0056 #endif /* MEDIA_S5C73M3__ */