From: mingming lee <mingming.lee@mediatek.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 3/6] configs: mt8518: set global variables for fastboot
Date: Thu, 16 Jan 2020 16:11:39 +0800 [thread overview]
Message-ID: <20200116081142.4849-4-mingming.lee@mediatek.com> (raw)
In-Reply-To: <20200116081142.4849-1-mingming.lee@mediatek.com>
set common fastboot variables for mt8518
Signed-off-by: mingming lee <mingming.lee@mediatek.com>
---
include/configs/mt8518.h | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/include/configs/mt8518.h b/include/configs/mt8518.h
index 8906245a62..9bc9c04e66 100644
--- a/include/configs/mt8518.h
+++ b/include/configs/mt8518.h
@@ -11,9 +11,6 @@
#include <linux/sizes.h>
-#define CONFIG_ENV_SIZE SZ_4K
-
-/* Machine ID */
#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M
#define CONFIG_CPU_ARMV8
@@ -39,7 +36,7 @@
/* ENV Setting */
#if defined(CONFIG_MMC_MTK)
#define CONFIG_SYS_MMC_ENV_DEV 0
-#define CONFIG_ENV_OFFSET 0x4E60000
+
#define CONFIG_ENV_OVERWRITE
/* MMC offset in block unit,and block size is 0x200 */
@@ -58,10 +55,15 @@
#define ENV_BOOT_CMD \
"mtk_boot=run boot_rd_img;bootm;\0"
+#define ENV_FASTBOOT \
+ "serial#=1234567890ABCDEF\0" \
+ "board=mt8518\0"
+
#define CONFIG_EXTRA_ENV_SETTINGS \
"fdt_high=0x6c000000\0" \
ENV_DEVICE_SETTINGS \
ENV_BOOT_READ_IMAGE \
+ ENV_FASTBOOT \
ENV_BOOT_CMD \
"bootcmd=run mtk_boot;\0" \
--
2.24.1
next prev parent reply other threads:[~2020-01-16 8:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-16 8:11 [PATCH v2 0/6] Add fastboot support for MediaTek mt8518 mingming lee
2020-01-16 8:11 ` [PATCH v2 1/6] usb: musb-new: mt85xx: add musb-new gadget driver mingming lee
2020-01-25 17:08 ` Tom Rini
2020-01-16 8:11 ` [PATCH v2 2/6] ARM: Mediatek: Add board_late_init to init usb " mingming lee
2020-01-25 17:08 ` Tom Rini
2020-01-16 8:11 ` mingming lee [this message]
2020-01-25 17:08 ` [PATCH v2 3/6] configs: mt8518: set global variables for fastboot Tom Rini
2020-01-16 8:11 ` [PATCH v2 4/6] configs: mt8518: enable usb gadget driver mingming lee
2020-01-25 17:09 ` Tom Rini
2020-01-16 8:11 ` [PATCH v2 5/6] configs: mt8518: Enable fastboot related configs mingming lee
2020-01-25 17:09 ` Tom Rini
2020-01-16 8:11 ` [PATCH v2 6/6] fastboot: mt85xx: add command to flash/erase emmc hwpart mingming lee
2020-01-25 17:09 ` Tom Rini
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=20200116081142.4849-4-mingming.lee@mediatek.com \
--to=mingming.lee@mediatek.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