diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2010-05-24 17:33:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 11:07:04 -0400 |
commit | 6c536e4ce8edd61fdc4ab68e19ae164a54fc958f (patch) | |
tree | 1d09ef6de4c04a4bd597b060d668fce2eac14681 /drivers/misc/Kconfig | |
parent | 0c53b9fbcca8870e4f4b248f4ed5fdadd43a01b6 (diff) |
ad525x_dpot: add support for SPI parts
Split the bus logic out into separate files so that we can handle I2C and
SPI busses independently. The new SPI bus logic brings in support for a
lot more parts:
AD5160, AD5161, AD5162, AD5165, AD5200, AD5201, AD5203,
AD5204, AD5206, AD5207, AD5231, AD5232, AD5233, AD5235,
AD5260, AD5262, AD5263, AD5290, AD5291, AD5292, AD5293,
AD7376, AD8400, AD8402, AD8403, ADN2850
[randy.dunlap@oracle.com: fix ad525X_dpot build]
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/Kconfig')
-rw-r--r-- | drivers/misc/Kconfig | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 0d0d625fece2..69e019e7d69c 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig | |||
@@ -14,11 +14,15 @@ menuconfig MISC_DEVICES | |||
14 | if MISC_DEVICES | 14 | if MISC_DEVICES |
15 | 15 | ||
16 | config AD525X_DPOT | 16 | config AD525X_DPOT |
17 | tristate "Analog Devices AD525x Digital Potentiometers" | 17 | tristate "Analog Devices Digital Potentiometers" |
18 | depends on I2C && SYSFS | 18 | depends on (I2C || SPI) && SYSFS |
19 | help | 19 | help |
20 | If you say yes here, you get support for the Analog Devices | 20 | If you say yes here, you get support for the Analog Devices |
21 | AD5258, AD5259, AD5251, AD5252, AD5253, AD5254 and AD5255 | 21 | AD5258, AD5259, AD5251, AD5252, AD5253, AD5254, AD5255 |
22 | AD5160, AD5161, AD5162, AD5165, AD5200, AD5201, AD5203, | ||
23 | AD5204, AD5206, AD5207, AD5231, AD5232, AD5233, AD5235, | ||
24 | AD5260, AD5262, AD5263, AD5290, AD5291, AD5292, AD5293, | ||
25 | AD7376, AD8400, AD8402, AD8403, ADN2850 | ||
22 | digital potentiometer chips. | 26 | digital potentiometer chips. |
23 | 27 | ||
24 | See Documentation/misc-devices/ad525x_dpot.txt for the | 28 | See Documentation/misc-devices/ad525x_dpot.txt for the |
@@ -27,6 +31,26 @@ config AD525X_DPOT | |||
27 | This driver can also be built as a module. If so, the module | 31 | This driver can also be built as a module. If so, the module |
28 | will be called ad525x_dpot. | 32 | will be called ad525x_dpot. |
29 | 33 | ||
34 | config AD525X_DPOT_I2C | ||
35 | tristate "support I2C bus connection" | ||
36 | depends on AD525X_DPOT && I2C | ||
37 | help | ||
38 | Say Y here if you have a digital potentiometers hooked to an I2C bus. | ||
39 | |||
40 | To compile this driver as a module, choose M here: the | ||
41 | module will be called ad525x_dpot-i2c. | ||
42 | |||
43 | config AD525X_DPOT_SPI | ||
44 | tristate "support SPI bus connection" | ||
45 | depends on AD525X_DPOT && SPI_MASTER | ||
46 | help | ||
47 | Say Y here if you have a digital potentiometers hooked to an SPI bus. | ||
48 | |||
49 | If unsure, say N (but it's safe to say "Y"). | ||
50 | |||
51 | To compile this driver as a module, choose M here: the | ||
52 | module will be called ad525x_dpot-spi. | ||
53 | |||
30 | config ATMEL_PWM | 54 | config ATMEL_PWM |
31 | tristate "Atmel AT32/AT91 PWM support" | 55 | tristate "Atmel AT32/AT91 PWM support" |
32 | depends on AVR32 || ARCH_AT91SAM9263 || ARCH_AT91SAM9RL || ARCH_AT91CAP9 | 56 | depends on AVR32 || ARCH_AT91SAM9263 || ARCH_AT91SAM9RL || ARCH_AT91CAP9 |