rtc: pcf2123: define registers and bit macros
authorJoshua Clayton <stillcompiling@gmail.com>
Mon, 4 Jan 2016 18:31:19 +0000 (10:31 -0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:07:40 +0000 (17:07 +0100)
commit245cb74be649ada355ca68f1cc9cfec519aae612
treea053819c63a52dd3d0ad916ac8dfc689359b9185
parent445c02076f1e60d2ee51503bf1288ef9f3bc8809
rtc: pcf2123: define registers and bit macros

Add defines for all 16 registers in the pcf2123.
Add defines for useful bits from several registers
I've tried to document all the registers, and
as best as possible, all the special bits they employ

Use BIT() wherever possible in the bit definitions

Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pcf2123.c