blob: ec45640698b1868e17691930632586d6b300072e [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_REVISION_TAG
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010019
20/* SD/MMC configuration */
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010021#define CONFIG_MMC_DEFAULT_DEV 0
22
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010023#undef CONFIG_CMD_ONENAND
24#undef CONFIG_CMD_MTDPARTS
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010025#define CONFIG_CMD_GPT
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010026
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010027/* TIZEN THOR downloader support */
28#define CONFIG_CMD_THOR_DOWNLOAD
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020029#define CONFIG_USB_FUNCTION_THOR
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010030
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010031#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
32#define DFU_DEFAULT_POLL_TIMEOUT 300
33
34/* USB Samsung's IDs */
Sam Protsenkoe6c0bc02016-04-13 14:20:30 +030035#define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010036#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
Lukasz Majewski8fc17132014-07-29 11:10:44 +020037#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
38#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010039
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010040#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
41
Marek Vasute30824f2015-08-19 23:27:26 +020042#define CONFIG_USB_GADGET_DWC2_OTG_PHY
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010043
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020044#define CONFIG_USB_FUNCTION_MASS_STORAGE
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010045
Ɓukasz Majewskif26cc7d2015-04-01 12:34:28 +020046/* Common environment variables */
47#define CONFIG_EXTRA_ENV_ITB \
48 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
49 "${kernelname}\0" \
50 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
51 "${initrdname}\0" \
52 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
53 "${fdtfile}\0" \
54 "check_ramdisk=" \
55 "if run loadinitrd; then " \
56 "setenv initrd_addr ${initrdaddr};" \
57 "else " \
58 "setenv initrd_addr -;" \
59 "fi;\0" \
60 "check_dtb=" \
61 "if run loaddtb; then " \
62 "setenv fdt_addr ${fdtaddr};" \
63 "else " \
64 "setenv fdt_addr;" \
65 "fi;\0" \
66 "kernel_args=" \
67 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
68 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
69 "boot_fit=" \
70 "setenv kerneladdr 0x42000000;" \
71 "setenv kernelname Image.itb;" \
72 "run loadkernel;" \
73 "run kernel_args;" \
74 "bootm ${kerneladdr}#${board_name}\0" \
75 "boot_uimg=" \
76 "setenv kerneladdr 0x40007FC0;" \
77 "setenv kernelname uImage;" \
78 "run check_dtb;" \
79 "run check_ramdisk;" \
80 "run loadkernel;" \
81 "run kernel_args;" \
82 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
83 "boot_zimg=" \
84 "setenv kerneladdr 0x40007FC0;" \
85 "setenv kernelname zImage;" \
86 "run check_dtb;" \
87 "run check_ramdisk;" \
88 "run loadkernel;" \
89 "run kernel_args;" \
90 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
91 "autoboot=" \
92 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
93 "run boot_fit;" \
94 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
95 "run boot_zimg;" \
96 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
97 "run boot_uimg;" \
98 "fi;\0"
99
Simon Glass4c7bb1d2014-10-07 22:01:44 -0600100#endif /* __CONFIG_EXYNOS4_COMMON_H */