From: Pete P. <pp...@us...> - 2002-04-30 23:09:02
|
Update of /cvsroot/linux-mips/linux/arch/mips/au1000/common In directory usw-pr-cvs1:/tmp/cvs-serv14153/arch/mips/au1000/common Modified Files: rtc.c Log Message: BE mods. Index: rtc.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/au1000/common/rtc.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- rtc.c 15 Feb 2002 19:47:24 -0000 1.1 +++ rtc.c 30 Apr 2002 23:08:58 -0000 1.2 @@ -12,16 +12,16 @@ #define PB1500_RTC_ADDR 0xAC000000 -static unsigned char std_rtc_read_data(unsigned long addr) +unsigned char std_rtc_read_data(unsigned long offset) { - addr <<= 2; - return readb(addr + PB1500_RTC_ADDR); + offset <<= 2; + return (u8)(readl(offset + PB1500_RTC_ADDR) & 0xff); } -static void std_rtc_write_data(unsigned char data, unsigned long addr) +static void std_rtc_write_data(unsigned char data, unsigned long offset) { - addr <<= 2; - writeb(data, addr + PB1500_RTC_ADDR); + offset <<= 2; + writel(data, offset + PB1500_RTC_ADDR); } static int std_rtc_bcd_mode(void) |