Debian Codegraph @

thirdparty/analogdevicesinc/no-OS/drivers/AD9517/AD9517_cfg.h

raw symbols SCIP
1 /***************************************************************************//**
2 * @file AD9517_cfg.h
3 * @brief Header file of AD9517 Driver Configuration.
4 * @author DBogdan ([email protected])
5 ********************************************************************************
6 * Copyright 2012(c) Analog Devices, Inc.
7 *
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are met:
12 * - Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * - Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in
16 * the documentation and/or other materials provided with the
17 * distribution.
18 * - Neither the name of Analog Devices, Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 * - The use of this software may or may not infringe the patent rights
22 * of one or more patent holders. This license does not release you
23 * from the requirement that you obtain separate licenses from these
24 * patent holders to use this software.
25 * - Use of the software either in source or binary form, must be run
26 * on or directly connected to an Analog Devices Inc. component.
27 *
28 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
29 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
31 * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
32 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
34 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 *
39 ********************************************************************************
40 * SVN Revision: $WCREV$
41 *******************************************************************************/
42 #ifndef __AD9517_CFG_H__
43 #define __AD9517_CFG_H__
44
45 /*****************************************************************************/
46 /***************************** Include Files *********************************/
47 /*****************************************************************************/
48 //#include "AD9517.h"
49
50 struct ad9517_platform_data ad9517_pdata_lpc =
51 {
52 /* PLL Reference */
53 250000000, // ref_1_freq
54 250000000, // ref_2_freq
55 1, // diff_ref_en
56 1, // ref_1_power_on
57 1, // ref_2_power_on
58 0, // ref_sel_pin_en
59 1, // ref_sel_pin
60 0, // ref_2_en
61
62 250000000, // ext_clk_freq
63 1600000000, // int_vco_freq
64 0, // vco_clk_sel
65 0, // power_down_vco_clk
66 "ad9517-lpc" // name[16]
67 };
68
69 struct ad9517_lvpecl_channel_spec ad9517_lvpecl_channels[] =
70 {
71 {
72 0, // channel_num - Output channel number.
73 0, // out_invert_en - Invert the polarity of the output clock.
74 LVPECL_780mV, // out_diff_voltage - LVPECL output differential voltage.
75 "CH0" // name[16] - Optional descriptive channel name.
76 },
77 {
78 1, // channel_num - Output channel number.
79 0, // out_invert_en - Invert the polarity of the output clock.
80 LVPECL_780mV, // out_diff_voltage - LVPECL output differential voltage.
81 "CH1" // name[16] - Optional descriptive channel name.
82 },
83 {
84 2, // channel_num - Output channel number.
85 0, // out_invert_en - Invert the polarity of the output clock.
86 LVPECL_780mV, // out_diff_voltage - LVPECL output differential voltage.
87 "CH2" // name[16] - Optional descriptive channel name.
88 },
89 {
90 3, // channel_num - Output channel number.
91 0, // out_invert_en - Invert the polarity of the output clock.
92 LVPECL_960mV, // out_diff_voltage - LVPECL output differential voltage.
93 "CH3" // name[16] - Optional descriptive channel name.
94 }
95 };
96
97 struct ad9517_lvds_cmos_channel_spec ad9517_lvds_cmos_channels[] =
98 {
99 {
100 4, // channel_num - Output channel number.
101 0, // out_invert
102 LVDS, // logic_level - Select LVDS or CMOS logic levels.
103 0, // cmos_b_en - In CMOS mode, turn on/off the CMOS B output.
104 LVDS_3_5mA, // out_lvds_current - LVDS output current level.
105 "CH4" // name[16] - Optional descriptive channel name.
106 },
107 {
108 5, // channel_num - Output channel number.
109 0, // out_invert
110 LVDS, // logic_level - Select LVDS or CMOS logic levels.
111 0, // cmos_b_en - In CMOS mode, turn on/off the CMOS B output.
112 LVDS_3_5mA, // out_lvds_current - LVDS output current level.
113 "CH5" // name[16] - Optional descriptive channel name.
114 },
115 {
116 6, // channel_num - Output channel number.
117 0, // out_invert
118 LVDS, // logic_level - Select LVDS or CMOS logic levels.
119 1, // cmos_b_en - In CMOS mode, turn on/off the CMOS B output.
120 LVDS_3_5mA, // out_lvds_current - LVDS output current level.
121 "CH6" // name[16] - Optional descriptive channel name.
122 },
123 {
124 7, // channel_num - Output channel number.
125 0, // out_invert
126 LVDS, // logic_level - Select LVDS or CMOS logic levels.
127 0, // cmos_b_en - In CMOS mode, turn on/off the CMOS B output.
128 LVDS_3_5mA, // out_lvds_current - LVDS output current level.
129 "CH7" // name[16] - Optional descriptive channel name.
130 }
131 };
132
133 #endif // __AD9517_CFG_H__