From e8bf2c004fafe40e23b8b3e89b79d4cf7cc97b81 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Fri, 2 Jun 2023 17:27:13 +0900 Subject: [PATCH] samsung: Add tizen_visionfive2 header Add tizen_visionfive2 header file to use tizen speicific environments. Change-Id: Ideb153007d7351ecc5e4ddffade424f1d2f253db Signed-off-by: Jaehoon Chung --- include/samsung/tizen_visionfive2.h | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 include/samsung/tizen_visionfive2.h diff --git a/include/samsung/tizen_visionfive2.h b/include/samsung/tizen_visionfive2.h new file mode 100644 index 0000000..1541b56 --- /dev/null +++ b/include/samsung/tizen_visionfive2.h @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2023 Samsung Electronics + * + * Configuration settings for the Tizen Amlogic board. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __CONFIG_TIZEN_VISIONFIVE2_H +#define __CONFIG_TIZEN_VISIONFIVE2_H + +#define CLEAR_REBOOT_PARAM \ + "mw.l ${rebootparam_addr} ${normal_val} ; " \ + "ext4write mmc ${mmcbootdev}:${mmcinformpart} ${rebootparam_addr} /${rebootparamfile} 8; " + +/* SD/MMC configuration */ +#define CONFIG_MMC_DEFAULT_DEV 1 + +#define KERNEL_NAME "Image" + +#define TIZEN_ENV_SETTING \ + "kernel=" KERNEL_NAME "\0" \ + "mmcbootdev=1\0" \ + "mmcbootpart=3\0" \ + "mmcrootdev=1\0" \ + "mmcrootpart=5\0" \ + "mmcinformpart=0xb\0" \ + "rebootparamfile=reboot-param.bin\0" \ + "slotfile=partition-ab.info\0" \ + "slot_addr=0x82200000\0" \ + "rebootparam_addr=0x82100000\0" \ + "upgrade_val=72677075\0" \ + "recovery_val=72766372\0" \ + "nodef_val=6665646e\0" \ + "normal_val=6d726f6e\0" \ + "download_val=6c6e7764\0" \ + "ramdiskpart=9\0" \ + "part=9\0" \ + "bootmode=ramdisk\0" \ + "bootdev=mmc\0" \ + "tfm=setenv bootmode download; run bootcmd\0" \ + "tizen_bootarg= \0" \ + "opts=loglevel=4\0" \ + "reboot_param_clear=" CLEAR_REBOOT_PARAM "\0" \ + "" + +#endif /* __CONFIG_TIZEN_VISIONFIVE2_H */ -- 2.7.4