blob: 008d24c417399d20ed18d83256ad1eea194fa322 [file] [log] [blame]
Piotr Wilczek8e5e1e62014-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 Glass4c7bb1d2014-10-07 22:01:44 -06009#ifndef __CONFIG_EXYNOS4_COMMON_H
10#define __CONFIG_EXYNOS4_COMMON_H
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010011
Simon Glass5ea01ab2014-10-07 22:01:45 -060012#define CONFIG_EXYNOS4 /* Exynos4 Family */
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010013
Simon Glass5ea01ab2014-10-07 22:01:45 -060014#include "exynos-common.h"
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010015
Simon Glassf94de732014-10-07 22:01:48 -060016#define CONFIG_BOARD_COMMON
17
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010018#define CONFIG_SYS_CACHELINE_SIZE 32
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010019#define CONFIG_REVISION_TAG
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010020
21/* SD/MMC configuration */
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010022#define CONFIG_MMC_SDMA
23#define CONFIG_MMC_DEFAULT_DEV 0
24
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010025#undef CONFIG_CMD_ONENAND
26#undef CONFIG_CMD_MTDPARTS
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010027#define CONFIG_CMD_DFU
28#define CONFIG_CMD_GPT
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010029
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010030/* USB Composite download gadget - g_dnl */
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020031#define CONFIG_USB_GADGET_DOWNLOAD
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010032
33/* TIZEN THOR downloader support */
34#define CONFIG_CMD_THOR_DOWNLOAD
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020035#define CONFIG_USB_FUNCTION_THOR
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010036
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020037#define CONFIG_USB_FUNCTION_DFU
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010038#define CONFIG_DFU_MMC
39#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
40#define DFU_DEFAULT_POLL_TIMEOUT 300
41
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
Lukasz Majewski8fc17132014-07-29 11:10:44 +020047#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
48#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010049#define CONFIG_G_DNL_MANUFACTURER "Samsung"
50
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010051#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
52
Marek Vasute30824f2015-08-19 23:27:26 +020053#define CONFIG_USB_GADGET_DWC2_OTG
54#define CONFIG_USB_GADGET_DWC2_OTG_PHY
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010055#define CONFIG_USB_GADGET_DUALSPEED
56#define CONFIG_USB_GADGET_VBUS_DRAW 2
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010057
58#define CONFIG_CMD_USB_MASS_STORAGE
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020059#define CONFIG_USB_FUNCTION_MASS_STORAGE
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010060
Ɓukasz Majewskif26cc7d2015-04-01 12:34:28 +020061/* Common environment variables */
62#define CONFIG_EXTRA_ENV_ITB \
63 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
64 "${kernelname}\0" \
65 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
66 "${initrdname}\0" \
67 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
68 "${fdtfile}\0" \
69 "check_ramdisk=" \
70 "if run loadinitrd; then " \
71 "setenv initrd_addr ${initrdaddr};" \
72 "else " \
73 "setenv initrd_addr -;" \
74 "fi;\0" \
75 "check_dtb=" \
76 "if run loaddtb; then " \
77 "setenv fdt_addr ${fdtaddr};" \
78 "else " \
79 "setenv fdt_addr;" \
80 "fi;\0" \
81 "kernel_args=" \
82 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
83 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
84 "boot_fit=" \
85 "setenv kerneladdr 0x42000000;" \
86 "setenv kernelname Image.itb;" \
87 "run loadkernel;" \
88 "run kernel_args;" \
89 "bootm ${kerneladdr}#${board_name}\0" \
90 "boot_uimg=" \
91 "setenv kerneladdr 0x40007FC0;" \
92 "setenv kernelname uImage;" \
93 "run check_dtb;" \
94 "run check_ramdisk;" \
95 "run loadkernel;" \
96 "run kernel_args;" \
97 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
98 "boot_zimg=" \
99 "setenv kerneladdr 0x40007FC0;" \
100 "setenv kernelname zImage;" \
101 "run check_dtb;" \
102 "run check_ramdisk;" \
103 "run loadkernel;" \
104 "run kernel_args;" \
105 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
106 "autoboot=" \
107 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
108 "run boot_fit;" \
109 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
110 "run boot_zimg;" \
111 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
112 "run boot_uimg;" \
113 "fi;\0"
114
Simon Glass4c7bb1d2014-10-07 22:01:44 -0600115#endif /* __CONFIG_EXYNOS4_COMMON_H */