All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Jin <lucasjin@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] a problem about PCI initialization
Date: Wed, 3 Oct 2007 23:06:11 +0800	[thread overview]
Message-ID: <200710032306005002310@gmail.com> (raw)

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

                 reply	other threads:[~2007-10-03 15:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200710032306005002310@gmail.com \
    --to=lucasjin@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.