blob: 30f9ea9a1273626a7e2b25799e687d7bc4e90843 [file] [log] [blame]
Hans Verkuilab15d242018-02-07 09:05:46 -05001/* SPDX-License-Identifier: GPL-2.0-only */
Hans Verkuil117a55b2012-07-18 05:46:46 -03002/*
3 * Analog Devices AD9389B/AD9889B video encoder driver header
4 *
5 * Copyright 2012 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
Hans Verkuil117a55b2012-07-18 05:46:46 -03006 */
7
8#ifndef AD9389B_H
9#define AD9389B_H
10
11enum ad9389b_tmds_pll_gear {
12 AD9389B_TMDS_PLL_GEAR_AUTOMATIC,
13 AD9389B_TMDS_PLL_GEAR_SEMI_AUTOMATIC,
14};
15
16/* Platform dependent definitions */
17struct 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
28struct ad9389b_monitor_detect {
29 int present;
30};
31
32struct ad9389b_edid_detect {
33 int present;
34 int segment;
35};
36
37#endif