environment: Support env from file in a file-system via device tree
Current barebox,environment node only allows specifying a raw device or
partition to load an environment from.  Some boards, like OMAP and
SoCFPGA, instead want to use a file located in a FAT filesystem.
Extend the device tree bindings with a new property 'file-path' that
will trigger this behavior.

This allows any board using this driver to get the env from a file or
from a raw device, instead of each machine type being either raw
device only or file only.

Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ab96ba2 commit 3a0e9b49e7f167e1bec2257b44e4f0ca91497cc6
@Trent Piepho Trent Piepho authored on 16 Dec 2015
Sascha Hauer committed on 8 Jan 2016
Showing 3 changed files
View
Documentation/devicetree/bindings/barebox/barebox,environment.rst
View
drivers/of/Kconfig
View
drivers/of/barebox.c