blob: 4202c6261262bb86fea0d54679257a49ab13af0c [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
Piotr Wilczek942d0a92014-03-07 14:59:43 +010015/* SD/MMC configuration */
Piotr Wilczek942d0a92014-03-07 14:59:43 +010016#define CONFIG_MMC_DEFAULT_DEV 0
17
Piotr Wilczek942d0a92014-03-07 14:59:43 +010018#define DFU_DEFAULT_POLL_TIMEOUT 300
19
20/* USB Samsung's IDs */
Sam Protsenkob706ffd2016-04-13 14:20:30 +030021#define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
Piotr Wilczek942d0a92014-03-07 14:59:43 +010022#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
Lukasz Majewskicb7ff442014-07-29 11:10:44 +020023#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
24#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
Piotr Wilczek942d0a92014-03-07 14:59:43 +010025
Piotr Wilczek942d0a92014-03-07 14:59:43 +010026#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */
27
Marek Vasutbc623f22015-08-19 23:27:26 +020028#define CONFIG_USB_GADGET_DWC2_OTG_PHY
Piotr Wilczek942d0a92014-03-07 14:59:43 +010029
Łukasz Majewskie8cbc042015-04-01 12:34:28 +020030/* Common environment variables */
Tom Rini84afe7a2021-08-10 17:34:22 -040031#define ENV_ITB \
Łukasz Majewskie8cbc042015-04-01 12:34:28 +020032 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
33 "${kernelname}\0" \
34 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
35 "${initrdname}\0" \
36 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
37 "${fdtfile}\0" \
38 "check_ramdisk=" \
39 "if run loadinitrd; then " \
40 "setenv initrd_addr ${initrdaddr};" \
41 "else " \
42 "setenv initrd_addr -;" \
43 "fi;\0" \
44 "check_dtb=" \
45 "if run loaddtb; then " \
46 "setenv fdt_addr ${fdtaddr};" \
47 "else " \
48 "setenv fdt_addr;" \
49 "fi;\0" \
50 "kernel_args=" \
51 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
52 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
53 "boot_fit=" \
54 "setenv kerneladdr 0x42000000;" \
55 "setenv kernelname Image.itb;" \
56 "run loadkernel;" \
57 "run kernel_args;" \
58 "bootm ${kerneladdr}#${board_name}\0" \
59 "boot_uimg=" \
60 "setenv kerneladdr 0x40007FC0;" \
61 "setenv kernelname uImage;" \
62 "run check_dtb;" \
63 "run check_ramdisk;" \
64 "run loadkernel;" \
65 "run kernel_args;" \
66 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
67 "boot_zimg=" \
68 "setenv kerneladdr 0x40007FC0;" \
69 "setenv kernelname zImage;" \
70 "run check_dtb;" \
71 "run check_ramdisk;" \
72 "run loadkernel;" \
73 "run kernel_args;" \
74 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
75 "autoboot=" \
76 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
77 "run boot_fit;" \
78 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
79 "run boot_zimg;" \
80 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
81 "run boot_uimg;" \
82 "fi;\0"
83
Simon Glassbe165002014-10-07 22:01:44 -060084#endif /* __CONFIG_EXYNOS4_COMMON_H */