Merge tag 'sh-for-4.17-fixes' of git://git.libc.org/linux-sh
[sfrench/cifs-2.6.git] / include / media / i2c / ad9389b.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Analog Devices AD9389B/AD9889B video encoder driver header
4  *
5  * Copyright 2012 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
6  */
7
8 #ifndef AD9389B_H
9 #define AD9389B_H
10
11 enum ad9389b_tmds_pll_gear {
12         AD9389B_TMDS_PLL_GEAR_AUTOMATIC,
13         AD9389B_TMDS_PLL_GEAR_SEMI_AUTOMATIC,
14 };
15
16 /* Platform dependent definitions */
17 struct ad9389b_platform_data {
18         enum ad9389b_tmds_pll_gear tmds_pll_gear ;
19         /* Differential Data/Clock Output Drive Strength (reg. 0xa2/0xa3) */
20         u8 diff_data_drive_strength;
21         u8 diff_clk_drive_strength;
22 };
23
24 /* notify events */
25 #define AD9389B_MONITOR_DETECT 0
26 #define AD9389B_EDID_DETECT 1
27
28 struct ad9389b_monitor_detect {
29         int present;
30 };
31
32 struct ad9389b_edid_detect {
33         int present;
34         int segment;
35 };
36
37 #endif