[U-Boot] [PATCH V2 5/6] omap3_beagle: support findfdt and loadfdt for devicetree support

Nishanth Menon nm at ti.com
Fri Jul 12 00:37:16 CEST 2013


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 <nm at ti.com>
> ---
>   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


More information about the U-Boot mailing list