* [U-Boot-Users] a problem about PCI initialization
@ 2007-10-03 15:06 Lucas Jin
0 siblings, 0 replies; only message in thread
From: Lucas Jin @ 2007-10-03 15:06 UTC (permalink / raw)
To: u-boot
Hi
I am debugging a board based on Sandpoint8245.
sandpoint8245.h has these defination:
(
#define PCI_ENET0_IOADDR 0x80000000
#define PCI_ENET0_MEMADDR 0x80000000
#define PCI_ENET1_IOADDR 0x81000000
#define PCI_ENET1_MEMADDR 0x81000000
#define PCI_ENET2_IOADDR 0x00000000
#define PCI_ENET2_MEMADDR 0x82000000
)
sandpoint.c has this defination:
static struct pci_config_table pci_sandpoint_config_table[] = {
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0x0f, PCI_ANY_ID,
pci_cfgfunc_config_device, { PCI_ENET0_IOADDR,
PCI_ENET0_MEMADDR,
PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER }},
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0x10, PCI_ANY_ID,
pci_cfgfunc_config_device, { PCI_ENET1_IOADDR,
PCI_ENET1_MEMADDR,
PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER }},
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0x18, PCI_ANY_ID,
pci_cfgfunc_config_device, { PCI_ENET2_IOADDR,
PCI_ENET2_MEMADDR,
PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER }},
{ }
};
After calling pci_init() I output a value to address 0x80000000 and then CPU goes wront. I am so confused.
If any of you can give me some hint, I will appreciate that very much!
Best Wishes
Jinlu
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-03 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-03 15:06 [U-Boot-Users] a problem about PCI initialization Lucas Jin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.