Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325102
b: refs/heads/master
c: 2fafbce
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Sep 8, 2012
1 parent ff71cd3 commit 772611e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce56ade6ae74e604a4b5d6ea5b1d58960fa8e7aa
refs/heads/master: 2fafbce25063ae2732f2f2d9f853f1d97145eab5
6 changes: 3 additions & 3 deletions trunk/drivers/iio/dac/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ config AD5446
tristate "Analog Devices AD5446 and similar single channel DACs driver"
depends on (SPI_MASTER || I2C)
help
Say yes here to build support for Analog Devices AD5602, AD5612, AD5622,
Say yes here to build support for Analog Devices AD5300, AD5310, AD5320,
AD5444, AD5446, AD5450, AD5451, AD5452, AD5453, AD5512A, AD5541A, AD5542A,
AD5543, AD5553, AD5601, AD5611, AD5620, AD5621, AD5640, AD5660, AD5662
DACs.
AD5543, AD5553, AD5601, AD5602, AD5611, AD5612, AD5620, AD5621, AD5622,
AD5640, AD5660, AD5662 DACs.

To compile this driver as a module, choose M here: the
module will be called ad5446.
Expand Down
18 changes: 18 additions & 0 deletions trunk/drivers/iio/dac/ad5446.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ static int ad5660_write(struct ad5446_state *st, unsigned val)
* parts are supported here.
*/
enum ad5446_supported_spi_device_ids {
ID_AD5300,
ID_AD5310,
ID_AD5320,
ID_AD5444,
ID_AD5446,
ID_AD5450,
Expand All @@ -341,6 +344,18 @@ enum ad5446_supported_spi_device_ids {
};

static const struct ad5446_chip_info ad5446_spi_chip_info[] = {
[ID_AD5300] = {
.channel = AD5446_CHANNEL_POWERDOWN(8, 16, 4),
.write = ad5446_write,
},
[ID_AD5310] = {
.channel = AD5446_CHANNEL_POWERDOWN(10, 16, 2),
.write = ad5446_write,
},
[ID_AD5320] = {
.channel = AD5446_CHANNEL_POWERDOWN(12, 16, 0),
.write = ad5446_write,
},
[ID_AD5444] = {
.channel = AD5446_CHANNEL(12, 16, 2),
.write = ad5446_write,
Expand Down Expand Up @@ -418,6 +433,9 @@ static const struct ad5446_chip_info ad5446_spi_chip_info[] = {
};

static const struct spi_device_id ad5446_spi_ids[] = {
{"ad5300", ID_AD5300},
{"ad5310", ID_AD5310},
{"ad5320", ID_AD5320},
{"ad5444", ID_AD5444},
{"ad5446", ID_AD5446},
{"ad5450", ID_AD5450},
Expand Down

0 comments on commit 772611e

Please sign in to comment.