diff options
author | Mike Rapoport <mike@compulab.co.il> | 2009-04-02 19:57:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-02 22:04:51 -0400 |
commit | 96615841e170f0108832e64a90d51b469573a472 (patch) | |
tree | a815741cf06b44ac98ee3ac65ca8a546970c1a70 /include/linux | |
parent | c1c490e017b66b31f6559db9cbb51a3ce00cf639 (diff) |
rtc-v3020: add ability to access v3020 chip with GPIOs
The v3020 RTC can be connected to GPIOs as well as to memory-like
interface. Add ability to use GPIO bit-bang for v3020 read-write access.
[akpm@linux-foundation.org: fix off-by-one in error path]
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/rtc-v3020.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/rtc-v3020.h b/include/linux/rtc-v3020.h index bf74e63c98fe..8ba646e610d9 100644 --- a/include/linux/rtc-v3020.h +++ b/include/linux/rtc-v3020.h | |||
@@ -14,6 +14,12 @@ | |||
14 | * is used depends on the board. */ | 14 | * is used depends on the board. */ |
15 | struct v3020_platform_data { | 15 | struct v3020_platform_data { |
16 | int leftshift; /* (1<<(leftshift)) & readl() */ | 16 | int leftshift; /* (1<<(leftshift)) & readl() */ |
17 | |||
18 | int use_gpio:1; | ||
19 | unsigned int gpio_cs; | ||
20 | unsigned int gpio_wr; | ||
21 | unsigned int gpio_rd; | ||
22 | unsigned int gpio_io; | ||
17 | }; | 23 | }; |
18 | 24 | ||
19 | #define V3020_STATUS_0 0x00 | 25 | #define V3020_STATUS_0 0x00 |