Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228004
b: refs/heads/master
c: 817e5c6
h: refs/heads/master
v: v3
  • Loading branch information
Graf Yang authored and Greg Kroah-Hartman committed Nov 9, 2010
1 parent f97254d commit ea5d511
Show file tree
Hide file tree
Showing 4 changed files with 909 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffd7a62f0dffa92409dc769562a4997eb424a7d3
refs/heads/master: 817e5c65c511d4a83686333ae75507deb4b55d5e
35 changes: 35 additions & 0 deletions trunk/drivers/staging/iio/resolver/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,38 @@ config AD2S120X
Say yes here to build support for Analog Devices spi resolver
to digital converters, ad2s1200 and ad2s1205, provides direct access
via sysfs.

config AD2S1210
tristate "Analog Devices ad2s1210 driver"
depends on SPI
help
Say yes here to build support for Analog Devices spi resolver
to digital converters, ad2s1210, provides direct access via sysfs.

choice
prompt "Resolution Control"
depends on AD2S1210
default AD2S1210_GPIO_NONE
help
In normal mode, the resolution of the digital output is selected
using the RES0 and RES1 input pins. In configuration mode, the
resolution is selected by setting the RES0 and RES1 bits in the
control regsiter. When switching between normal mode and configuration
mode, there are some schemes to keep them matchs.

config AD2S1210_GPIO_INPUT
bool "read resolution from gpio pins"
help
GPIO pins are sampling RES0 and RES1 pins, read the resolution
settings from the GPIO pins.

config AD2S1210_GPIO_OUTPUT
bool "set gpio pins to set resolution"
help
RES0 and RES1 pins are controlled by GPIOs, setting GPIO pins to
set the resolution.

config AD2S1210_GPIO_NONE
bool "take the responsibility by user"

endchoice
1 change: 1 addition & 0 deletions trunk/drivers/staging/iio/resolver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

obj-$(CONFIG_AD2S90) += ad2s90.o
obj-$(CONFIG_AD2S120X) += ad2s120x.o
obj-$(CONFIG_AD2S1210) += ad2s1210.o
Loading

0 comments on commit ea5d511

Please sign in to comment.