Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236404
b: refs/heads/master
c: 2b61535
h: refs/heads/master
v: v3
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent 39bf671 commit 23a7497
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 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: bbed4dc791036e97cbe844935dece153fdace0dc
refs/heads/master: 2b61535a6e210358255c872b3187e48869e16e27
3 changes: 2 additions & 1 deletion trunk/drivers/staging/iio/dac/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ config AD5446
depends on SPI
help
Say yes here to build support for Analog Devices AD5444, AD5446,
AD5512A, AD5542A, AD5543, AD5553, AD5620, AD5640, AD5660 DACs.
AD5512A, AD5542A, AD5543, AD5553, AD5601, AD5611, AD5620, AD5621,
AD5640, AD5660 DACs.

To compile this driver as a module, choose M here: the
module will be called ad5446.
Expand Down
24 changes: 24 additions & 0 deletions trunk/drivers/staging/iio/dac/ad5446.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,27 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
.left_shift = 0,
.store_sample = ad5542_store_sample,
},
[ID_AD5601] = {
.bits = 8,
.storagebits = 16,
.left_shift = 6,
.store_sample = ad5542_store_sample,
.store_pwr_down = ad5620_store_pwr_down,
},
[ID_AD5611] = {
.bits = 10,
.storagebits = 16,
.left_shift = 4,
.store_sample = ad5542_store_sample,
.store_pwr_down = ad5620_store_pwr_down,
},
[ID_AD5621] = {
.bits = 12,
.storagebits = 16,
.left_shift = 2,
.store_sample = ad5542_store_sample,
.store_pwr_down = ad5620_store_pwr_down,
},
[ID_AD5620_2500] = {
.bits = 12,
.storagebits = 16,
Expand Down Expand Up @@ -424,6 +445,9 @@ static const struct spi_device_id ad5446_id[] = {
{"ad5542a", ID_AD5542A},
{"ad5543", ID_AD5543},
{"ad5553", ID_AD5553},
{"ad5601", ID_AD5601},
{"ad5611", ID_AD5611},
{"ad5621", ID_AD5621},
{"ad5620-2500", ID_AD5620_2500}, /* AD5620/40/60: */
{"ad5620-1250", ID_AD5620_1250}, /* part numbers may look differently */
{"ad5640-2500", ID_AD5640_2500},
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/staging/iio/dac/ad5446.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ enum ad5446_supported_device_ids {
ID_AD5543,
ID_AD5512A,
ID_AD5553,
ID_AD5601,
ID_AD5611,
ID_AD5621,
ID_AD5620_2500,
ID_AD5620_1250,
ID_AD5640_2500,
Expand Down

0 comments on commit 23a7497

Please sign in to comment.