From ed111c3a9cd2f3f69704978a4e238895eb812064 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 11 May 2020 07:35:15 +0900 Subject: [PATCH] configs: tizen_amlogic: add tizen specific haeder for amlogic Add Tizen specific header for amlogic. Signed-off-by: Jaehoon Chung --- include/configs/meson64.h | 4 +++ include/samsung/tizen_amlogic.h | 64 +++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 include/samsung/tizen_amlogic.h diff --git a/include/configs/meson64.h b/include/configs/meson64.h index c895a24eca..f4bc51f695 100644 --- a/include/configs/meson64.h +++ b/include/configs/meson64.h @@ -7,6 +7,9 @@ #ifndef __MESON64_CONFIG_H #define __MESON64_CONFIG_H +/* Tizen Specific configuration for Amlogic */ +#include + /* Generic Interrupt Controller Definitions */ #if (defined(CONFIG_MESON_AXG) || defined(CONFIG_MESON_G12A)) #define GICD_BASE 0xffc01000 @@ -75,6 +78,7 @@ #ifndef CONFIG_EXTRA_ENV_SETTINGS #define CONFIG_EXTRA_ENV_SETTINGS \ + TIZEN_ENV_SETTING \ "stdin=" STDIN_CFG "\0" \ "stdout=" STDOUT_CFG "\0" \ "stderr=" STDOUT_CFG "\0" \ diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h new file mode 100644 index 0000000000..0c93362892 --- /dev/null +++ b/include/samsung/tizen_amlogic.h @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2019 Samsung Electronics + * + * Configuration settings for the Tizen Amlogic board. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __CONFIG_TIZEN_AMLOGIC_H +#define __CONFIG_TIZEN_AMLOGIC_H + + +/* ATAGs support for bootm/bootz */ +#define CONFIG_SETUP_MEMORY_TAGS +#define CONFIG_CMDLINE_TAG +#define CONFIG_INITRD_TAG + +/* DFU */ +#define CONFIG_DFU_ALT_SYSTEM \ + "Image fat 0 1;" \ + "bcm2710-rpi-3-b.dtb fat 0 1;" \ + "bcm2837-rpi-3-b.dtb fat 0 1;" \ + "bcm2710-rpi-3-b-plus.dtb fat 0 1;" \ + "bcm2711-rpi-4-b.dtb fat 0 1;" \ + "boot.scr.uimg fat 0 1;" \ + "boot.img part 0 1;" \ + "rootfs part 0 2;" \ + "system-data part 0 3;" \ + "user part 0 5;" \ + "module part 0 6;" \ + "ramdisk.img part 0 7;" \ + "ramdisk-recovery part 0 8\0" + +#define CONFIG_DFU_ALT_BOOT_EMMC "" +#define CONFIG_SET_DFU_ALT_INFO +#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K) + +/* SD/MMC configuration */ +#define CONFIG_MMC_DEFAULT_DEV 0 + +#define TIZEN_ENV_SETTING \ + "mmcbootdev=0\0" \ + "mmcbootpart=1\0" \ + "mmcrootdev=0\0" \ + "mmcrootpart=2\0" \ + "mmcinformpart=9\0" \ + "rebootparamfile=reboot-param.bin\0" \ + "rebootparam_addr=0x02100000\0" \ + "upgrade_val=72677075\0" \ + "recovery_val=72766372\0" \ + "nodef_val=6665646e\0" \ + "download_val=6c6e7764\0" \ + "ramdiskpart=7\0" \ + "ramdisksize=800000\0" \ + "bootmode=ramdisk\0" \ + "bootdev=mmc\0" \ + "tfm=setenv bootmode download; run bootcmd\0" \ + "opts=loglevel=4\0" \ + "dfu_usb_con=0\0" \ + "dfu_interface=mmc\0" \ + "dfu_device=" __stringify(CONFIG_MMC_DEFAULT_DEV) "\0" + + +#endif /* __CONFIG_TIZEN_AMLOGIC_H */ -- 2.34.1