Skip to content

Commit e592f1c

Browse files
committed
drivers/iio/frequency/cf_axi_dds: Add support for AD9162
Signed-off-by: Michael Hennerich <[email protected]>
1 parent b59a15e commit e592f1c

22 files changed

+5829
-8
lines changed

drivers/iio/frequency/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ config CF_AXI_DDS_AD9144
8787
Say yes here to build support for Analog Devices AD9144 DAC chip
8888
ad9144, provides direct access via sysfs.
8989

90+
config CF_AXI_DDS_AD9162
91+
tristate "Analog Devices AD9162 DAC"
92+
depends on CF_AXI_DDS
93+
help
94+
Say yes here to build support for Analog Devices AD9162 DAC chip
95+
ad9162, provides direct access via sysfs.
96+
97+
9098
config CF_AXI_DDS_AD9739A
9199
tristate "Analog Devices AD9739A DAC"
92100
depends on CF_AXI_DDS

drivers/iio/frequency/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ obj-$(CONFIG_CF_AXI_DDS_AD9122) += ad9122.o
1616
obj-$(CONFIG_CF_AXI_DDS_AD9144) += ad9144.o
1717
obj-$(CONFIG_CF_AXI_DDS_AD9739A) += ad9739a.o
1818

19+
ad916x_drv-y := ad916x/ad916x_api.o ad916x/ad916x_irq_api.o ad916x/ad916x_jesd_api.o ad916x/ad916x_jesd_test_api.o ad916x/ad916x_nco_api.o ad916x/ad916x_reg.o ad916x/api_errors.o ad916x/utils.o
20+
obj-$(CONFIG_CF_AXI_DDS_AD9162) += ad9162.o ad916x_drv.o
21+

drivers/iio/frequency/ad9122.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static int ad9122_get_clks(struct cf_axi_converter *conv)
371371
return 0;
372372
}
373373

374-
static unsigned long ad9122_get_data_clk(struct cf_axi_converter *conv)
374+
static unsigned long long ad9122_get_data_clk(struct cf_axi_converter *conv)
375375
{
376376
return clk_get_rate(conv->clk[CLK_DATA]);
377377
}

drivers/iio/frequency/ad9144.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static int ad9144_get_clks(struct cf_axi_converter *conv)
265265
return 0;
266266
}
267267

268-
static unsigned long ad9144_get_data_clk(struct cf_axi_converter *conv)
268+
static unsigned long long ad9144_get_data_clk(struct cf_axi_converter *conv)
269269
{
270270
return clk_get_rate(conv->clk[CLK_DAC]);
271271
}

0 commit comments

Comments
 (0)