public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Problem with transparent PCI-PCI bridge on Canyonlands
@ 2009-12-24 12:08 java33 at inwind.it
  2009-12-24 14:34 ` Felix Radensky
  0 siblings, 1 reply; 14+ messages in thread
From: java33 at inwind.it @ 2009-12-24 12:08 UTC (permalink / raw)
  To: u-boot

Hello,

I've encountered the same problem and found a solution.
In 
drivers/pci/pci_indirect.c, add the following code block at line 79:

#elif 
defined(CONFIG_460EX)
#define INDIRECT_PCI_OP(rw, size, type, op, mask)			 \

static int								 \
indirect_##rw##_config_##size(struct pci_controller *hose,	
	 \
			      pci_dev_t dev, int offset, type val)	 \
{									 \
	u32 b, d,f;		
					 \
	b = PCI_BUS(dev); d = PCI_DEV(dev); f = PCI_FUNC(dev);		 \
	b = b - 
hose->first_busno;					 \
	dev = PCI_BDF(b, d, f);						 \
	if (PCI_BUS(dev) > 
0)                                            \
		out_le32(hose->cfg_addr, dev 
| (offset & 0xfc) | 0x00000001); \
	
else                                                             \
		out_le32
(hose->cfg_addr, dev | (offset & 0xfc) | 0x00000000); \
	cfg_##rw(val, hose-
>cfg_data + (offset & mask), type, op);	 \
	return 0;							 \
}
#else

Hope 
this helps

Ciao

Max Tretene, ACube Systems Srl

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [U-Boot] Problem with transparent PCI-PCI bridge on Canyonlands
@ 2009-12-09 18:02 Felix Radensky
  2009-12-09 20:49 ` Wolfgang Denk
  2009-12-09 23:16 ` Feng Kan
  0 siblings, 2 replies; 14+ messages in thread
From: Felix Radensky @ 2009-12-09 18:02 UTC (permalink / raw)
  To: u-boot

Hi,

I'm running latest u-boot on 1GHz Canyonlands board and have trouble
using 64-bit transparent PCI-PCI PLX 6254 bridge. With PLX evaluation
board plugged into Canyonlands PCI slot u-boot hangs. With PCI support
disabled u-boot works fine. The PLX board is OK, it was recognized by
both u-boot and kernel on Freescale MPC8536DS board. On Canyonlands
linux-2.6.32 silently resets the board when PLX is plugged in. Any ideas
what could be wrong in u-boot ? I'll post a separate question to 
linuxppc-dev.

U-Boot 2009.11-rc2-00002-g386118a (Dec 09 2009 - 18:48:44)

CPU:   AMCC PowerPC 460EX Rev. A at 1000 MHz (PLB=200 OPB=100 EBC=100)
       Security/Kasumi support
       Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
       Internal PCI arbiter enabled
       32 kB I-Cache 32 kB D-Cache
Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 14
I2C:   ready
DRAM:  512 MB (ECC not enabled, 400 MHz, CL3)
FLASH: 64 MB
NAND:  256 MiB
PCI:   Bus Dev VenId DevId Class Int


Thanks a lot.

Felix.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-01-13 11:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-24 12:08 [U-Boot] Problem with transparent PCI-PCI bridge on Canyonlands java33 at inwind.it
2009-12-24 14:34 ` Felix Radensky
2010-01-13 11:12   ` Felix Radensky
  -- strict thread matches above, loose matches on Subject: below --
2009-12-09 18:02 Felix Radensky
2009-12-09 20:49 ` Wolfgang Denk
2009-12-09 22:10   ` Felix Radensky
2009-12-09 22:21     ` Felix Radensky
2009-12-09 23:01       ` Wolfgang Denk
2009-12-09 23:15         ` Felix Radensky
2009-12-09 23:16 ` Feng Kan
2009-12-10 22:01   ` Felix Radensky
2009-12-15  7:30     ` Felix Radensky
2009-12-15  9:10       ` Stefan Roese
2009-12-15 12:42         ` Felix Radensky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox