[PATCH] fixes for vme pci reset patch

Kim Phillips kim.phillips at freescale.com
Thu Jan 7 00:43:56 CET 2010


convert clrbits_be32 + setbits_be32 to clrsetbits_be32, use out_be32 to
set gcr. 

Signed-off-by: Kim Phillips <kim.phillips at freescale.com>
---
 board/esd/vme8349/pci.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/board/esd/vme8349/pci.c b/board/esd/vme8349/pci.c
index 380f4fb..94fd32a 100644
--- a/board/esd/vme8349/pci.c
+++ b/board/esd/vme8349/pci.c
@@ -99,11 +99,9 @@ pci_init_board(void)
 	/*
 	 * Assert/deassert VME reset
 	 */
-	clrbits_be32(&immr->gpio[1].dat, GPIO2_TSI_POWERUP_RESET_N |
-		     GPIO2_TSI_PLL_RESET_N);
-	setbits_be32(&immr->gpio[1].dat, GPIO2_VME_RESET_N  |
-		     GPIO2_L_RESET_EN_N);
-
+	clrsetbits_be32(&immr->gpio[1].dat,
+			GPIO2_TSI_POWERUP_RESET_N | GPIO2_TSI_PLL_RESET_N,
+			GPIO2_VME_RESET_N  | GPIO2_L_RESET_EN_N);
 	setbits_be32(&immr->gpio[1].dir, GPIO2_TSI_PLL_RESET_N |
 		     GPIO2_TSI_POWERUP_RESET_N |
 		     GPIO2_VME_RESET_N |
@@ -131,8 +129,8 @@ pci_init_board(void)
 		/*
 		 * Release PCI RST Output signal
 		 */
-		immr->pci_ctrl[0].gcr = 0;
+		out_be32(&immr->pci_ctrl[0].gcr, 0);
 		udelay(2000);
-		immr->pci_ctrl[0].gcr = 1;
+		out_be32(&immr->pci_ctrl[0].gcr, 1);
 	}
 }
-- 
1.6.6



More information about the U-Boot mailing list