blob: 996dbed99dff65572a5f1561e92c8124e0992f48 [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_DEFAULT_DEV 0
22
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010023#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
24#define DFU_DEFAULT_POLL_TIMEOUT 300
25
26/* USB Samsung's IDs */
Sam Protsenkoe6c0bc02016-04-13 14:20:30 +030027#define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010028#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
Lukasz Majewski8fc17132014-07-29 11:10:44 +020029#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
30#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010031
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010032#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
33
Marek Vasute30824f2015-08-19 23:27:26 +020034#define CONFIG_USB_GADGET_DWC2_OTG_PHY
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010035
Ɓukasz Majewskif26cc7d2015-04-01 12:34:28 +020036/* Common environment variables */
37#define CONFIG_EXTRA_ENV_ITB \
38 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
39 "${kernelname}\0" \
40 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
41 "${initrdname}\0" \
42 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
43 "${fdtfile}\0" \
44 "check_ramdisk=" \
45 "if run loadinitrd; then " \
46 "setenv initrd_addr ${initrdaddr};" \
47 "else " \
48 "setenv initrd_addr -;" \
49 "fi;\0" \
50 "check_dtb=" \
51 "if run loaddtb; then " \
52 "setenv fdt_addr ${fdtaddr};" \
53 "else " \
54 "setenv fdt_addr;" \
55 "fi;\0" \
56 "kernel_args=" \
57 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
58 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
59 "boot_fit=" \
60 "setenv kerneladdr 0x42000000;" \
61 "setenv kernelname Image.itb;" \
62 "run loadkernel;" \
63 "run kernel_args;" \
64 "bootm ${kerneladdr}#${board_name}\0" \
65 "boot_uimg=" \
66 "setenv kerneladdr 0x40007FC0;" \
67 "setenv kernelname uImage;" \
68 "run check_dtb;" \
69 "run check_ramdisk;" \
70 "run loadkernel;" \
71 "run kernel_args;" \
72 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
73 "boot_zimg=" \
74 "setenv kerneladdr 0x40007FC0;" \
75 "setenv kernelname zImage;" \
76 "run check_dtb;" \
77 "run check_ramdisk;" \
78 "run loadkernel;" \
79 "run kernel_args;" \
80 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
81 "autoboot=" \
82 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
83 "run boot_fit;" \
84 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
85 "run boot_zimg;" \
86 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
87 "run boot_uimg;" \
88 "fi;\0"
89
Simon Glass4c7bb1d2014-10-07 22:01:44 -060090#endif /* __CONFIG_EXYNOS4_COMMON_H */