1 From 0c0bc1969d89e9b8425641436db706cfac57cf45 Mon Sep 17 00:00:00 2001
2 From: Vincent Chen <vincent.chen@sifive.com>
3 Date: Fri, 26 Mar 2021 14:07:58 +0800
4 Subject: [PATCH 12/16] board: sifive: Set LED's color to blue before jumping
7 The LED's color wil be changed from purple to blue before executing
8 the sysboot command. Because the sysboot command includes the image loading
9 from the boot partition, It means the LED's color is blue when executing
10 "Retrieving file: /Image.gz".
12 include/configs/sifive-unmatched.h | 7 ++++++-
13 1 file changed, 6 insertions(+), 1 deletion(-)
15 diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h
16 index 9e1859c..fd93e89 100644
17 --- a/include/configs/sifive-unmatched.h
18 +++ b/include/configs/sifive-unmatched.h
20 "type_guid_gpt_loader2=" TYPE_GUID_LOADER2 "\0" \
21 "type_guid_gpt_system=" TYPE_GUID_SYSTEM "\0" \
22 "partitions=" PARTS_DEFAULT "\0" \
24 + "setled_blue=mw.l 0x10020024 0x0000ffff; mw.l 0x10020028 0x0000ffff; mw.l 0x1002002c 0x0\0" \
27 + "run setled_blue; " \
28 + "sysboot ${devtype} ${devnum}:${distro_bootpart} any " \
29 + "${scriptaddr} ${prefix}${boot_syslinux_conf};\0"
31 #define CONFIG_PREBOOT \
32 "setenv fdt_addr ${fdtcontroladdr};" \