Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ds1603.c File Reference
#include <linux/kernel.h>
#include <asm/lasat/lasat.h>
#include <linux/delay.h>
#include <asm/lasat/ds1603.h>
#include <asm/time.h>
#include "ds1603.h"

Go to the source code of this file.

Macros

#define READ_TIME_CMD   0x81
 
#define SET_TIME_CMD   0x80
 
#define TRIMMER_SET_CMD   0xC0
 
#define TRIMMER_VALUE_MASK   0x38
 
#define TRIMMER_SHIFT   3
 

Functions

void read_persistent_clock (struct timespec *ts)
 
int rtc_mips_set_mmss (unsigned long time)
 
void ds1603_set_trimmer (unsigned int trimval)
 
void ds1603_disable (void)
 
void ds1603_enable (void)
 

Variables

struct ds_defsds1603
 

Macro Definition Documentation

#define READ_TIME_CMD   0x81

Definition at line 15 of file ds1603.c.

#define SET_TIME_CMD   0x80

Definition at line 16 of file ds1603.c.

#define TRIMMER_SET_CMD   0xC0

Definition at line 17 of file ds1603.c.

#define TRIMMER_SHIFT   3

Definition at line 19 of file ds1603.c.

#define TRIMMER_VALUE_MASK   0x38

Definition at line 18 of file ds1603.c.

Function Documentation

void ds1603_disable ( void  )

Definition at line 176 of file ds1603.c.

void ds1603_enable ( void  )

Definition at line 181 of file ds1603.c.

void ds1603_set_trimmer ( unsigned int  trimval)

Definition at line 168 of file ds1603.c.

void read_persistent_clock ( struct timespec ts)

Definition at line 138 of file ds1603.c.

int rtc_mips_set_mmss ( unsigned long  time)

Definition at line 154 of file ds1603.c.

Variable Documentation

struct ds_defs* ds1603

Definition at line 21 of file ds1603.c.