From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.x-arc.de ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WlDLy-0005Kk-HG for barebox@lists.infradead.org; Fri, 16 May 2014 08:18:55 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id E413FBF0E9 for ; Fri, 16 May 2014 10:18:33 +0200 (CEST) From: Wadim Egorov Date: Fri, 16 May 2014 10:18:30 +0200 Message-Id: <1400228310-10292-2-git-send-email-w.egorov@phytec.de> In-Reply-To: <1400228310-10292-1-git-send-email-w.egorov@phytec.de> References: <1400228310-10292-1-git-send-email-w.egorov@phytec.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v3 4/4] phycore-am335x: Added bbu nand xloadslots handler To: barebox@lists.infradead.org Added bbu nand xloadslots handler to phycore-am335x. Signed-off-by: Wadim Egorov --- v3: - xloadslots array is now static - renamed handler: xloadslots -> MLO.nand --- arch/arm/boards/phytec-phycore-am335x/board.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/phytec-phycore-am335x/board.c b/arch/arm/boards/phytec-phycore-am335x/board.c index 59de42b..d8bf9d3 100644 --- a/arch/arm/boards/phytec-phycore-am335x/board.c +++ b/arch/arm/boards/phytec-phycore-am335x/board.c @@ -48,6 +48,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")) @@ -69,6 +76,8 @@ static int pcm051_devices_init(void) armlinux_set_architecture(MACH_TYPE_PCM051); 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; } -- 1.7.0.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox