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