mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
![Ralf Baechle](/assets/img/avatar_default.png)
Hard to follow who is pointing what to where and why so it's simply getting in the way of the time code renovation. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
31 lines
509 B
C
31 lines
509 B
C
/*
|
|
* Dallas Semiconductors 1603 RTC driver
|
|
*
|
|
* Brian Murphy <brian@murphy.dk>
|
|
*
|
|
*/
|
|
#ifndef __DS1603_H
|
|
#define __DS1603_H
|
|
|
|
struct ds_defs {
|
|
volatile u32 *reg;
|
|
volatile u32 *data_reg;
|
|
u32 rst;
|
|
u32 clk;
|
|
u32 data;
|
|
u32 data_read_shift;
|
|
char data_reversed;
|
|
u32 huge_delay;
|
|
};
|
|
|
|
extern struct ds_defs *ds1603;
|
|
|
|
void ds1603_set_trimmer(unsigned int);
|
|
void ds1603_enable(void);
|
|
void ds1603_disable(void);
|
|
void ds1603_init(struct ds_defs *);
|
|
|
|
#define TRIMMER_DEFAULT 3
|
|
#define TRIMMER_DISABLE_RTC 0
|
|
|
|
#endif
|