2 * Copyright (C) 2023 Samsung Electronics
4 * Configuration settings for the Tizen on VisionFive2 board and QEMU.
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef __CONFIG_TIZEN_RISCV_H
10 #define __CONFIG_TIZEN_RISCV_H
12 #ifdef CONFIG_TARGET_STARFIVE_VISIONFIVE2
13 #define TIZEN_TARGET_ENV_SETTING \
17 #elif defined(CONFIG_TARGET_QEMU_VIRT)
18 #define TIZEN_TARGET_ENV_SETTING \
20 "bootdevtype=virtio\0" \
22 #else /* CONFIG_TARGET_* */
23 #define TIZEN_TARGET_ENV_SETTING ""
24 #endif /* CONFIG_TARGET_* */
26 #define CLEAR_REBOOT_PARAM \
27 "mw.l ${rebootparam_addr} ${normal_val} ; " \
28 "ext4write ${bootdevtype} ${bootdevnum}:${informpart} ${rebootparam_addr} /${rebootparamfile} 8; "
30 /* SD/MMC configuration */
31 #define CONFIG_MMC_DEFAULT_DEV 1
33 #define KERNEL_NAME "Image"
35 #define TIZEN_ENV_SETTING \
36 TIZEN_TARGET_ENV_SETTING \
37 "kernel=" KERNEL_NAME "\0" \
41 "rebootparamfile=reboot-param.bin\0" \
42 "slotfile=partition-ab.info\0" \
43 "slot_addr=0x82200000\0" \
44 "rebootparam_addr=0x82100000\0" \
45 "upgrade_val=72677075\0" \
46 "recovery_val=72766372\0" \
47 "nodef_val=6665646e\0" \
48 "normal_val=6d726f6e\0" \
49 "download_val=6c6e7764\0" \
52 "bootmode=ramdisk\0" \
53 "tfm=setenv bootmode download; run bootcmd\0" \
56 "reboot_param_clear=" CLEAR_REBOOT_PARAM "\0" \
59 #endif /* __CONFIG_TIZEN_RISCV_H */