1 /* 2 * AD9832 SPI DDS driver 3 * 4 * Copyright 2011 Analog Devices Inc. 5 * 6 * Licensed under the GPL-2 or later. 7 */ 8 #ifndef IIO_DDS_AD9832_H_ 9 #define IIO_DDS_AD9832_H_ 10 11 /* 12 * TODO: struct ad9832_platform_data needs to go into include/linux/iio 13 */ 14 15 /** 16 * struct ad9832_platform_data - platform specific information 17 * @mclk: master clock in Hz 18 * @freq0: power up freq0 tuning word in Hz 19 * @freq1: power up freq1 tuning word in Hz 20 * @phase0: power up phase0 value [0..4095] correlates with 0..2PI 21 * @phase1: power up phase1 value [0..4095] correlates with 0..2PI 22 * @phase2: power up phase2 value [0..4095] correlates with 0..2PI 23 * @phase3: power up phase3 value [0..4095] correlates with 0..2PI 24 */ 25 26 struct ad9832_platform_data { 27 unsigned long mclk; 28 unsigned long freq0; 29 unsigned long freq1; 30 unsigned short phase0; 31 unsigned short phase1; 32 unsigned short phase2; 33 unsigned short phase3; 34 }; 35 36 #endif /* IIO_DDS_AD9832_H_ */ 37