[PATCH] socfpga: Allow setting partition xloader boots from for mmc

Sascha Hauer s.hauer at pengutronix.de
Mon Dec 14 02:33:31 PST 2015


On Thu, Dec 10, 2015 at 09:51:39PM +0000, Trent Piepho wrote:
> The xloader boots the 2nd stage barebox from socfpga_barebox_part when
> using NOR.  But when using MMC it boots from a hardcoded "disk0.1".
> Add the mmc device name to the partition description and use it for
> mmc booting.
> 
> Add an extern declaration of socfpga_barebox_part to the socfpga
> header so that a board can change it to use a different partition.
> 
> Initialize socfpga_barebox_part to the default value instead of NULL to
> avoid the NULL check later.
> 
> Signed-off-by: Trent Piepho <tpiepho at kymetacorp.com>
> ---
>  arch/arm/mach-socfpga/include/mach/generic.h | 4 ++++
>  arch/arm/mach-socfpga/xload.c                | 8 +++-----
>  2 files changed, 7 insertions(+), 5 deletions(-)

I read this patch again and now I understood it correctly. Looks good,
applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list