From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johnny Hung Subject: Re: PCI device support in Open Firmware (device tree syntax) Date: Tue, 30 Jun 2009 15:33:11 +0800 Message-ID: References: <20090629165133.GC1323@b07421-ec1.am.freescale.net> <2ea1731b0906292329t30cdc9a6q1fc36dc2273a2931@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=HA196dPXTJLakbSnqJ8Yeb+Eq5kuK2L4TJteJ4LzCRE=; b=UxnQYkp9vwtXi3GhnL1vaJKizGyaKmuWUeREJ+od7y0qZbHLG82j5ZGOiJN+IaYXDI qZYnFr0bwsy8+xEgpLKueaiJEMH5vssyg36jDTClZI1duwNQPyMYtXkwL7dT47WQafuO DSuOasBFD5sY4NWwqwOorpSW/+S3DuJ6pvVfM= In-Reply-To: <2ea1731b0906292329t30cdc9a6q1fc36dc2273a2931@mail.gmail.com> Sender: linux-embedded-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Marco Stornelli , linux-embedded@vger.kernel.org, linuxppc-dev@lists.ozlabs.org 2009/6/30 Marco Stornelli : > 2009/6/30 Johnny Hung : >> Thanks for your reply. So there are no PCI device resource info in >> flat device tree. >> How do PCI device resources be assign in general case or is there any example? >> I am so confusing, would you please give me detailed describle? >> >> BRs, H. Johnny >>> > > You should look at your bootloader about the initial configuration of > the pci device, in general it should (more or less) do the work of > BIOS as you said. After that the kernel can probe them. > > Marco > You are right. u-boot do PCI device BAR resources assign and flat device tree describe PCI device interrupt-map. I use "lspci -s xxx -x" for the PCI device, the resources was assigned properly. Thanks. BRs, H. Johnny