From: Kim Phillips Date: Wed, 6 Jan 2010 17:43:56 -0600 Subject: [PATCH] fixes for vme pci reset patch Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de convert clrbits_be32 + setbits_be32 to clrsetbits_be32, use out_be32 to set gcr. Signed-off-by: Kim Phillips --- 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