Blame view

kernel/linux-imx6_3.14.28/arch/mips/lasat/ds1603.h 509 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  /*
   * 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