blob: 005f65d4ed6a81cfa94ec60304dab29f0dc952c6 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +01002/*
3 * Copyright (C) 2014 Samsung Electronics
4 *
5 * Configuration settings for the SAMSUNG EXYNOS5 board.
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +01006 */
7
Simon Glass4c7bb1d2014-10-07 22:01:44 -06008#ifndef __CONFIG_EXYNOS4_COMMON_H
9#define __CONFIG_EXYNOS4_COMMON_H
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010010
Simon Glass5ea01ab2014-10-07 22:01:45 -060011#define CONFIG_EXYNOS4 /* Exynos4 Family */
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010012
Simon Glass5ea01ab2014-10-07 22:01:45 -060013#include "exynos-common.h"
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010014
Simon Glassf94de732014-10-07 22:01:48 -060015#define CONFIG_BOARD_COMMON
16
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010017#define CONFIG_REVISION_TAG
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010018
19/* SD/MMC configuration */
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010020#define CONFIG_MMC_DEFAULT_DEV 0
21
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010022#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
23#define DFU_DEFAULT_POLL_TIMEOUT 300
24
25/* USB Samsung's IDs */
Sam Protsenkoe6c0bc02016-04-13 14:20:30 +030026#define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010027#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
Lukasz Majewski8fc17132014-07-29 11:10:44 +020028#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
29#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010030
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010031#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
32
Marek Vasute30824f2015-08-19 23:27:26 +020033#define CONFIG_USB_GADGET_DWC2_OTG_PHY
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010034
Ɓukasz Majewskif26cc7d2015-04-01 12:34:28 +020035/* Common environment variables */
36#define CONFIG_EXTRA_ENV_ITB \
37 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
38 "${kernelname}\0" \
39 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
40 "${initrdname}\0" \
41 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
42 "${fdtfile}\0" \
43 "check_ramdisk=" \
44 "if run loadinitrd; then " \
45 "setenv initrd_addr ${initrdaddr};" \
46 "else " \
47 "setenv initrd_addr -;" \
48 "fi;\0" \
49 "check_dtb=" \
50 "if run loaddtb; then " \
51 "setenv fdt_addr ${fdtaddr};" \
52 "else " \
53 "setenv fdt_addr;" \
54 "fi;\0" \
55 "kernel_args=" \
56 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
57 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
58 "boot_fit=" \
59 "setenv kerneladdr 0x42000000;" \
60 "setenv kernelname Image.itb;" \
61 "run loadkernel;" \
62 "run kernel_args;" \
63 "bootm ${kerneladdr}#${board_name}\0" \
64 "boot_uimg=" \
65 "setenv kerneladdr 0x40007FC0;" \
66 "setenv kernelname uImage;" \
67 "run check_dtb;" \
68 "run check_ramdisk;" \
69 "run loadkernel;" \
70 "run kernel_args;" \
71 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
72 "boot_zimg=" \
73 "setenv kerneladdr 0x40007FC0;" \
74 "setenv kernelname zImage;" \
75 "run check_dtb;" \
76 "run check_ramdisk;" \
77 "run loadkernel;" \
78 "run kernel_args;" \
79 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
80 "autoboot=" \
81 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
82 "run boot_fit;" \
83 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
84 "run boot_zimg;" \
85 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
86 "run boot_uimg;" \
87 "fi;\0"
88
Simon Glass4c7bb1d2014-10-07 22:01:44 -060089#endif /* __CONFIG_EXYNOS4_COMMON_H */