From: Kever Yang <kever.yang@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/4] rockchip: rk322x: update the sysreg number for boot mode
Date: Tue, 22 Aug 2017 15:34:58 +0800 [thread overview]
Message-ID: <1503387300-1759-2-git-send-email-kever.yang@rock-chips.com> (raw)
In-Reply-To: <1503387300-1759-1-git-send-email-kever.yang@rock-chips.com>
The boot mode for rk322x is stored in sysreg 0, update it.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---
Changes in v2: None
arch/arm/mach-rockchip/rk322x-board.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-rockchip/rk322x-board.c b/arch/arm/mach-rockchip/rk322x-board.c
index 1e79c19..91e3c90 100644
--- a/arch/arm/mach-rockchip/rk322x-board.c
+++ b/arch/arm/mach-rockchip/rk322x-board.c
@@ -20,12 +20,12 @@ DECLARE_GLOBAL_DATA_PTR;
static void setup_boot_mode(void)
{
struct rk322x_grf *const grf = (void *)GRF_BASE;
- int boot_mode = readl(&grf->os_reg[4]);
+ int boot_mode = readl(&grf->os_reg[0]);
debug("boot mode %x.\n", boot_mode);
/* Clear boot mode */
- writel(BOOT_NORMAL, &grf->os_reg[4]);
+ writel(BOOT_NORMAL, &grf->os_reg[0]);
switch (boot_mode) {
case BOOT_FASTBOOT:
--
1.9.1
next prev parent reply other threads:[~2017-08-22 7:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-22 7:34 [U-Boot] [PATCH v2 1/4] rockchip: rk3229: move usb gadget into defconfig Kever Yang
2017-08-22 7:34 ` Kever Yang [this message]
2017-09-12 19:55 ` [U-Boot] [U-Boot, v2, 2/4] rockchip: rk322x: update the sysreg number for boot mode Philipp Tomsich
2017-09-29 16:44 ` Philipp Tomsich
2017-08-22 7:34 ` [U-Boot] [PATCH v2 3/4] rockchip: add BOOT_LOADER support " Kever Yang
2017-09-12 16:17 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
2017-08-22 7:35 ` [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs Kever Yang
2017-08-22 8:44 ` Dr. Philipp Tomsich
2017-08-22 9:36 ` Kever Yang
2017-08-22 10:05 ` Łukasz Majewski
2017-08-25 1:51 ` Andy Yan
2017-08-25 9:50 ` Dr. Philipp Tomsich
2017-08-25 11:06 ` Łukasz Majewski
2017-08-26 11:10 ` Łukasz Majewski
2017-08-26 12:46 ` Tom Rini
2017-08-26 17:28 ` Łukasz Majewski
2017-08-27 17:02 ` Tom Rini
2017-08-22 9:37 ` Kever Yang
2017-09-12 19:55 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
2017-09-12 19:55 ` [U-Boot] [U-Boot, v2, 1/4] rockchip: rk3229: move usb gadget into defconfig Philipp Tomsich
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=1503387300-1759-2-git-send-email-kever.yang@rock-chips.com \
--to=kever.yang@rock-chips.com \
--cc=u-boot@lists.denx.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