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