blob: e8c182bc2f395aaff6ae9d62334a7f58491809a0 [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#include "exynos-common.h"
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010012
Piotr Wilczek8e5e1e62014-03-07 14:59:43 +010013#define DFU_DEFAULT_POLL_TIMEOUT 300
14
Łukasz Majewskif26cc7d2015-04-01 12:34:28 +020015/* Common environment variables */
Tom Rinic8632042021-08-10 17:34:22 -040016#define ENV_ITB \
Łukasz Majewskif26cc7d2015-04-01 12:34:28 +020017 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
18 "${kernelname}\0" \
19 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
20 "${initrdname}\0" \
21 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \
22 "${fdtfile}\0" \
23 "check_ramdisk=" \
24 "if run loadinitrd; then " \
25 "setenv initrd_addr ${initrdaddr};" \
26 "else " \
27 "setenv initrd_addr -;" \
28 "fi;\0" \
29 "check_dtb=" \
30 "if run loaddtb; then " \
31 "setenv fdt_addr ${fdtaddr};" \
32 "else " \
33 "setenv fdt_addr;" \
34 "fi;\0" \
35 "kernel_args=" \
36 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \
37 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \
38 "boot_fit=" \
39 "setenv kerneladdr 0x42000000;" \
40 "setenv kernelname Image.itb;" \
41 "run loadkernel;" \
42 "run kernel_args;" \
43 "bootm ${kerneladdr}#${board_name}\0" \
44 "boot_uimg=" \
45 "setenv kerneladdr 0x40007FC0;" \
46 "setenv kernelname uImage;" \
47 "run check_dtb;" \
48 "run check_ramdisk;" \
49 "run loadkernel;" \
50 "run kernel_args;" \
51 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
52 "boot_zimg=" \
53 "setenv kerneladdr 0x40007FC0;" \
54 "setenv kernelname zImage;" \
55 "run check_dtb;" \
56 "run check_ramdisk;" \
57 "run loadkernel;" \
58 "run kernel_args;" \
59 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \
60 "autoboot=" \
61 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \
62 "run boot_fit;" \
63 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \
64 "run boot_zimg;" \
65 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \
66 "run boot_uimg;" \
67 "fi;\0"
68
Simon Glass4c7bb1d2014-10-07 22:01:44 -060069#endif /* __CONFIG_EXYNOS4_COMMON_H */