2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * RTC routines for PC style attached Dallas chip.
8 * Copyright (C) 1998, 2001 by Ralf Baechle
10 #include <linux/mc146818rtc.h>
12 #include <asm/au1000.h>
14 #define PB1500_RTC_ADDR 0xAC000000
16 unsigned char std_rtc_read_data(unsigned long offset)
19 return (u8)(au_readl(offset + PB1500_RTC_ADDR) & 0xff);
22 static void std_rtc_write_data(unsigned char data, unsigned long offset)
25 au_writel(data, offset + PB1500_RTC_ADDR);
28 static int std_rtc_bcd_mode(void)
33 struct rtc_ops pb1500_rtc_ops = {