Debian Codegraph @

thirdparty/analogdevicesinc/no-OS/fmcomms1/AD9523/AD9523_cfg.h

raw symbols SCIP
1 /***************************************************************************//**
2 * @file AD9523_cfg.h
3 * @brief Header file of AD9523 Driver Configuration.
4 * @author ACozma ([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 __AD9523_CFG_H__
43 #define __AD9523_CFG_H__
44
45 #define AD9523_SPI_3_WIRE 1
46
47 struct ad9523_channel_spec ad9523_channels[] =
48 {
49 { /* ZD output */
50 0, //channel_num
51 0, //divider_output_invert_en
52 0, //sync_ignore_en
53 0, //low_power_mode_en
54 0, //use_alt_clock_src
55 0, //output_dis
56 LVDS_4mA, //driver_mode
57 0, //divider_phase
58 8, //channel_divider
59 "ZD_OUTPUT", //extended_name
60 },
61 { /* DAC CLK */
62 12, //channel_num
63 0, //divider_output_invert_en
64 0, //sync_ignore_en
65 0, //low_power_mode_en
66 0, //use_alt_clock_src
67 1, //output_dis
68 LVPECL_8mA, //driver_mode
69 0, //divider_phase
70 2, //channel_divider
71 "DAC_CLK", //extended_name
72 },
73 { /* ADC CLK */
74 2, //channel_num
75 0, //divider_output_invert_en
76 0, //sync_ignore_en
77 0, //low_power_mode_en
78 0, //use_alt_clock_src
79 1, //output_dis
80 LVDS_7mA, //driver_mode
81 0, //divider_phase
82 4, //channel_divider
83 "ADC_CLK", //extended_name
84 },
85 { /* DAC REF CLK */
86 10, //channel_num
87 0, //divider_output_invert_en
88 0, //sync_ignore_en
89 0, //low_power_mode_en
90 0, //use_alt_clock_src
91 1, //output_dis
92 LVDS_4mA, //driver_mode
93 0, //divider_phase
94 16, //channel_divider
95 "DAC_REF_CLK", //extended_name
96 },
97 { /* TX LO REF */
98 5, //channel_num
99 0, //divider_output_invert_en
100 0, //sync_ignore_en
101 0, //low_power_mode_en
102 0, //use_alt_clock_src
103 1, //output_dis
104 CMOS_CONF3, //driver_mode
105 0, //divider_phase
106 8, //channel_divider
107 "TX_LO_REF_CLK", //extended_name
108 },
109 { /* DAC DCO */
110 6, //channel_num
111 0, //divider_output_invert_en
112 0, //sync_ignore_en
113 0, //low_power_mode_en
114 0, //use_alt_clock_src
115 1, //output_dis
116 LVDS_7mA, //driver_mode
117 0, //divider_phase
118 2, //channel_divider
119 "DAC_DCO_CLK", //extended_name
120 },
121 { /* ADC SYNC */
122 7, //channel_num
123 0, //divider_output_invert_en
124 0, //sync_ignore_en
125 0, //low_power_mode_en
126 0, //use_alt_clock_src
127 1, //output_dis
128 CMOS_CONF3, //driver_mode
129 1, //divider_phase
130 32, //channel_divider
131 "ADC_SYNC_CLK", //extended_name
132 },
133 { /* RX LO REF */
134 9, //channel_num
135 0, //divider_output_invert_en
136 0, //sync_ignore_en
137 0, //low_power_mode_en
138 0, //use_alt_clock_src
139 1, //output_dis
140 CMOS_CONF3, //driver_mode
141 0, //divider_phase
142 8, //channel_divider
143 "RX_LO_REF_CLK", //extended_name
144 },
145 };
146
147 struct ad9523_platform_data ad9523_pdata_lpc =
148 {
149 122880000, //vcxo_freq
150
151 /* Single-Ended Input Configuration */
152 0, //refa_diff_rcv_en
153 1, //refb_diff_rcv_en
154 1, //zd_in_diff_en
155 0, //osc_in_diff_en
156
157 1, //refa_cmos_neg_inp_en
158 0, //refb_cmos_neg_inp_en
159 0, //zd_in_cmos_neg_inp_en
160 1, //osc_in_cmos_neg_inp_en
161
162 0, //refa_r_div
163 0, //refb_r_div
164 4, //pll1_feedback_div
165 2000, //pll1_charge_pump_current_nA
166 1, //zero_delay_mode_internal_en
167 0, //osc_in_feedback_en
168 3, //pll1_loop_filter_rzero
169
170 SELECT_REFB, //ref_mode
171
172 420000, //pll2_charge_pump_current_nA
173 0, //pll2_ndiv_a_cnt
174 3, //pll2_ndiv_b_cnt
175 1, //pll2_freq_doubler_en
176 1, //pll2_r2_div
177 3, //pll2_vco_diff_m1
178 3, //pll2_vco_diff_m2
179
180 0, //rpole2
181 2, //rzero
182 2, //cpole1
183 0, //rzero_bypass_en
184
185 /* Output Channel Configuration */
186 ARRAY_SIZE(ad9523_channels), //num_channels
187 ad9523_channels, //channels
188 "ad9523-lpc" //name
189 };
190
191 #endif // __AD9523_CFG_H__