1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2014 Samsung Electronics
5 * Configuration settings for the SAMSUNG EXYNOS5 board.
8 #ifndef __CONFIG_EXYNOS4_COMMON_H
9 #define __CONFIG_EXYNOS4_COMMON_H
11 #define CONFIG_EXYNOS4 /* Exynos4 Family */
13 #include "exynos-common.h"
15 #define CONFIG_BOARD_COMMON
17 #define CONFIG_REVISION_TAG
19 /* SD/MMC configuration */
20 #define CONFIG_MMC_DEFAULT_DEV 0
22 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
23 #define DFU_DEFAULT_POLL_TIMEOUT 300
25 /* USB Samsung's IDs */
26 #define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
27 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
28 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
29 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
31 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
33 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
35 /* Common environment variables */
36 #define CONFIG_EXTRA_ENV_ITB \
37 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
39 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
41 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
44 "if run loadinitrd; then " \
45 "setenv initrd_addr ${initrdaddr};" \
47 "setenv initrd_addr -;" \
50 "if run loaddtb; then " \
51 "setenv fdt_addr ${fdtaddr};" \
56 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
57 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
59 "setenv kerneladdr 0x42000000;" \
60 "setenv kernelname Image.itb;" \
63 "bootm ${kerneladdr}#${board_name}\0" \
65 "setenv kerneladdr 0x40007FC0;" \
66 "setenv kernelname uImage;" \
68 "run check_ramdisk;" \
71 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
73 "setenv kerneladdr 0x40007FC0;" \
74 "setenv kernelname zImage;" \
76 "run check_ramdisk;" \
79 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
81 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
83 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
85 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
89 #endif /* __CONFIG_EXYNOS4_COMMON_H */