18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Samsung LSI S5C73M3 8M pixel camera driver
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2012, Samsung Electronics, Co., Ltd.
58c2ecf20Sopenharmony_ci * Sylwester Nawrocki <s.nawrocki@samsung.com>
68c2ecf20Sopenharmony_ci * Andrzej Hajda <a.hajda@samsung.com>
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or
98c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License
108c2ecf20Sopenharmony_ci * version 2 as published by the Free Software Foundation.
118c2ecf20Sopenharmony_ci *
128c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
138c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License as published by
148c2ecf20Sopenharmony_ci * the Free Software Foundation; either version 2 of the License, or
158c2ecf20Sopenharmony_ci * (at your option) any later version.
168c2ecf20Sopenharmony_ci */
178c2ecf20Sopenharmony_ci#ifndef MEDIA_S5C73M3__
188c2ecf20Sopenharmony_ci#define MEDIA_S5C73M3__
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#include <linux/videodev2.h>
218c2ecf20Sopenharmony_ci#include <media/v4l2-mediabus.h>
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/**
248c2ecf20Sopenharmony_ci * struct s5c73m3_gpio - data structure describing a GPIO
258c2ecf20Sopenharmony_ci * @gpio:  GPIO number
268c2ecf20Sopenharmony_ci * @level: indicates active state of the @gpio
278c2ecf20Sopenharmony_ci */
288c2ecf20Sopenharmony_cistruct s5c73m3_gpio {
298c2ecf20Sopenharmony_ci	int gpio;
308c2ecf20Sopenharmony_ci	int level;
318c2ecf20Sopenharmony_ci};
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci/**
348c2ecf20Sopenharmony_ci * struct s5c73m3_platform_data - s5c73m3 driver platform data
358c2ecf20Sopenharmony_ci * @mclk_frequency: sensor's master clock frequency in Hz
368c2ecf20Sopenharmony_ci * @gpio_reset:  GPIO driving RESET pin
378c2ecf20Sopenharmony_ci * @gpio_stby:   GPIO driving STBY pin
388c2ecf20Sopenharmony_ci * @nlanes:      maximum number of MIPI-CSI lanes used
398c2ecf20Sopenharmony_ci * @horiz_flip:  default horizontal image flip value, non zero to enable
408c2ecf20Sopenharmony_ci * @vert_flip:   default vertical image flip value, non zero to enable
418c2ecf20Sopenharmony_ci */
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_cistruct s5c73m3_platform_data {
448c2ecf20Sopenharmony_ci	unsigned long mclk_frequency;
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci	struct s5c73m3_gpio gpio_reset;
478c2ecf20Sopenharmony_ci	struct s5c73m3_gpio gpio_stby;
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci	enum v4l2_mbus_type bus_type;
508c2ecf20Sopenharmony_ci	u8 nlanes;
518c2ecf20Sopenharmony_ci	u8 horiz_flip;
528c2ecf20Sopenharmony_ci	u8 vert_flip;
538c2ecf20Sopenharmony_ci};
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci#endif /* MEDIA_S5C73M3__ */
56