rtc-ds1302.c (b74b953b998bcc2db91b694446f3a2619ec32de6) rtc-ds1302.c (f6eec8d66400714e47add3d8341688a1e86c5de9)
1/*
2 * Dallas DS1302 RTC Support
3 *
4 * Copyright (C) 2002 David McCullough
5 * Copyright (C) 2003 - 2007 Paul Mundt
6 *
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License version 2. See the file "COPYING" in the main directory of

--- 21 unchanged lines hidden (view full) ---

30#define RTC_ADDR_MON 0x04 /* Address of month register */
31#define RTC_ADDR_DATE 0x03 /* Address of day of month register */
32#define RTC_ADDR_HOUR 0x02 /* Address of hour register */
33#define RTC_ADDR_MIN 0x01 /* Address of minute register */
34#define RTC_ADDR_SEC 0x00 /* Address of second register */
35
36#ifdef CONFIG_SH_SECUREEDGE5410
37#include <asm/rtc.h>
1/*
2 * Dallas DS1302 RTC Support
3 *
4 * Copyright (C) 2002 David McCullough
5 * Copyright (C) 2003 - 2007 Paul Mundt
6 *
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License version 2. See the file "COPYING" in the main directory of

--- 21 unchanged lines hidden (view full) ---

30#define RTC_ADDR_MON 0x04 /* Address of month register */
31#define RTC_ADDR_DATE 0x03 /* Address of day of month register */
32#define RTC_ADDR_HOUR 0x02 /* Address of hour register */
33#define RTC_ADDR_MIN 0x01 /* Address of minute register */
34#define RTC_ADDR_SEC 0x00 /* Address of second register */
35
36#ifdef CONFIG_SH_SECUREEDGE5410
37#include <asm/rtc.h>
38#include <mach/snapgear.h>
38#include <mach/secureedge5410.h>
39
40#define RTC_RESET 0x1000
41#define RTC_IODATA 0x0800
42#define RTC_SCLK 0x0400
43
44#define set_dp(x) SECUREEDGE_WRITE_IOPORT(x, 0x1c00)
45#define get_dp() SECUREEDGE_READ_IOPORT()
46#define ds1302_set_tx()

--- 225 unchanged lines hidden ---
39
40#define RTC_RESET 0x1000
41#define RTC_IODATA 0x0800
42#define RTC_SCLK 0x0400
43
44#define set_dp(x) SECUREEDGE_WRITE_IOPORT(x, 0x1c00)
45#define get_dp() SECUREEDGE_READ_IOPORT()
46#define ds1302_set_tx()

--- 225 unchanged lines hidden ---