Update of /cvsroot/linux-mips/linux/arch/mips/au1000/pb1500
In directory usw-pr-cvs1:/tmp/cvs-serv13929/arch/mips/au1000/pb1500
Modified Files:
setup.c
Log Message:
BE mods.
Index: setup.c
===================================================================
RCS file: /cvsroot/linux-mips/linux/arch/mips/au1000/pb1500/setup.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- setup.c 26 Apr 2002 18:51:39 -0000 1.6
+++ setup.c 30 Apr 2002 23:08:19 -0000 1.7
@@ -255,12 +255,13 @@
#ifdef CONFIG_RTC
rtc_ops = &pb1500_rtc_ops;
// Enable the RTC if not already enabled
- if (!(readb(0xac000028) & 0x20)) {
- writeb(readb(0xac000028) | 0x20, 0xac000028);
+ if (!(readl(0xac000028) & 0x20)) {
+ printk("enabling clock ...\n");
+ writel((readl(0xac000028) | 0x20), 0xac000028);
}
// Put the clock in BCD mode
- if (readb(0xac00002C) & 0x4) { /* reg B */
- writeb(readb(0xac00002c) & ~0x4, 0xac00002c);
+ if (readl(0xac00002C) & 0x4) { /* reg B */
+ writel((readl(0xac00002c) & ~0x4), 0xac00002c);
au_sync();
}
#endif
|