Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2014 Samsung Electronics |
| 4 | * |
| 5 | * Configuration settings for the SAMSUNG EXYNOS5 board. |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
Simon Glass | 4c7bb1d | 2014-10-07 22:01:44 -0600 | [diff] [blame] | 8 | #ifndef __CONFIG_EXYNOS4_COMMON_H |
| 9 | #define __CONFIG_EXYNOS4_COMMON_H |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 10 | |
Simon Glass | 5ea01ab | 2014-10-07 22:01:45 -0600 | [diff] [blame] | 11 | #include "exynos-common.h" |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 12 | |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 13 | #define DFU_DEFAULT_POLL_TIMEOUT 300 |
| 14 | |
Łukasz Majewski | f26cc7d | 2015-04-01 12:34:28 +0200 | [diff] [blame] | 15 | /* Common environment variables */ |
Tom Rini | c863204 | 2021-08-10 17:34:22 -0400 | [diff] [blame] | 16 | #define ENV_ITB \ |
Łukasz Majewski | f26cc7d | 2015-04-01 12:34:28 +0200 | [diff] [blame] | 17 | "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 Glass | 4c7bb1d | 2014-10-07 22:01:44 -0600 | [diff] [blame] | 69 | #endif /* __CONFIG_EXYNOS4_COMMON_H */ |