x86: rtc: mc146818: Add helpers to read/write CMOS RAM
authorSimon Glass <sjg@chromium.org>
Tue, 20 Jan 2015 05:16:10 +0000 (22:16 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 24 Jan 2015 13:13:44 +0000 (06:13 -0700)
commitfc4860c089a6b6603e1ae4f9c1f8bd1b3aadfc8b
tree7db356c7510493cb716dd2c33f2a3a181a35f563
parentb18c68d8918095672b295aef7bfbfc466b82c710
x86: rtc: mc146818: Add helpers to read/write CMOS RAM

On x86 we use CMOS RAM to read and write some settings. Add basic support
for this, including access to registers 128-255.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/rtc/mc146818.c
include/rtc.h