]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/staging/iio/resolver/Kconfig
Merge tag 'v2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[mv-sheeva.git] / drivers / staging / iio / resolver / Kconfig
diff --git a/drivers/staging/iio/resolver/Kconfig b/drivers/staging/iio/resolver/Kconfig
new file mode 100644 (file)
index 0000000..a4a3634
--- /dev/null
@@ -0,0 +1,54 @@
+#
+# Resolver/Synchro drivers
+#
+comment "Resolver to digital converters"
+
+config AD2S90
+       tristate "Analog Devices ad2s90 driver"
+       depends on SPI
+       help
+         Say yes here to build support for Analog Devices spi resolver
+         to digital converters, ad2s90, provides direct access via sysfs.
+
+config AD2S120X
+       tristate "Analog Devices ad2s120x driver"
+       depends on SPI
+       help
+         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