Convert CONFIG_NET_RETRY_COUNT to Kconfig
[platform/kernel/u-boot.git] / include / configs / exynos4-common.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2014 Samsung Electronics
4  *
5  * Configuration settings for the SAMSUNG EXYNOS5 board.
6  */
7
8 #ifndef __CONFIG_EXYNOS4_COMMON_H
9 #define __CONFIG_EXYNOS4_COMMON_H
10
11 #define CONFIG_EXYNOS4                  /* Exynos4 Family */
12
13 #include "exynos-common.h"
14
15 /* SD/MMC configuration */
16 #define CONFIG_MMC_DEFAULT_DEV  0
17
18 #define DFU_DEFAULT_POLL_TIMEOUT 300
19
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
25
26 #define CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 2 sectors */
27
28 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
29
30 /* Common environment variables */
31 #define ENV_ITB \
32         "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
33                 "${kernelname}\0" \
34         "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
35                 "${initrdname}\0" \
36         "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
37                 "${fdtfile}\0" \
38         "check_ramdisk=" \
39                 "if run loadinitrd; then " \
40                         "setenv initrd_addr ${initrdaddr};" \
41                 "else " \
42                         "setenv initrd_addr -;" \
43                 "fi;\0" \
44         "check_dtb=" \
45                 "if run loaddtb; then " \
46                         "setenv fdt_addr ${fdtaddr};" \
47                 "else " \
48                         "setenv fdt_addr;" \
49                 "fi;\0" \
50         "kernel_args=" \
51                 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
52                 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
53         "boot_fit=" \
54                 "setenv kerneladdr 0x42000000;" \
55                 "setenv kernelname Image.itb;" \
56                 "run loadkernel;" \
57                 "run kernel_args;" \
58                 "bootm ${kerneladdr}#${board_name}\0" \
59         "boot_uimg=" \
60                 "setenv kerneladdr 0x40007FC0;" \
61                 "setenv kernelname uImage;" \
62                 "run check_dtb;" \
63                 "run check_ramdisk;" \
64                 "run loadkernel;" \
65                 "run kernel_args;" \
66                 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
67         "boot_zimg=" \
68                 "setenv kerneladdr 0x40007FC0;" \
69                 "setenv kernelname zImage;" \
70                 "run check_dtb;" \
71                 "run check_ramdisk;" \
72                 "run loadkernel;" \
73                 "run kernel_args;" \
74                 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
75         "autoboot=" \
76                 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
77                         "run boot_fit;" \
78                 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
79                         "run boot_zimg;" \
80                 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
81                         "run boot_uimg;" \
82                 "fi;\0"
83
84 #endif  /* __CONFIG_EXYNOS4_COMMON_H */