socfpga: Find partition with environment via device tree
socfpga would load the environment from a file named "barebox.env"
located on the device "/dev/mmc0.1".  Both those names are hard-coded
in the socfpga code and can't be changed.

Barebox supports selecting the location of the environment using a
"barebox,environment" node in device tree's "chosen" node.  And
recently supports specifying that the env should come from a file on
this device.

Change socfpga to use this mechanism by adding the appropriate device
node.

Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3a0e9b4 commit 76b059f311a3e79afea055618f692591c618e6d6
@Trent Piepho Trent Piepho authored on 16 Dec 2015
Sascha Hauer committed on 8 Jan 2016
Showing 3 changed files
View
arch/arm/configs/socfpga_defconfig
View
arch/arm/dts/socfpga.dtsi
View
arch/arm/mach-socfpga/generic.c