2 * Copyright (C) 2014 Samsung Electronics
4 * Configuration settings for the SAMSUNG EXYNOS5 board.
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef __CONFIG_EXYNOS4_COMMON_H
10 #define __CONFIG_EXYNOS4_COMMON_H
12 #define CONFIG_EXYNOS4 /* Exynos4 Family */
14 #include "exynos-common.h"
16 #define CONFIG_BOARD_COMMON
18 #define CONFIG_SYS_CACHELINE_SIZE 32
19 #define CONFIG_REVISION_TAG
21 /* SD/MMC configuration */
22 #define CONFIG_MMC_SDMA
23 #define CONFIG_MMC_DEFAULT_DEV 0
25 #undef CONFIG_CMD_ONENAND
26 #undef CONFIG_CMD_MTDPARTS
27 #define CONFIG_CMD_DFU
28 #define CONFIG_CMD_GPT
30 /* USB Composite download gadget - g_dnl */
31 #define CONFIG_USBDOWNLOAD_GADGET
33 /* TIZEN THOR downloader support */
34 #define CONFIG_CMD_THOR_DOWNLOAD
35 #define CONFIG_THOR_FUNCTION
37 #define CONFIG_DFU_FUNCTION
38 #define CONFIG_DFU_MMC
39 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
40 #define DFU_DEFAULT_POLL_TIMEOUT 300
42 /* USB Samsung's IDs */
43 #define CONFIG_G_DNL_VENDOR_NUM 0x04E8
44 #define CONFIG_G_DNL_PRODUCT_NUM 0x6601
45 #define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM
46 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
47 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
48 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
49 #define CONFIG_G_DNL_MANUFACTURER "Samsung"
51 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
53 #define CONFIG_USB_GADGET
54 #define CONFIG_USB_GADGET_S3C_UDC_OTG
55 #define CONFIG_USB_GADGET_S3C_UDC_OTG_PHY
56 #define CONFIG_USB_GADGET_DUALSPEED
57 #define CONFIG_USB_GADGET_VBUS_DRAW 2
59 #define CONFIG_CMD_USB_MASS_STORAGE
60 #define CONFIG_USB_GADGET_MASS_STORAGE
62 /* Common environment variables */
63 #define CONFIG_EXTRA_ENV_ITB \
64 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
66 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
68 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
71 "if run loadinitrd; then " \
72 "setenv initrd_addr ${initrdaddr};" \
74 "setenv initrd_addr -;" \
77 "if run loaddtb; then " \
78 "setenv fdt_addr ${fdtaddr};" \
83 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
84 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
86 "setenv kerneladdr 0x42000000;" \
87 "setenv kernelname Image.itb;" \
90 "bootm ${kerneladdr}#${board_name}\0" \
92 "setenv kerneladdr 0x40007FC0;" \
93 "setenv kernelname uImage;" \
95 "run check_ramdisk;" \
98 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
100 "setenv kerneladdr 0x40007FC0;" \
101 "setenv kernelname zImage;" \
103 "run check_ramdisk;" \
106 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
108 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
110 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
112 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
116 #endif /* __CONFIG_EXYNOS4_COMMON_H */