]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/exynos4-dt.h
usb: dfu: fix boards wo USB cable detection
[people/ms/u-boot.git] / include / configs / exynos4-dt.h
CommitLineData
8e5e1e6a
PW
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_H
10#define __CONFIG_H
11
12/* High Level Configuration Options */
13#define CONFIG_SAMSUNG /* in a SAMSUNG core */
14#define CONFIG_S5P /* S5P Family */
15#define CONFIG_EXYNOS4 /* which is in a Exynos4 Family */
16
17#include <asm/arch/cpu.h> /* get chip and board defs */
18
19#define CONFIG_ARCH_CPU_INIT
20#define CONFIG_DISPLAY_CPUINFO
21#define CONFIG_DISPLAY_BOARDINFO
22#define CONFIG_BOARD_COMMON
23
24/* Enable fdt support */
25#define CONFIG_OF_CONTROL
26#define CONFIG_OF_SEPARATE
27
28#define CONFIG_SYS_CACHELINE_SIZE 32
29
30/* input clock of PLL: EXYNOS4 boards have 24MHz input clock */
31#define CONFIG_SYS_CLK_FREQ 24000000
32
33#define CONFIG_SETUP_MEMORY_TAGS
34#define CONFIG_CMDLINE_TAG
35#define CONFIG_REVISION_TAG
36#define CONFIG_INITRD_TAG
37#define CONFIG_CMDLINE_EDITING
38
39#include <linux/sizes.h>
40
41/* SD/MMC configuration */
42#define CONFIG_GENERIC_MMC
43#define CONFIG_MMC
44#define CONFIG_S5P_SDHCI
45#define CONFIG_SDHCI
46#define CONFIG_MMC_SDMA
47#define CONFIG_MMC_DEFAULT_DEV 0
48
49/* PWM */
50#define CONFIG_PWM
51
52#define CONFIG_BOARD_EARLY_INIT_F
53#define CONFIG_SKIP_LOWLEVEL_INIT
54
55/* allow to overwrite serial and ethaddr */
56#define CONFIG_ENV_OVERWRITE
57
58/* Command definition*/
59#include <config_cmd_default.h>
60
61#undef CONFIG_CMD_FPGA
62#undef CONFIG_CMD_MISC
63#undef CONFIG_CMD_NET
64#undef CONFIG_CMD_NFS
65#undef CONFIG_CMD_XIMG
66#undef CONFIG_CMD_CACHE
67#undef CONFIG_CMD_ONENAND
68#undef CONFIG_CMD_MTDPARTS
69#define CONFIG_CMD_CACHE
70#define CONFIG_CMD_MMC
71#define CONFIG_CMD_DFU
72#define CONFIG_CMD_GPT
73#define CONFIG_CMD_PMIC
74#define CONFIG_CMD_SETEXPR
75
76#define CONFIG_BOOTDELAY 3
77#define CONFIG_ZERO_BOOTDELAY_CHECK
78
79/* FAT */
80#define CONFIG_CMD_FAT
81#define CONFIG_FAT_WRITE
82
83/* EXT4 */
84#define CONFIG_CMD_EXT4
85#define CONFIG_CMD_EXT4_WRITE
86
87/* USB Composite download gadget - g_dnl */
88#define CONFIG_USBDOWNLOAD_GADGET
89
90/* TIZEN THOR downloader support */
91#define CONFIG_CMD_THOR_DOWNLOAD
92#define CONFIG_THOR_FUNCTION
93
94#define CONFIG_DFU_FUNCTION
95#define CONFIG_DFU_MMC
96#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
97#define DFU_DEFAULT_POLL_TIMEOUT 300
98
99/* USB Samsung's IDs */
100#define CONFIG_G_DNL_VENDOR_NUM 0x04E8
101#define CONFIG_G_DNL_PRODUCT_NUM 0x6601
102#define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM
103#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
104#define CONFIG_G_DNL_MANUFACTURER "Samsung"
105
106/* Miscellaneous configurable options */
107#define CONFIG_SYS_LONGHELP /* undef to save memory */
108#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
109#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
110#define CONFIG_SYS_PBSIZE 384 /* Print Buffer Size */
111#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
112/* Boot Argument Buffer Size */
113#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
114
115/* FLASH and environment organization */
116#define CONFIG_SYS_NO_FLASH
117#undef CONFIG_CMD_IMLS
118
119#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
120
121#define CONFIG_DOS_PARTITION
122#define CONFIG_EFI_PARTITION
123#define CONFIG_CMD_PART
124#define CONFIG_PARTITION_UUIDS
125
126#define CONFIG_USB_GADGET
127#define CONFIG_USB_GADGET_S3C_UDC_OTG
128#define CONFIG_USB_GADGET_DUALSPEED
129#define CONFIG_USB_GADGET_VBUS_DRAW 2
8e5e1e6a
PW
130
131#define CONFIG_CMD_USB_MASS_STORAGE
132#define CONFIG_USB_GADGET_MASS_STORAGE
133
134/* Enable devicetree support */
135#define CONFIG_OF_LIBFDT
136
137#endif /* __CONFIG_H */