From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Thu, 27 May 2010 16:28:54 -0500 Subject: [U-Boot] [PATCH] 85xx/p2020ds: Use is_serdes_configured() to determine of PCIe enabled In-Reply-To: References: <1274433478-31849-1-git-send-email-galak@kernel.crashing.org> <1274433478-31849-2-git-send-email-galak@kernel.crashing.org> <20100527070846.85882EAC238@gemini.denx.de> <5F58DE0B-6EF8-4ED6-A1A8-C0E37C8539BE@kernel.crashing.org> <20100527112016.24164EAC238@gemini.denx.de> <7D2BA6A1-2EEF-4BF5-8B76-07AD55537BEE@kernel.crashing.org> <20100527193817.GB5915@schlenkerla.am.freescale.net> Message-ID: <4BFEE416.2090308@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Kumar Gala wrote: > We can do something like: > > for (hose = hose_head; hose; hose = hose->next) { > off = fdt_node_offset_by_compatible(blob, -1, pci_compat); > while (off != -FDT_ERR_NOTFOUND) { > const int reg * = fdt_getprop(blob, off, "reg", NULL); > > match hose->cfg_addr against reg > > off = fdt_node_offset_by_compatible(blob, off, pci_compat); > } > } Ok, I'll start working on this after I'm done with the P1022DS. -- Timur Tabi Linux kernel developer at Freescale