mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [RFC 0/5] add rtc support
@ 2014-07-10  8:33 Antony Pavlov
  2014-07-10  8:33 ` [RFC 1/5] lib: import 'bcd' from linux-3.15 Antony Pavlov
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Antony Pavlov @ 2014-07-10  8:33 UTC (permalink / raw)
  To: barebox

This patchseries imports RTC support from linux-3.15.

User can use 'hwclock' command to see realtime clock readout.

Tested with DS1307.

TODOs:

 * rtc_set_time() is not realized;
 * ds1307_set_time() is not tested;
 * bcd lib is compiled in even if rtc support is disabled (as linux does);
   we can make it optional;
 * adjust include/linux/rtc.h and include/rtc.h;
 * rtc_unregister() is not realized.


Antony Pavlov (5):
  lib: import 'bcd' from linux-3.15
  add rtc support
  i2c: import SMBus stuff from linux
  rtc: add ds1307 support
  commands: add hwclock

 commands/Kconfig         |   8 ++
 commands/Makefile        |   1 +
 commands/hwclock.c       |  37 +++++
 drivers/Kconfig          |   1 +
 drivers/Makefile         |   1 +
 drivers/i2c/i2c.c        | 368 +++++++++++++++++++++++++++++++++++++++++++++++
 drivers/rtc/Kconfig      |  45 ++++++
 drivers/rtc/Makefile     |  10 ++
 drivers/rtc/class.c      |  62 ++++++++
 drivers/rtc/rtc-ds1307.c | 315 ++++++++++++++++++++++++++++++++++++++++
 drivers/rtc/rtc-lib.c    |  64 +++++++++
 include/i2c/i2c.h        |  64 +++++++++
 include/linux/bcd.h      |  22 +++
 include/linux/rtc.h      |  46 ++++++
 include/rtc.h            |   2 +
 lib/Makefile             |   1 +
 lib/bcd.c                |  14 ++
 17 files changed, 1061 insertions(+)
 create mode 100644 commands/hwclock.c
 create mode 100644 drivers/rtc/Kconfig
 create mode 100644 drivers/rtc/Makefile
 create mode 100644 drivers/rtc/class.c
 create mode 100644 drivers/rtc/rtc-ds1307.c
 create mode 100644 drivers/rtc/rtc-lib.c
 create mode 100644 include/linux/bcd.h
 create mode 100644 include/linux/rtc.h
 create mode 100644 lib/bcd.c

-- 
2.0.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-07-11 11:15 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-10  8:33 [RFC 0/5] add rtc support Antony Pavlov
2014-07-10  8:33 ` [RFC 1/5] lib: import 'bcd' from linux-3.15 Antony Pavlov
2014-07-10  8:33 ` [RFC 2/5] add rtc support Antony Pavlov
2014-07-10 21:40   ` Sascha Hauer
2014-07-11  5:31     ` Antony Pavlov
2014-07-10  8:33 ` [RFC 3/5] i2c: import SMBus stuff from linux Antony Pavlov
2014-07-10  8:33 ` [RFC 4/5] rtc: add ds1307 support Antony Pavlov
2014-07-10  8:33 ` [RFC 5/5] commands: add hwclock Antony Pavlov
2014-07-10 21:45   ` Sascha Hauer
2014-07-11  5:59     ` Antony Pavlov
2014-07-11  6:07       ` Sascha Hauer
2014-07-11  5:37 ` [RFC 0/5] add rtc support Sascha Hauer
2014-07-11  6:12   ` Antony Pavlov
2014-07-11  6:10     ` Sascha Hauer
2014-07-11  6:32       ` Antony Pavlov
2014-07-11  6:37         ` Sascha Hauer
2014-07-11 11:27     ` Antony Pavlov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox