[PATCH] RTC subsystem: M48T86 driver
Add a driver for the ST M48T86 / Dallas DS12887 RTC. This is a platform driver. The platform device must provide I/O routines to access the RTC. Signed-off-by: Alessandro Zummo <a.zummo@towertech.it> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
e842f1c8ff
commit
1d98af8727
16
include/linux/m48t86.h
Normal file
16
include/linux/m48t86.h
Normal file
@ -0,0 +1,16 @@
|
||||
/*
|
||||
* ST M48T86 / Dallas DS12887 RTC driver
|
||||
* Copyright (c) 2006 Tower Technologies
|
||||
*
|
||||
* Author: Alessandro Zummo <a.zummo@towertech.it>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
struct m48t86_ops
|
||||
{
|
||||
void (*writeb)(unsigned char value, unsigned long addr);
|
||||
unsigned char (*readb)(unsigned long addr);
|
||||
};
|
Reference in New Issue
Block a user