xref: /linux/drivers/staging/iio/frequency/ad9832.h (revision ab93e0dd72c37d378dd936f031ffb83ff2bd87ce) !
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * AD9832 SPI DDS driver
4  *
5  * Copyright 2011 Analog Devices Inc.
6  */
7 #ifndef IIO_DDS_AD9832_H_
8 #define IIO_DDS_AD9832_H_
9 
10 /*
11  * TODO: struct ad9832_platform_data needs to go into include/linux/iio
12  */
13 
14 /**
15  * struct ad9832_platform_data - platform specific information
16  * @freq0:		power up freq0 tuning word in Hz
17  * @freq1:		power up freq1 tuning word in Hz
18  * @phase0:		power up phase0 value [0..4095] correlates with 0..2PI
19  * @phase1:		power up phase1 value [0..4095] correlates with 0..2PI
20  * @phase2:		power up phase2 value [0..4095] correlates with 0..2PI
21  * @phase3:		power up phase3 value [0..4095] correlates with 0..2PI
22  */
23 
24 struct ad9832_platform_data {
25 	unsigned long		freq0;
26 	unsigned long		freq1;
27 	unsigned short		phase0;
28 	unsigned short		phase1;
29 	unsigned short		phase2;
30 	unsigned short		phase3;
31 };
32 
33 #endif /* IIO_DDS_AD9832_H_ */
34