blob: f6b0a6ff2bae910dc75a31908eafb23a61234a96 [file] [log] [blame]
Piotr Wilczek942d0a92014-03-07 14:59:43 +01001/*
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
Simon Glassbe165002014-10-07 22:01:44 -06009#ifndef __CONFIG_EXYNOS4_COMMON_H
10#define __CONFIG_EXYNOS4_COMMON_H
Piotr Wilczek942d0a92014-03-07 14:59:43 +010011
Simon Glass14e27ab2014-10-07 22:01:45 -060012#define CONFIG_EXYNOS4 /* Exynos4 Family */
Piotr Wilczek942d0a92014-03-07 14:59:43 +010013
Simon Glass14e27ab2014-10-07 22:01:45 -060014#include "exynos-common.h"
Piotr Wilczek942d0a92014-03-07 14:59:43 +010015
Simon Glass50dfd2c2014-10-07 22:01:48 -060016#define CONFIG_BOARD_COMMON
17
Piotr Wilczek942d0a92014-03-07 14:59:43 +010018#define CONFIG_SYS_CACHELINE_SIZE 32
Piotr Wilczek942d0a92014-03-07 14:59:43 +010019#define CONFIG_REVISION_TAG
Piotr Wilczek942d0a92014-03-07 14:59:43 +010020
21/* SD/MMC configuration */
Piotr Wilczek942d0a92014-03-07 14:59:43 +010022#define CONFIG_MMC_SDMA
23#define CONFIG_MMC_DEFAULT_DEV 0
24
Piotr Wilczek942d0a92014-03-07 14:59:43 +010025#undef CONFIG_CMD_FPGA
26#undef CONFIG_CMD_MISC
Piotr Wilczek942d0a92014-03-07 14:59:43 +010027#undef CONFIG_CMD_NFS
28#undef CONFIG_CMD_XIMG
Piotr Wilczek942d0a92014-03-07 14:59:43 +010029#undef CONFIG_CMD_ONENAND
30#undef CONFIG_CMD_MTDPARTS
Piotr Wilczek942d0a92014-03-07 14:59:43 +010031#define CONFIG_CMD_DFU
32#define CONFIG_CMD_GPT
Piotr Wilczek942d0a92014-03-07 14:59:43 +010033
Piotr Wilczek942d0a92014-03-07 14:59:43 +010034/* USB Composite download gadget - g_dnl */
35#define CONFIG_USBDOWNLOAD_GADGET
36
37/* TIZEN THOR downloader support */
38#define CONFIG_CMD_THOR_DOWNLOAD
39#define CONFIG_THOR_FUNCTION
40
41#define CONFIG_DFU_FUNCTION
42#define CONFIG_DFU_MMC
43#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
44#define DFU_DEFAULT_POLL_TIMEOUT 300
45
46/* USB Samsung's IDs */
47#define CONFIG_G_DNL_VENDOR_NUM 0x04E8
48#define CONFIG_G_DNL_PRODUCT_NUM 0x6601
49#define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM
50#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
Lukasz Majewskicb7ff442014-07-29 11:10:44 +020051#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
52#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
Piotr Wilczek942d0a92014-03-07 14:59:43 +010053#define CONFIG_G_DNL_MANUFACTURER "Samsung"
54
Piotr Wilczek942d0a92014-03-07 14:59:43 +010055#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
56
Piotr Wilczek942d0a92014-03-07 14:59:43 +010057#define CONFIG_USB_GADGET
58#define CONFIG_USB_GADGET_S3C_UDC_OTG
Marek Vasute64a3372014-11-04 04:13:57 +010059#define CONFIG_USB_GADGET_S3C_UDC_OTG_PHY
Piotr Wilczek942d0a92014-03-07 14:59:43 +010060#define CONFIG_USB_GADGET_DUALSPEED
61#define CONFIG_USB_GADGET_VBUS_DRAW 2
Piotr Wilczek942d0a92014-03-07 14:59:43 +010062
63#define CONFIG_CMD_USB_MASS_STORAGE
64#define CONFIG_USB_GADGET_MASS_STORAGE
65
Ɓukasz Majewskie8cbc042015-04-01 12:34:28 +020066/* Common environment variables */
67#define CONFIG_EXTRA_ENV_ITB \
68 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
69 "${kernelname}\0" \
70 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
71 "${initrdname}\0" \
72 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
73 "${fdtfile}\0" \
74 "check_ramdisk=" \
75 "if run loadinitrd; then " \
76 "setenv initrd_addr ${initrdaddr};" \
77 "else " \
78 "setenv initrd_addr -;" \
79 "fi;\0" \
80 "check_dtb=" \
81 "if run loaddtb; then " \
82 "setenv fdt_addr ${fdtaddr};" \
83 "else " \
84 "setenv fdt_addr;" \
85 "fi;\0" \
86 "kernel_args=" \
87 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
88 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
89 "boot_fit=" \
90 "setenv kerneladdr 0x42000000;" \
91 "setenv kernelname Image.itb;" \
92 "run loadkernel;" \
93 "run kernel_args;" \
94 "bootm ${kerneladdr}#${board_name}\0" \
95 "boot_uimg=" \
96 "setenv kerneladdr 0x40007FC0;" \
97 "setenv kernelname uImage;" \
98 "run check_dtb;" \
99 "run check_ramdisk;" \
100 "run loadkernel;" \
101 "run kernel_args;" \
102 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
103 "boot_zimg=" \
104 "setenv kerneladdr 0x40007FC0;" \
105 "setenv kernelname zImage;" \
106 "run check_dtb;" \
107 "run check_ramdisk;" \
108 "run loadkernel;" \
109 "run kernel_args;" \
110 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
111 "autoboot=" \
112 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
113 "run boot_fit;" \
114 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
115 "run boot_zimg;" \
116 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
117 "run boot_uimg;" \
118 "fi;\0"
119
Simon Glassbe165002014-10-07 22:01:44 -0600120#endif /* __CONFIG_EXYNOS4_COMMON_H */