From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: barebox@lists.infradead.org
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Subject: [PATCH 2/2] ARM: i.MX: boot: Detect boot instance on i.MX51
Date: Wed, 19 Sep 2018 08:48:47 -0700 [thread overview]
Message-ID: <20180919154847.1543-2-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <20180919154847.1543-1-andrew.smirnov@gmail.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
arch/arm/mach-imx/boot.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c
index 830ea08f3..0c51767c4 100644
--- a/arch/arm/mach-imx/boot.c
+++ b/arch/arm/mach-imx/boot.c
@@ -170,6 +170,7 @@ void imx27_boot_save_loc(void)
#define IMX51_SRC_SBMR 0x4
#define IMX51_SBMR_BT_MEM_TYPE GENMASK(8, 7)
#define IMX51_SBMR_BT_MEM_CTL GENMASK(1, 0)
+#define IMX51_SBMR_BT_SRC GENMASK(20, 19)
#define IMX51_SBMR_BMOD GENMASK(15, 14)
void imx51_get_boot_source(enum bootsource *src, int *instance)
@@ -188,6 +189,7 @@ void imx51_get_boot_source(enum bootsource *src, int *instance)
type = FIELD_GET(IMX51_SBMR_BT_MEM_TYPE, reg);
*src = locations[ctrl][type];
+ *instance = FIELD_GET(IMX51_SBMR_BT_SRC, reg);
break;
case 1:
/* reserved */
--
2.17.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2018-09-19 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-19 15:48 [PATCH 1/2] ARM: i.MX: boot: Make use of FIELD_GET() in imx51_get_boot_source() Andrey Smirnov
2018-09-19 15:48 ` Andrey Smirnov [this message]
2018-09-24 6:54 ` 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=20180919154847.1543-2-andrew.smirnov@gmail.com \
--to=andrew.smirnov@gmail.com \
--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