From: Kever Yang <kever.yang@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/4] rockchip: add BOOT_LOADER support for boot mode
Date: Tue, 22 Aug 2017 15:34:59 +0800 [thread overview]
Message-ID: <1503387300-1759-3-git-send-email-kever.yang@rock-chips.com> (raw)
In-Reply-To: <1503387300-1759-1-git-send-email-kever.yang@rock-chips.com>
Rockchip using rockusb for flash emmc via USB, people
use 'reboot loader' in kernel and then want to get a rockusb
device in bootloader for firmware update.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---
Changes in v2:
- use env_set() instead of setenv()
arch/arm/mach-rockchip/rk3036-board.c | 4 ++++
arch/arm/mach-rockchip/rk322x-board.c | 4 ++++
arch/arm/mach-rockchip/rk3288-board.c | 4 ++++
3 files changed, 12 insertions(+)
diff --git a/arch/arm/mach-rockchip/rk3036-board.c b/arch/arm/mach-rockchip/rk3036-board.c
index a3457f3..1f11f8e 100644
--- a/arch/arm/mach-rockchip/rk3036-board.c
+++ b/arch/arm/mach-rockchip/rk3036-board.c
@@ -40,6 +40,10 @@ static void setup_boot_mode(void)
printf("enter UMS!\n");
env_set("preboot", "setenv preboot; ums mmc 0");
break;
+ case BOOT_LOADER:
+ printf("enter Rockusb!\n");
+ env_set("preboot", "setenv preboot; rockusb 0 mmc 0");
+ break;
}
}
diff --git a/arch/arm/mach-rockchip/rk322x-board.c b/arch/arm/mach-rockchip/rk322x-board.c
index 91e3c90..8c77977 100644
--- a/arch/arm/mach-rockchip/rk322x-board.c
+++ b/arch/arm/mach-rockchip/rk322x-board.c
@@ -36,6 +36,10 @@ static void setup_boot_mode(void)
printf("enter UMS!\n");
env_set("preboot", "setenv preboot; ums mmc 0");
break;
+ case BOOT_LOADER:
+ printf("enter Rockusb!\n");
+ env_set("preboot", "setenv preboot; rockusb 0 mmc 0");
+ break;
}
}
diff --git a/arch/arm/mach-rockchip/rk3288-board.c b/arch/arm/mach-rockchip/rk3288-board.c
index 74c6cc1..a08658a 100644
--- a/arch/arm/mach-rockchip/rk3288-board.c
+++ b/arch/arm/mach-rockchip/rk3288-board.c
@@ -44,6 +44,10 @@ static void setup_boot_mode(void)
env_set("preboot", "setenv preboot; if mmc dev 0;"
"then ums mmc 0; else ums mmc 1;fi");
break;
+ case BOOT_LOADER:
+ printf("enter Rockusb!\n");
+ env_set("preboot", "setenv preboot; rockusb 0 mmc 0");
+ break;
}
}
--
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 ` [U-Boot] [PATCH v2 2/4] rockchip: rk322x: update the sysreg number for boot mode Kever Yang
2017-09-12 19:55 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
2017-09-29 16:44 ` Philipp Tomsich
2017-08-22 7:34 ` Kever Yang [this message]
2017-09-12 16:17 ` [U-Boot] [U-Boot, v2, 3/4] rockchip: add BOOT_LOADER support " 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-3-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