diff options
author | David Brownell <david-b@pacbell.net> | 2008-02-22 20:23:23 -0500 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2008-03-04 07:41:23 -0500 |
commit | 2a341f5cf57dce9d89b41484a69e88adc6422f6c (patch) | |
tree | 3534a1f251749b64e7b53f5834800f182a6b4786 /drivers/misc/Kconfig | |
parent | 976dde010e513a9c7c3117a32b7b015f84b37430 (diff) |
atmel_tc library
Create <linux/atmel_tc.h> based on <asm-arm/arch-at91/at91-tc.h> and the
at91sam9263 and at32ap7000 datasheets. Most AT91 and AT32 SOCs have one
or two of these TC blocks, which include three 16-bit timers that can be
interconnected in various ways.
These TC blocks can be used for external interfacing (such as PWM and
measurement), or used as somewhat quirky sixteen-bit timers.
Changes relative to the original version:
* Drop unneeded inclusion of <linux/mutex.h>
* Support an arbitrary number of TC blocks
* Return a struct with information about a TC block from
atmel_tc_alloc() instead of using a combination of return values
and "out" parameters.
* ioremap() the I/O registers on allocation
* Look up clocks and irqs for all channels
* Add "name" parameter to atmel_tc_alloc() and use this when
requesting the iomem resource.
* Check if the platform provided the necessary resources at probe()
time instead of when the TCB is allocated.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'drivers/misc/Kconfig')
-rw-r--r-- | drivers/misc/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 982e27b86d10..b3ba68170b81 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig | |||
@@ -22,6 +22,14 @@ config ATMEL_PWM | |||
22 | purposes including software controlled power-efficent backlights | 22 | purposes including software controlled power-efficent backlights |
23 | on LCD displays, motor control, and waveform generation. | 23 | on LCD displays, motor control, and waveform generation. |
24 | 24 | ||
25 | config ATMEL_TCLIB | ||
26 | bool "Atmel AT32/AT91 Timer/Counter Library" | ||
27 | depends on (AVR32 || ARCH_AT91) | ||
28 | help | ||
29 | Select this if you want a library to allocate the Timer/Counter | ||
30 | blocks found on many Atmel processors. This facilitates using | ||
31 | these blocks by different drivers despite processor differences. | ||
32 | |||
25 | config IBM_ASM | 33 | config IBM_ASM |
26 | tristate "Device driver for IBM RSA service processor" | 34 | tristate "Device driver for IBM RSA service processor" |
27 | depends on X86 && PCI && INPUT && EXPERIMENTAL | 35 | depends on X86 && PCI && INPUT && EXPERIMENTAL |