2 * Copyright (C) 2014 Samsung Electronics
4 * Configuration settings for the SAMSUNG EXYNOS5 board.
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef __CONFIG_EXYNOS4_COMMON_H
10 #define __CONFIG_EXYNOS4_COMMON_H
12 #define CONFIG_EXYNOS4 /* Exynos4 Family */
14 #include "exynos-common.h"
16 #define CONFIG_BOARD_COMMON
18 #define CONFIG_REVISION_TAG
20 /* SD/MMC configuration */
21 #define CONFIG_MMC_SDMA
22 #define CONFIG_MMC_DEFAULT_DEV 0
24 #undef CONFIG_CMD_ONENAND
25 #undef CONFIG_CMD_MTDPARTS
26 #define CONFIG_CMD_GPT
28 /* TIZEN THOR downloader support */
29 #define CONFIG_CMD_THOR_DOWNLOAD
30 #define CONFIG_USB_FUNCTION_THOR
32 #define CONFIG_USB_FUNCTION_DFU
33 #define CONFIG_DFU_MMC
34 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
35 #define DFU_DEFAULT_POLL_TIMEOUT 300
37 /* USB Samsung's IDs */
38 #define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
39 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
40 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
41 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
43 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
45 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
47 #define CONFIG_USB_FUNCTION_MASS_STORAGE
49 /* Common environment variables */
50 #define CONFIG_EXTRA_ENV_ITB \
51 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
53 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
55 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
58 "if run loadinitrd; then " \
59 "setenv initrd_addr ${initrdaddr};" \
61 "setenv initrd_addr -;" \
64 "if run loaddtb; then " \
65 "setenv fdt_addr ${fdtaddr};" \
70 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
71 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
73 "setenv kerneladdr 0x42000000;" \
74 "setenv kernelname Image.itb;" \
77 "bootm ${kerneladdr}#${board_name}\0" \
79 "setenv kerneladdr 0x40007FC0;" \
80 "setenv kernelname uImage;" \
82 "run check_ramdisk;" \
85 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
87 "setenv kerneladdr 0x40007FC0;" \
88 "setenv kernelname zImage;" \
90 "run check_ramdisk;" \
93 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
95 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
97 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
99 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
103 #endif /* __CONFIG_EXYNOS4_COMMON_H */