From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Jin Date: Thu, 7 Jun 2007 16:35:17 +0800 Subject: [U-Boot-Users] [PATCH] Minor fix for readl when swap reg access. Message-ID: <1181205317977-git-send-email-Jason.jin@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This patch fix readl in ohci swap reg access. Signed-off-by: Jason Jin --- drivers/usb_ohci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb_ohci.c b/drivers/usb_ohci.c index 3cef576..d6b745f 100644 --- a/drivers/usb_ohci.c +++ b/drivers/usb_ohci.c @@ -81,7 +81,7 @@ * e.g. PCI controllers need this */ #ifdef CFG_OHCI_SWAP_REG_ACCESS -# define readl(a) __swap_16(*((vu_long *)(a))) +# define readl(a) __swap_32(*((vu_long *)(a))) # define writel(a, b) (*((vu_long *)(b)) = __swap_32((vu_long)a)) #else # define readl(a) (*((vu_long *)(a))) -- 1.5.1