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