From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Fri, 18 May 2007 09:17:28 -0500 Subject: [U-Boot-Users] idea: fdt_checkboard In-Reply-To: <464D0F0F.8070901@gmail.com> References: <464CA8ED.9080708@freescale.com> <464D0F0F.8070901@gmail.com> Message-ID: <464DB578.3080508@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 Jerry Van Baren wrote: > I would rather give hush the ability to read fdt properties so that the > logic could be scripted rather than being "hardcoded" in a C function. > This would give some interesting capabilities, like selecting the proper > fdt out of several in memory. The two really aren't mutually exclusive. Besides, fdt_checkboard() would not work in a hush script. The C function would scan the device tree *and* read data from the hardware and compare the two. For instance, if it says that there's a PCI device at address X, it should check if CFG_PCI1_MEM_PHYS is set to the same value. These are the kinds of things that can only be done in C code. -- Timur Tabi Linux Kernel Developer @ Freescale