configs: tizen_amlogic: add tizen specific haeder for amlogic
authorJaehoon Chung <jh80.chung@samsung.com>
Sun, 10 May 2020 22:35:15 +0000 (07:35 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 17 Oct 2023 04:19:23 +0000 (13:19 +0900)
Add Tizen specific header for amlogic.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
include/configs/meson64.h
include/samsung/tizen_amlogic.h [new file with mode: 0644]

index 801cdae..0dfcda4 100644 (file)
@@ -7,6 +7,9 @@
 #ifndef __MESON64_CONFIG_H
 #define __MESON64_CONFIG_H
 
+/* Tizen Specific configuration for Amlogic */
+#include <samsung/tizen_amlogic.h>
+
 /* Generic Interrupt Controller Definitions */
 #if (defined(CONFIG_MESON_AXG) || defined(CONFIG_MESON_G12A))
 #define GICD_BASE                      0xffc01000
@@ -88,6 +91,7 @@
 
 #ifndef CFG_EXTRA_ENV_SETTINGS
 #define CFG_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 (file)
index 0000000..0c93362
--- /dev/null
@@ -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 */