summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2006-10-12 19:50:17 +0200
committerStefan Roese <sr@denx.de>2006-10-12 20:09:31 +0200
commitd7762337cbc8293b259218b4a804dc626e257a4a (patch)
tree94e49386f0b28cfbcd1c29307e3ff44362f90b0b /cpu/ppc4xx
parente0a46554c3459dc7cabf149c135e79e8df70ae14 (diff)
downloadu-boot-imx-d7762337cbc8293b259218b4a804dc626e257a4a.zip
u-boot-imx-d7762337cbc8293b259218b4a804dc626e257a4a.tar.gz
u-boot-imx-d7762337cbc8293b259218b4a804dc626e257a4a.tar.bz2
* PPC405EP: Add support for board configuration of CPC0_PCI register
This is needed to be able to configure PerWE*/PCI_INT* pin as PerWE* Patch by Tolunay Orkun, 07 Apr 2006
Diffstat (limited to 'cpu/ppc4xx')
-rw-r--r--cpu/ppc4xx/start.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpu/ppc4xx/start.S b/cpu/ppc4xx/start.S
index 3f29314..3fe13da 100644
--- a/cpu/ppc4xx/start.S
+++ b/cpu/ppc4xx/start.S
@@ -1697,7 +1697,8 @@ ppc405ep_init:
mtdcr ebccfgd,r3
#endif
- addi r3,0,CPC0_PCI_HOST_CFG_EN
+#ifndef CFG_CPC0_PCI
+ li r3,CPC0_PCI_HOST_CFG_EN
#ifdef CONFIG_BUBINGA
/*
!-----------------------------------------------------------------------
@@ -1712,6 +1713,9 @@ ppc405ep_init:
beq ..pci_cfg_set /* if not set, then bypass reg write*/
#endif
ori r3,r3,CPC0_PCI_ARBIT_EN
+#else /* CFG_CPC0_PCI */
+ li r3,CFG_CPC0_PCI
+#endif /* CFG_CPC0_PCI */
..pci_cfg_set:
mtdcr CPC0_PCI, r3 /* Enable internal arbiter*/