summaryrefslogtreecommitdiff
path: root/board/xes/xpedite5200/xpedite5200.c
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-08-07 13:16:34 -0500
committerKumar Gala <galak@kernel.crashing.org>2009-08-28 17:12:39 -0500
commit1bb61b69f7aba4931ede35fdcabd8e5ecad121d7 (patch)
treebf8ce9d036e7f68ce571ef735a874fa17f5c4fb6 /board/xes/xpedite5200/xpedite5200.c
parentec79d33b2c41ee8b6d1354cc0910217b769c5036 (diff)
downloadu-boot-imx-1bb61b69f7aba4931ede35fdcabd8e5ecad121d7.zip
u-boot-imx-1bb61b69f7aba4931ede35fdcabd8e5ecad121d7.tar.gz
u-boot-imx-1bb61b69f7aba4931ede35fdcabd8e5ecad121d7.tar.bz2
xes: Use proper IO access functions
Also fix some minor whitespace oddities while we're cleaning up Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/xes/xpedite5200/xpedite5200.c')
-rw-r--r--board/xes/xpedite5200/xpedite5200.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/board/xes/xpedite5200/xpedite5200.c b/board/xes/xpedite5200/xpedite5200.c
index 77afdbc..7109771 100644
--- a/board/xes/xpedite5200/xpedite5200.c
+++ b/board/xes/xpedite5200/xpedite5200.c
@@ -40,7 +40,6 @@ int checkboard(void)
{
volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
volatile ccsr_local_ecm_t *ecm = (void *)(CONFIG_SYS_MPC85xx_ECM_ADDR);
-
char *s;
printf("Board: X-ES %s PMC\n", CONFIG_SYS_BOARD_NAME);
@@ -56,10 +55,10 @@ int checkboard(void)
printf("Cfg %s", s);
printf("\n");
- lbc->ltesr = 0xffffffff; /* Clear LBC error interrupts */
- lbc->lteir = 0xffffffff; /* Enable LBC error interrupts */
- ecm->eedr = 0xffffffff; /* Clear ecm errors */
- ecm->eeer = 0xffffffff; /* Enable ecm errors */
+ out_be32(&lbc->ltesr, 0xffffffff); /* Clear LBC error IRQs */
+ out_be32(&lbc->lteir, 0xffffffff); /* Enable LBC error IRQs */
+ out_be32(&ecm->eedr, 0xffffffff); /* Clear ecm errors */
+ out_be32(&ecm->eeer, 0xffffffff); /* Enable ecm errors */
return 0;
}
@@ -79,11 +78,11 @@ static void flash_cs_fixup(void)
printf("FLASH: Executed from FLASH%d\n", flash_sel ? 2 : 1);
if (flash_sel) {
- lbc->br0 = CONFIG_SYS_BR1_PRELIM;
- lbc->or0 = CONFIG_SYS_OR1_PRELIM;
+ out_be32(&lbc->br0, CONFIG_SYS_BR1_PRELIM);
+ out_be32(&lbc->or0, CONFIG_SYS_OR1_PRELIM);
- lbc->br1 = CONFIG_SYS_BR0_PRELIM;
- lbc->or1 = CONFIG_SYS_OR0_PRELIM;
+ out_be32(&lbc->br1, CONFIG_SYS_BR0_PRELIM);
+ out_be32(&lbc->or1, CONFIG_SYS_OR0_PRELIM);
}
}