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 DFU_DEFAULT_POLL_TIMEOUT 300
24 /* USB Samsung's IDs */
25 #define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
26 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
27 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
28 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
30 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
32 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
34 /* Common environment variables */
35 #define CONFIG_EXTRA_ENV_ITB \
36 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
38 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
40 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
43 "if run loadinitrd; then " \
44 "setenv initrd_addr ${initrdaddr};" \
46 "setenv initrd_addr -;" \
49 "if run loaddtb; then " \
50 "setenv fdt_addr ${fdtaddr};" \
55 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
56 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
58 "setenv kerneladdr 0x42000000;" \
59 "setenv kernelname Image.itb;" \
62 "bootm ${kerneladdr}#${board_name}\0" \
64 "setenv kerneladdr 0x40007FC0;" \
65 "setenv kernelname uImage;" \
67 "run check_ramdisk;" \
70 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
72 "setenv kerneladdr 0x40007FC0;" \
73 "setenv kernelname zImage;" \
75 "run check_ramdisk;" \
78 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
80 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
82 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
84 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
88 #endif /* __CONFIG_EXYNOS4_COMMON_H */