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