From: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
To: barebox@lists.infradead.org, s.hauer@pengutronix.de
Subject: [PATCH v2 1/2] embedsky-e9: enable barebox_update command for booter update
Date: Wed, 4 Nov 2015 23:16:32 +0100 [thread overview]
Message-ID: <1446675393-402-2-git-send-email-anton.bondarenko.sama@gmail.com> (raw)
In-Reply-To: <1446675393-402-1-git-send-email-anton.bondarenko.sama@gmail.com>
Simplify booter update with barebox_update command using special
IMX6 MMC BBU handler.
Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
---
arch/arm/boards/embedsky-e9/board.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boards/embedsky-e9/board.c b/arch/arm/boards/embedsky-e9/board.c
index e8aac0c..23bfec1 100644
--- a/arch/arm/boards/embedsky-e9/board.c
+++ b/arch/arm/boards/embedsky-e9/board.c
@@ -41,6 +41,8 @@
#include <mach/usb.h>
#include <envfs.h>
#include <bootsource.h>
+#include <bbu.h>
+#include <mach/bbu.h>
#define PHY_ID_RTL8211E 0x001cc915
#define PHY_ID_MASK 0xffffffff
@@ -81,6 +83,12 @@ static int e9_devices_init(void)
defaultenv_append_directory(defaultenv_e9);
+ imx6_bbu_internal_mmc_register_handler("sd", "/dev/mmc1",
+ BBU_HANDLER_FLAG_DEFAULT);
+
+ imx6_bbu_internal_mmc_register_handler("emmc", "/dev/mmc3",
+ BBU_HANDLER_FLAG_DEFAULT);
+
return 0;
}
device_initcall(e9_devices_init);
--
2.6.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-11-04 22:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 22:16 [PATCH v2 0/2] Embedsky E9 changes Anton Bondarenko
2015-11-04 22:16 ` Anton Bondarenko [this message]
2015-11-04 22:16 ` [PATCH v2 2/2] images: Embedsky E9: use image name like the rest of boards Anton Bondarenko
2015-11-05 8:05 ` [PATCH v2 0/2] Embedsky E9 changes 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=1446675393-402-2-git-send-email-anton.bondarenko.sama@gmail.com \
--to=anton.bondarenko.sama@gmail.com \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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