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