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 /* SD/MMC configuration */
16 #define CONFIG_MMC_DEFAULT_DEV 0
18 #define DFU_DEFAULT_POLL_TIMEOUT 300
20 /* USB Samsung's IDs */
21 #define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
22 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
23 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
24 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
26 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
28 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
30 /* Common environment variables */
32 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
34 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
36 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
39 "if run loadinitrd; then " \
40 "setenv initrd_addr ${initrdaddr};" \
42 "setenv initrd_addr -;" \
45 "if run loaddtb; then " \
46 "setenv fdt_addr ${fdtaddr};" \
51 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
52 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
54 "setenv kerneladdr 0x42000000;" \
55 "setenv kernelname Image.itb;" \
58 "bootm ${kerneladdr}#${board_name}\0" \
60 "setenv kerneladdr 0x40007FC0;" \
61 "setenv kernelname uImage;" \
63 "run check_ramdisk;" \
66 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
68 "setenv kerneladdr 0x40007FC0;" \
69 "setenv kernelname zImage;" \
71 "run check_ramdisk;" \
74 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
76 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
78 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
80 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
84 #endif /* __CONFIG_EXYNOS4_COMMON_H */