Remove upstreamed patches: 010-menu-fix-the-logic-checking-whether-ESC-key-is-press.patch [1] 011-menu-add-support-to-check-if-menu-needs-to-be-reprin.patch [2] 012-bootmenu-add-reprint-check.patch [3] Remove outdated patches: 455-arm-provide-noncached_set_region-prototype-to-fix-build.patch Some patches have been manually rebased to match the upstream changes. This patch also fixes the dtc warning for reserved-memory dts node. If #address-cells and #size-cells are not same as the root node definitions, the dtc will complain about it. All defconfigs are refreshed by `make "$board"_defconfig` and `make savedefconfig`. [1]ddac69885e
[2]ccdd7948e2
[3]599652cff1
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
50 lines
1.4 KiB
Diff
50 lines
1.4 KiB
Diff
From e60939acbebd07161f3978d1c6f13123fdd2ebf2 Mon Sep 17 00:00:00 2001
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
Date: Mon, 25 Jul 2022 11:27:02 +0800
|
|
Subject: [PATCH 50/71] cmd: sf: add support to read flash unique ID
|
|
|
|
This patch adds support to display unique ID from spi-nor flashes
|
|
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
---
|
|
cmd/sf.c | 13 ++++++++++++-
|
|
1 file changed, 12 insertions(+), 1 deletion(-)
|
|
|
|
--- a/cmd/sf.c
|
|
+++ b/cmd/sf.c
|
|
@@ -421,6 +421,14 @@ static int do_spi_protect(int argc, char
|
|
return ret == 0 ? 0 : 1;
|
|
}
|
|
|
|
+static int do_spi_flash_read_uuid(void)
|
|
+{
|
|
+ int ret = 0;
|
|
+ ret = flash->read_uuid(flash);
|
|
+
|
|
+ return ret == 0 ? 0 : 1;
|
|
+}
|
|
+
|
|
enum {
|
|
STAGE_ERASE,
|
|
STAGE_CHECK,
|
|
@@ -615,6 +623,8 @@ static int do_spi_flash(struct cmd_tbl *
|
|
ret = do_spi_flash_erase(argc, argv);
|
|
else if (IS_ENABLED(CONFIG_SPI_FLASH_LOCK) && strcmp(cmd, "protect") == 0)
|
|
ret = do_spi_protect(argc, argv);
|
|
+ else if (strcmp(cmd, "uuid") == 0)
|
|
+ ret = do_spi_flash_read_uuid();
|
|
else if (IS_ENABLED(CONFIG_CMD_SF_TEST) && !strcmp(cmd, "test"))
|
|
ret = do_spi_flash_test(argc, argv);
|
|
else
|
|
@@ -643,8 +653,9 @@ U_BOOT_LONGHELP(sf,
|
|
" at address 'sector'"
|
|
#endif
|
|
#ifdef CONFIG_CMD_SF_TEST
|
|
- "\nsf test offset len - run a very basic destructive test"
|
|
+ "\nsf test offset len - run a very basic destructive test"
|
|
#endif
|
|
+ "\nsf uuid - read uuid from flash"
|
|
);
|
|
|
|
U_BOOT_CMD(
|