9
0
Fork 0

phycore-am335x: Added bbu nand xloadslots handler

Added bbu nand xloadslots handler to phycore-am335x.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Wadim Egorov 2014-05-16 10:18:30 +02:00 committed by Sascha Hauer
parent 2565cac2cf
commit c4832fcd16
1 changed files with 9 additions and 0 deletions

View File

@ -49,6 +49,13 @@ static struct omap_barebox_part pcm051_barebox_part = {
.nor_size = SZ_512K,
};
static char *xloadslots[] = {
"/dev/nand0.xload.bb",
"/dev/nand0.xload_backup1.bb",
"/dev/nand0.xload_backup2.bb",
"/dev/nand0.xload_backup3.bb"
};
static int pcm051_devices_init(void)
{
if (!of_machine_is_compatible("phytec,pcm051"))
@ -71,6 +78,8 @@ static int pcm051_devices_init(void)
defaultenv_append_directory(defaultenv_phycore_am335x);
am33xx_bbu_spi_nor_mlo_register_handler("MLO.spi", "/dev/m25p0.xload");
am33xx_bbu_nand_xloadslots_register_handler("MLO.nand",
xloadslots, ARRAY_SIZE(xloadslots));
return 0;
}