linux-mips
[Top] [All Lists]

[PATCH][MIPS] fix pb1500 reg B access

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH][MIPS] fix pb1500 reg B access
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Mon, 28 May 2007 23:26:56 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi Ralf,

I think that au_readl() is correct here.

Yoichi

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>

diff -pruN -X generic/Documentation/dontdiff 
generic-orig/arch/mips/au1000/pb1500/board_setup.c 
generic/arch/mips/au1000/pb1500/board_setup.c
--- generic-orig/arch/mips/au1000/pb1500/board_setup.c  2007-03-23 
11:00:22.474631250 +0900
+++ generic/arch/mips/au1000/pb1500/board_setup.c       2007-03-23 
17:09:27.070322250 +0900
@@ -125,7 +125,7 @@ void __init board_setup(void)
                au_writel((au_readl(0xac000028) | 0x20), 0xac000028);
        }
        /* Put the clock in BCD mode */
-       if (readl(0xac00002C) & 0x4) { /* reg B */
+       if (au_readl(0xac00002C) & 0x4) { /* reg B */
                au_writel(au_readl(0xac00002c) & ~0x4, 0xac00002c);
                au_sync();
        }

<Prev in Thread] Current Thread [Next in Thread>