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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:37:12 +0000 (11:37 +0100)
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 c895a24eca3e09bb54dc92488e955248d138d655..f4bc51f69528185c4eed7e38fb332806b12b1473 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
@@ -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 (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 */