mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 2/6] ARM Layerscape: ls1046ardb: Add barebox update handler
Date: Wed, 27 Nov 2019 12:23:33 +0100	[thread overview]
Message-ID: <20191127112337.18719-3-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20191127112337.18719-1-s.hauer@pengutronix.de>

Add a barebox update handler for easy barebox update.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/boards/ls1046ardb/board.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boards/ls1046ardb/board.c b/arch/arm/boards/ls1046ardb/board.c
index 0846df9fad..606f65ce9d 100644
--- a/arch/arm/boards/ls1046ardb/board.c
+++ b/arch/arm/boards/ls1046ardb/board.c
@@ -2,6 +2,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <bbu.h>
 #include <envfs.h>
 #include <asm/memory.h>
 #include <linux/sizes.h>
@@ -9,6 +10,7 @@
 #include <linux/clkdev.h>
 #include <asm/system.h>
 #include <mach/layerscape.h>
+#include <mach/bbu.h>
 
 static int rdb_mem_init(void)
 {
@@ -35,6 +37,9 @@ static int rdb_postcore_init(void)
 
 	defaultenv_append_directory(defaultenv_ls1046ardb);
 
+	ls1046a_bbu_mmc_register_handler("sd", "/dev/mmc0.barebox",
+					 BBU_HANDLER_FLAG_DEFAULT);
+
 	return 0;
 }
 
-- 
2.24.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2019-11-27 11:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-27 11:23 [PATCH 0/6] Layerscape ls1046ardb update Sascha Hauer
2019-11-27 11:23 ` [PATCH 1/6] ARM Layerscape: ls1046ardb: Fix SD partitions Sascha Hauer
2019-11-27 11:23 ` Sascha Hauer [this message]
2019-11-27 11:23 ` [PATCH 3/6] ARM Layerscape: ls1046ardb: Fix SPI NOR flash compatibles Sascha Hauer
2019-11-27 11:23 ` [PATCH 4/6] ARM Layerscape: ls1046ardb: Enable PCIe support Sascha Hauer
2019-11-27 11:23 ` [PATCH 5/6] ARM Layerscape: ls1046ardb: Fix EEPROM nodes Sascha Hauer
2019-11-27 11:23 ` [PATCH 6/6] ARM Layerscape: ls1046ardb: read nxid eeprom Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191127112337.18719-3-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox