From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 03/14] ARM: tqma53: Add barebox_update support
Date: Wed, 7 May 2014 10:04:33 +0200 [thread overview]
Message-ID: <1399449884-19089-3-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1399449884-19089-1-git-send-email-s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/boards/tqma53/board.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boards/tqma53/board.c b/arch/arm/boards/tqma53/board.c
index 958e5ad..8f8a6a4 100644
--- a/arch/arm/boards/tqma53/board.c
+++ b/arch/arm/boards/tqma53/board.c
@@ -20,10 +20,12 @@
#include <asm/armlinux.h>
#include <generated/mach-types.h>
+#include <mach/bbu.h>
static int tqma53_devices_init(void)
{
- char *of_env_path = "/chosen/environment-emmc";
+ char *of_env_path;
+ unsigned bbu_flag_emmc = 0, bbu_flag_sd = 0;
if (!of_machine_is_compatible("tq,tqma53"))
return 0;
@@ -32,8 +34,16 @@ static int tqma53_devices_init(void)
barebox_set_hostname("tqma53");
if (bootsource_get() == BOOTSOURCE_MMC &&
- bootsource_get_instance() == 1)
+ bootsource_get_instance() == 1) {
of_env_path = "/chosen/environment-sd";
+ bbu_flag_sd = BBU_HANDLER_FLAG_DEFAULT;
+ } else {
+ of_env_path = "/chosen/environment-emmc";
+ bbu_flag_emmc = BBU_HANDLER_FLAG_DEFAULT;
+ }
+
+ imx53_bbu_internal_mmc_register_handler("sd", "/dev/mmc1", bbu_flag_sd);
+ imx53_bbu_internal_mmc_register_handler("emmc", "/dev/mmc2", bbu_flag_emmc);
of_device_enable_path(of_env_path);
--
2.0.0.rc0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-05-07 8:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 8:04 [PATCH 01/14] pinctrl: i.MX iomux-v3: Print more context in error message Sascha Hauer
2014-05-07 8:04 ` [PATCH 02/14] ARM: i.MX: bbu: remove dcd arguments from bbu registration Sascha Hauer
2014-05-07 8:04 ` Sascha Hauer [this message]
2014-05-07 8:04 ` [PATCH 04/14] ARM: i.MX53: Use clock number defines from dt-bindings Sascha Hauer
2014-05-07 8:04 ` [PATCH 05/14] ARM: tqma53: Add phy_type property to usb ports Sascha Hauer
2014-05-07 8:04 ` [PATCH 06/14] ARM: i.MX53: Add pwm support Sascha Hauer
2014-05-07 8:04 ` [PATCH 07/14] ARM: i.MX53 tqma53: Set model from devicetree Sascha Hauer
2014-05-07 8:04 ` [PATCH 08/14] ARM: i.MX: implement pllv2 set/round_rate support Sascha Hauer
2014-05-07 8:04 ` [PATCH 09/14] video: i.MX IPUv3: remove debug leftover Sascha Hauer
2014-05-07 8:04 ` [PATCH 10/14] video: i.MX IPUv3: Print error as string Sascha Hauer
2014-05-07 8:04 ` [PATCH 11/14] video: i.MX IPUv3: Implement i.MX5 IPU reset support Sascha Hauer
2014-05-07 8:04 ` [PATCH 12/14] video: i.MX IPUv3 ldb: implement i.MX53 support Sascha Hauer
2014-05-07 8:04 ` [PATCH 13/14] ARM: i.MX5: Add IPU clocks Sascha Hauer
2014-05-07 8:04 ` [PATCH 14/14] ARM: dts: i.MX53: Add ipu alias 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=1399449884-19089-3-git-send-email-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