Linux 4.16.11
[linux/fpc-iii.git] / include / media / i2c / ad9389b.h
blob5ba9af869b8bf9863e41dd7b4fa4571217a880c4
1 /*
2 * Analog Devices AD9389B/AD9889B video encoder driver header
4 * Copyright 2012 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
6 * This program is free software; you may redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
11 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
12 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
13 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
14 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
15 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
16 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17 * SOFTWARE.
20 #ifndef AD9389B_H
21 #define AD9389B_H
23 enum ad9389b_tmds_pll_gear {
24 AD9389B_TMDS_PLL_GEAR_AUTOMATIC,
25 AD9389B_TMDS_PLL_GEAR_SEMI_AUTOMATIC,
28 /* Platform dependent definitions */
29 struct ad9389b_platform_data {
30 enum ad9389b_tmds_pll_gear tmds_pll_gear ;
31 /* Differential Data/Clock Output Drive Strength (reg. 0xa2/0xa3) */
32 u8 diff_data_drive_strength;
33 u8 diff_clk_drive_strength;
36 /* notify events */
37 #define AD9389B_MONITOR_DETECT 0
38 #define AD9389B_EDID_DETECT 1
40 struct ad9389b_monitor_detect {
41 int present;
44 struct ad9389b_edid_detect {
45 int present;
46 int segment;
49 #endif