summaryrefslogtreecommitdiff
path: root/cpu/mpc512x/pci.c
diff options
context:
space:
mode:
authorDetlev Zundel <dzu@denx.de>2010-01-21 17:55:58 +0100
committerWolfgang Denk <wd@denx.de>2010-01-21 23:00:45 +0100
commit57ae8a5cced612088104303777e71a3dc89c00ef (patch)
tree027b189cfced7e64b3e8f7e09d204cd27294a710 /cpu/mpc512x/pci.c
parentc7c0d542a199089cf658a7c23c314a5cff248b00 (diff)
downloadu-boot-imx-57ae8a5cced612088104303777e71a3dc89c00ef.zip
u-boot-imx-57ae8a5cced612088104303777e71a3dc89c00ef.tar.gz
u-boot-imx-57ae8a5cced612088104303777e71a3dc89c00ef.tar.bz2
mpc512x: Use in/out accessors for all registers
This is not only a cosmetic change as it fixes the real bug of board reset not working with the ELDK 4.2 toolchain. Signed-off-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'cpu/mpc512x/pci.c')
-rw-r--r--cpu/mpc512x/pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu/mpc512x/pci.c b/cpu/mpc512x/pci.c
index bbfab3e..141db8b 100644
--- a/cpu/mpc512x/pci.c
+++ b/cpu/mpc512x/pci.c
@@ -1,6 +1,6 @@
/*
+ * Copyright (C) 2009-2010 DENX Software Engineering <wd@denx.de>
* Copyright (C) Freescale Semiconductor, Inc. 2006, 2007.
- * Copyright (C) 2009 DENX Software Engineering <wd@denx.de>
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -60,10 +60,10 @@ pci_init_board(void)
struct pci_controller *hose;
/* Set PCI divider for 33MHz */
- reg32 = im->clk.scfr[0];
+ reg32 = in_be32(&im->clk.scfr[0]);
reg32 &= ~(SCFR1_PCI_DIV_MASK);
reg32 |= SCFR1_PCI_DIV << SCFR1_PCI_DIV_SHIFT;
- im->clk.scfr[0] = reg32;
+ out_be32(&im->clk.scfr[0], reg32);
clrsetbits_be32(&im->clk.scfr[0],
SCFR1_PCI_DIV_MASK,