Skip to content
Snippets Groups Projects
Commit 1178a412 authored by Stefan Roese's avatar Stefan Roese
Browse files

Minor AMCC 4xx board cleanups

Patch by Stefan Roese, 27 Nov 2005
parent 3d9569b2
No related branches found
No related tags found
No related merge requests found
...@@ -493,20 +493,8 @@ int testdram(void) ...@@ -493,20 +493,8 @@ int testdram(void)
#if defined(CONFIG_PCI) && defined(CFG_PCI_PRE_INIT) #if defined(CONFIG_PCI) && defined(CFG_PCI_PRE_INIT)
int pci_pre_init(struct pci_controller *hose) int pci_pre_init(struct pci_controller *hose)
{ {
unsigned long strap;
unsigned long addr; unsigned long addr;
/*--------------------------------------------------------------------------+
* Bamboo is always configured as the host & requires the
* PCI arbiter to be enabled.
*--------------------------------------------------------------------------*/
mfsdr(sdr_sdstp1, strap);
if ((strap & SDR0_SDSTP1_PAE_MASK) == 0) {
printf("PCI: SDR0_STRP1[PAE] not set.\n");
printf("PCI: Configuration aborted.\n");
return 0;
}
/*-------------------------------------------------------------------------+ /*-------------------------------------------------------------------------+
| Set priority for all PLB3 devices to 0. | Set priority for all PLB3 devices to 0.
| Set PLB3 arbiter to fair mode. | Set PLB3 arbiter to fair mode.
......
...@@ -315,20 +315,8 @@ int testdram(void) ...@@ -315,20 +315,8 @@ int testdram(void)
#if defined(CONFIG_PCI) && defined(CFG_PCI_PRE_INIT) #if defined(CONFIG_PCI) && defined(CFG_PCI_PRE_INIT)
int pci_pre_init(struct pci_controller *hose) int pci_pre_init(struct pci_controller *hose)
{ {
unsigned long strap;
unsigned long addr; unsigned long addr;
/*--------------------------------------------------------------------------+
* Bamboo is always configured as the host & requires the
* PCI arbiter to be enabled.
*--------------------------------------------------------------------------*/
mfsdr(sdr_sdstp1, strap);
if ((strap & SDR0_SDSTP1_PAE_MASK) == 0) {
printf("PCI: SDR0_STRP1[PAE] not set.\n");
printf("PCI: Configuration aborted.\n");
return 0;
}
/*-------------------------------------------------------------------------+ /*-------------------------------------------------------------------------+
| Set priority for all PLB3 devices to 0. | Set priority for all PLB3 devices to 0.
| Set PLB3 arbiter to fair mode. | Set PLB3 arbiter to fair mode.
......
...@@ -311,20 +311,8 @@ int testdram(void) ...@@ -311,20 +311,8 @@ int testdram(void)
#if defined(CONFIG_PCI) && defined(CFG_PCI_PRE_INIT) #if defined(CONFIG_PCI) && defined(CFG_PCI_PRE_INIT)
int pci_pre_init(struct pci_controller *hose) int pci_pre_init(struct pci_controller *hose)
{ {
unsigned long strap;
unsigned long addr; unsigned long addr;
/*--------------------------------------------------------------------------+
* Bamboo is always configured as the host & requires the
* PCI arbiter to be enabled.
*--------------------------------------------------------------------------*/
mfsdr(sdr_sdstp1, strap);
if ((strap & SDR0_SDSTP1_PAE_MASK) == 0) {
printf("PCI: SDR0_STRP1[PAE] not set.\n");
printf("PCI: Configuration aborted.\n");
return 0;
}
/*-------------------------------------------------------------------------+ /*-------------------------------------------------------------------------+
| Set priority for all PLB3 devices to 0. | Set priority for all PLB3 devices to 0.
| Set PLB3 arbiter to fair mode. | Set PLB3 arbiter to fair mode.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment