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