1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * AD9832 SPI DDS driver
5 * Copyright 2011 Analog Devices Inc.
7 #ifndef IIO_DDS_AD9832_H_
8 #define IIO_DDS_AD9832_H_
11 * TODO: struct ad9832_platform_data needs to go into include/linux/iio
15 * struct ad9832_platform_data - platform specific information
16 * @mclk: master clock in Hz
17 * @freq0: power up freq0 tuning word in Hz
18 * @freq1: power up freq1 tuning word in Hz
19 * @phase0: power up phase0 value [0..4095] correlates with 0..2PI
20 * @phase1: power up phase1 value [0..4095] correlates with 0..2PI
21 * @phase2: power up phase2 value [0..4095] correlates with 0..2PI
22 * @phase3: power up phase3 value [0..4095] correlates with 0..2PI
25 struct ad9832_platform_data {
28 unsigned short phase0;
29 unsigned short phase1;
30 unsigned short phase2;
31 unsigned short phase3;
34 #endif /* IIO_DDS_AD9832_H_ */