diff options
Diffstat (limited to 'cpu/ppc4xx/4xx_pci.c')
| -rw-r--r-- | cpu/ppc4xx/4xx_pci.c | 48 | 
1 files changed, 24 insertions, 24 deletions
| diff --git a/cpu/ppc4xx/4xx_pci.c b/cpu/ppc4xx/4xx_pci.c index e97f32c7b..fa521f041 100644 --- a/cpu/ppc4xx/4xx_pci.c +++ b/cpu/ppc4xx/4xx_pci.c @@ -518,7 +518,7 @@ int pci_440_init (struct pci_controller *hose)  	/* PCI I/O space */  	pci_set_region(hose->regions + reg_num++,  		       0x00000000, -		       PCIX0_IOBASE, +		       PCIL0_IOBASE,  		       0x10000,  		       PCI_REGION_IO); @@ -545,7 +545,7 @@ int pci_440_init (struct pci_controller *hose)  	hose->region_count = reg_num; -	pci_setup_indirect(hose, PCIX0_CFGADR, PCIX0_CFGDATA); +	pci_setup_indirect(hose, PCIL0_CFGADR, PCIL0_CFGDATA);  	/* Let board change/modify hose & do initial checks */  	if (pci_pre_init (hose) == 0) { @@ -562,18 +562,18 @@ int pci_440_init (struct pci_controller *hose)  #if defined(CONFIG_SYS_PCI_TARGET_INIT)  	pci_target_init(hose);                /* Let board setup pci target */  #else -	out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID ); -	out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_ID ); -	out16r( PCIX0_CLS, 0x00060000 ); /* Bridge, host bridge */ +	out16r( PCIL0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID ); +	out16r( PCIL0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_ID ); +	out16r( PCIL0_CLS, 0x00060000 ); /* Bridge, host bridge */  #endif  #if defined(CONFIG_440GX) || defined(CONFIG_440SPE) || \      defined(CONFIG_460EX) || defined(CONFIG_460GT) -	out32r( PCIX0_BRDGOPT1, 0x04000060 );               /* PLB Rq pri highest   */ -	out32r( PCIX0_BRDGOPT2, in32(PCIX0_BRDGOPT2) | 0x83 ); /* Enable host config, clear Timeout, ensure int src1  */ -#elif defined(PCIX0_BRDGOPT1) -	out32r( PCIX0_BRDGOPT1, 0x10000060 );               /* PLB Rq pri highest   */ -	out32r( PCIX0_BRDGOPT2, in32(PCIX0_BRDGOPT2) | 1 ); /* Enable host config   */ +	out32r( PCIL0_BRDGOPT1, 0x04000060 );               /* PLB Rq pri highest   */ +	out32r( PCIL0_BRDGOPT2, in32(PCIL0_BRDGOPT2) | 0x83 ); /* Enable host config, clear Timeout, ensure int src1  */ +#elif defined(PCIL0_BRDGOPT1) +	out32r( PCIL0_BRDGOPT1, 0x10000060 );               /* PLB Rq pri highest   */ +	out32r( PCIL0_BRDGOPT2, in32(PCIL0_BRDGOPT2) | 1 ); /* Enable host config   */  #endif  	/*--------------------------------------------------------------------------+ @@ -583,23 +583,23 @@ int pci_440_init (struct pci_controller *hose)  #if defined(CONFIG_SYS_PCI_MASTER_INIT)  	pci_master_init(hose);          /* Let board setup pci master */  #else -	out32r( PCIX0_POM0SA, 0 ); /* disable */ -	out32r( PCIX0_POM1SA, 0 ); /* disable */ -	out32r( PCIX0_POM2SA, 0 ); /* disable */ +	out32r( PCIL0_POM0SA, 0 ); /* disable */ +	out32r( PCIL0_POM1SA, 0 ); /* disable */ +	out32r( PCIL0_POM2SA, 0 ); /* disable */  #if defined(CONFIG_440SPE) -	out32r( PCIX0_POM0LAL, 0x10000000 ); -	out32r( PCIX0_POM0LAH, 0x0000000c ); +	out32r( PCIL0_POM0LAL, 0x10000000 ); +	out32r( PCIL0_POM0LAH, 0x0000000c );  #elif defined(CONFIG_460EX) || defined(CONFIG_460GT) -	out32r( PCIX0_POM0LAL, 0x20000000 ); -	out32r( PCIX0_POM0LAH, 0x0000000c ); +	out32r( PCIL0_POM0LAL, 0x20000000 ); +	out32r( PCIL0_POM0LAH, 0x0000000c );  #else -	out32r( PCIX0_POM0LAL, 0x00000000 ); -	out32r( PCIX0_POM0LAH, 0x00000003 ); +	out32r( PCIL0_POM0LAL, 0x00000000 ); +	out32r( PCIL0_POM0LAH, 0x00000003 );  #endif -	out32r( PCIX0_POM0PCIAL, CONFIG_SYS_PCI_MEMBASE ); -	out32r( PCIX0_POM0PCIAH, 0x00000000 ); -	out32r( PCIX0_POM0SA, 0xf0000001 ); /* 256MB, enabled */ -	out32r( PCIX0_STS, in32r( PCIX0_STS ) & ~0x0000fff8 ); +	out32r( PCIL0_POM0PCIAL, CONFIG_SYS_PCI_MEMBASE ); +	out32r( PCIL0_POM0PCIAH, 0x00000000 ); +	out32r( PCIL0_POM0SA, 0xf0000001 ); /* 256MB, enabled */ +	out32r( PCIL0_STS, in32r( PCIL0_STS ) & ~0x0000fff8 );  #endif  	/*--------------------------------------------------------------------------+ @@ -614,7 +614,7 @@ int pci_440_init (struct pci_controller *hose)  #endif  #if !defined(CONFIG_440EP) && !defined(CONFIG_440GR) && \      !defined(CONFIG_440EPX) && !defined(CONFIG_440GRX) -		out16r( PCIX0_CMD, in16r( PCIX0_CMD ) | PCI_COMMAND_MASTER); +		out16r( PCIL0_CMD, in16r( PCIL0_CMD ) | PCI_COMMAND_MASTER);  #endif  		hose->last_busno = pci_hose_scan(hose);  	} |