From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishanth Menon Date: Thu, 11 Jul 2013 17:37:16 -0500 Subject: [U-Boot] [PATCH V2 5/6] omap3_beagle: support findfdt and loadfdt for devicetree support In-Reply-To: <1373582005-18556-6-git-send-email-nm@ti.com> References: <1373579559-5697-4-git-send-email-nm@ti.com> <1373582005-18556-1-git-send-email-nm@ti.com> <1373582005-18556-6-git-send-email-nm@ti.com> Message-ID: <51DF339C.40800@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/11/2013 05:33 PM, Nishanth Menon wrote: > For folks not using concatenated device tree with uImage, having > an handy function to find and load device tree is very handy. > > So introduce findfdt and loadfdt and run findfdt by default to make > it easier on user scripts. > > Signed-off-by: Nishanth Menon > --- > include/configs/omap3_beagle.h | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h > index bdeee17..614ab9b 100644 > --- a/include/configs/omap3_beagle.h > +++ b/include/configs/omap3_beagle.h > @@ -210,6 +210,8 @@ > #define CONFIG_EXTRA_ENV_SETTINGS \ > "loadaddr=0x80200000\0" \ > "rdaddr=0x81000000\0" \ > + "fdt_high=0xffffffff\0" \ > + "fdtaddr=0x80f80000\0" \ > "usbtty=cdc_acm\0" \ > "bootfile=uImage\0" \ > "ramdisk=ramdisk.gz\0" \ > @@ -250,6 +252,19 @@ > "omapdss.def_disp=${defaultdisplay} " \ > "root=${nandroot} " \ > "rootfstype=${nandrootfstype}\0" \ > + "findfdt=" \ > + "if test $beaglerev = AxBx; then " \ > + "setenv fdtfile omap3-beagle.dtb; fi; " \ > + "if test $beaglerev = Cx; then " \ > + "setenv fdtfile omap3-beagle.dtb; fi; " \ > + "if test $beaglerev = xMAB; then " \ > + "setenv fdtfile omap3-beagle-xm.dtb; fi; " \ > + "if test $beaglerev = xMB; then " \ > + "setenv fdtfile omap3-beagle-xm.dtb; fi; " \ OK, this is embarrassing! I should have dropped this! Sigh.. will will wait for more comments and stop spamming list before a new rev. [...] -- Regards, Nishanth Menon