rtc-v3020: add ability to access v3020 chip with GPIOs
authorMike Rapoport <mike@compulab.co.il>
Thu, 2 Apr 2009 23:57:01 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:51 +0000 (19:04 -0700)
commit96615841e170f0108832e64a90d51b469573a472
treea815741cf06b44ac98ee3ac65ca8a546970c1a70
parentc1c490e017b66b31f6559db9cbb51a3ce00cf639
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>
drivers/rtc/rtc-v3020.c
include/linux/rtc-v3020.h