blob: c995f35b73adbb772e27f3e1aeffc360b81620a6 [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_REVISION_TAG
Piotr Wilczek942d0a92014-03-07 14:59:43 +010019
20/* SD/MMC configuration */
Piotr Wilczek942d0a92014-03-07 14:59:43 +010021#define CONFIG_MMC_DEFAULT_DEV 0
22
Piotr Wilczek942d0a92014-03-07 14:59:43 +010023#undef CONFIG_CMD_ONENAND
Piotr Wilczek942d0a92014-03-07 14:59:43 +010024
Piotr Wilczek942d0a92014-03-07 14:59:43 +010025/* TIZEN THOR downloader support */
26#define CONFIG_CMD_THOR_DOWNLOAD
Paul Kocialkowski045d6052015-06-12 19:56:58 +020027#define CONFIG_USB_FUNCTION_THOR
Piotr Wilczek942d0a92014-03-07 14:59:43 +010028
Piotr Wilczek942d0a92014-03-07 14:59:43 +010029#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
30#define DFU_DEFAULT_POLL_TIMEOUT 300
31
32/* USB Samsung's IDs */
Sam Protsenkob706ffd2016-04-13 14:20:30 +030033#define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
Piotr Wilczek942d0a92014-03-07 14:59:43 +010034#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
Lukasz Majewskicb7ff442014-07-29 11:10:44 +020035#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
36#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
Piotr Wilczek942d0a92014-03-07 14:59:43 +010037
Piotr Wilczek942d0a92014-03-07 14:59:43 +010038#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
39
Marek Vasutbc623f22015-08-19 23:27:26 +020040#define CONFIG_USB_GADGET_DWC2_OTG_PHY
Piotr Wilczek942d0a92014-03-07 14:59:43 +010041
Paul Kocialkowski045d6052015-06-12 19:56:58 +020042#define CONFIG_USB_FUNCTION_MASS_STORAGE
Piotr Wilczek942d0a92014-03-07 14:59:43 +010043
Ɓukasz Majewskie8cbc042015-04-01 12:34:28 +020044/* Common environment variables */
45#define CONFIG_EXTRA_ENV_ITB \
46 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
47 "${kernelname}\0" \
48 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
49 "${initrdname}\0" \
50 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
51 "${fdtfile}\0" \
52 "check_ramdisk=" \
53 "if run loadinitrd; then " \
54 "setenv initrd_addr ${initrdaddr};" \
55 "else " \
56 "setenv initrd_addr -;" \
57 "fi;\0" \
58 "check_dtb=" \
59 "if run loaddtb; then " \
60 "setenv fdt_addr ${fdtaddr};" \
61 "else " \
62 "setenv fdt_addr;" \
63 "fi;\0" \
64 "kernel_args=" \
65 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
66 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
67 "boot_fit=" \
68 "setenv kerneladdr 0x42000000;" \
69 "setenv kernelname Image.itb;" \
70 "run loadkernel;" \
71 "run kernel_args;" \
72 "bootm ${kerneladdr}#${board_name}\0" \
73 "boot_uimg=" \
74 "setenv kerneladdr 0x40007FC0;" \
75 "setenv kernelname uImage;" \
76 "run check_dtb;" \
77 "run check_ramdisk;" \
78 "run loadkernel;" \
79 "run kernel_args;" \
80 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
81 "boot_zimg=" \
82 "setenv kerneladdr 0x40007FC0;" \
83 "setenv kernelname zImage;" \
84 "run check_dtb;" \
85 "run check_ramdisk;" \
86 "run loadkernel;" \
87 "run kernel_args;" \
88 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
89 "autoboot=" \
90 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
91 "run boot_fit;" \
92 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
93 "run boot_zimg;" \
94 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
95 "run boot_uimg;" \
96 "fi;\0"
97
Simon Glassbe165002014-10-07 22:01:44 -060098#endif /* __CONFIG_EXYNOS4_COMMON_H */