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 #include "exynos-common.h"
13 /* SD/MMC configuration */
14 #define CONFIG_MMC_DEFAULT_DEV 0
16 #define DFU_DEFAULT_POLL_TIMEOUT 300
18 /* USB Samsung's IDs */
19 #define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
20 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
21 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
22 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
24 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
26 /* Common environment variables */
28 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
30 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
32 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
35 "if run loadinitrd; then " \
36 "setenv initrd_addr ${initrdaddr};" \
38 "setenv initrd_addr -;" \
41 "if run loaddtb; then " \
42 "setenv fdt_addr ${fdtaddr};" \
47 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
48 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
50 "setenv kerneladdr 0x42000000;" \
51 "setenv kernelname Image.itb;" \
54 "bootm ${kerneladdr}#${board_name}\0" \
56 "setenv kerneladdr 0x40007FC0;" \
57 "setenv kernelname uImage;" \
59 "run check_ramdisk;" \
62 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
64 "setenv kerneladdr 0x40007FC0;" \
65 "setenv kernelname zImage;" \
67 "run check_ramdisk;" \
70 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
72 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
74 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
76 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
80 #endif /* __CONFIG_EXYNOS4_COMMON_H */