Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Piotr Wilczek | 942d0a9 | 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 | 942d0a9 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
Simon Glass | be16500 | 2014-10-07 22:01:44 -0600 | [diff] [blame] | 8 | #ifndef __CONFIG_EXYNOS4_COMMON_H |
| 9 | #define __CONFIG_EXYNOS4_COMMON_H |
Piotr Wilczek | 942d0a9 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 10 | |
Simon Glass | 14e27ab | 2014-10-07 22:01:45 -0600 | [diff] [blame] | 11 | #include "exynos-common.h" |
Piotr Wilczek | 942d0a9 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 12 | |
Piotr Wilczek | 942d0a9 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 13 | /* SD/MMC configuration */ |
Piotr Wilczek | 942d0a9 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 14 | #define CONFIG_MMC_DEFAULT_DEV 0 |
| 15 | |
Piotr Wilczek | 942d0a9 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 16 | #define DFU_DEFAULT_POLL_TIMEOUT 300 |
| 17 | |
| 18 | /* USB Samsung's IDs */ |
Sam Protsenko | b706ffd | 2016-04-13 14:20:30 +0300 | [diff] [blame] | 19 | #define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8 |
Piotr Wilczek | 942d0a9 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 20 | #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D |
Lukasz Majewski | cb7ff44 | 2014-07-29 11:10:44 +0200 | [diff] [blame] | 21 | #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525 |
| 22 | #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5 |
Piotr Wilczek | 942d0a9 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 23 | |
Piotr Wilczek | 942d0a9 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 24 | #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */ |
| 25 | |
Łukasz Majewski | e8cbc04 | 2015-04-01 12:34:28 +0200 | [diff] [blame] | 26 | /* Common environment variables */ |
Tom Rini | 84afe7a | 2021-08-10 17:34:22 -0400 | [diff] [blame] | 27 | #define ENV_ITB \ |
Łukasz Majewski | e8cbc04 | 2015-04-01 12:34:28 +0200 | [diff] [blame] | 28 | "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \ |
| 29 | "${kernelname}\0" \ |
| 30 | "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \ |
| 31 | "${initrdname}\0" \ |
| 32 | "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \ |
| 33 | "${fdtfile}\0" \ |
| 34 | "check_ramdisk=" \ |
| 35 | "if run loadinitrd; then " \ |
| 36 | "setenv initrd_addr ${initrdaddr};" \ |
| 37 | "else " \ |
| 38 | "setenv initrd_addr -;" \ |
| 39 | "fi;\0" \ |
| 40 | "check_dtb=" \ |
| 41 | "if run loaddtb; then " \ |
| 42 | "setenv fdt_addr ${fdtaddr};" \ |
| 43 | "else " \ |
| 44 | "setenv fdt_addr;" \ |
| 45 | "fi;\0" \ |
| 46 | "kernel_args=" \ |
| 47 | "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \ |
| 48 | " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \ |
| 49 | "boot_fit=" \ |
| 50 | "setenv kerneladdr 0x42000000;" \ |
| 51 | "setenv kernelname Image.itb;" \ |
| 52 | "run loadkernel;" \ |
| 53 | "run kernel_args;" \ |
| 54 | "bootm ${kerneladdr}#${board_name}\0" \ |
| 55 | "boot_uimg=" \ |
| 56 | "setenv kerneladdr 0x40007FC0;" \ |
| 57 | "setenv kernelname uImage;" \ |
| 58 | "run check_dtb;" \ |
| 59 | "run check_ramdisk;" \ |
| 60 | "run loadkernel;" \ |
| 61 | "run kernel_args;" \ |
| 62 | "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \ |
| 63 | "boot_zimg=" \ |
| 64 | "setenv kerneladdr 0x40007FC0;" \ |
| 65 | "setenv kernelname zImage;" \ |
| 66 | "run check_dtb;" \ |
| 67 | "run check_ramdisk;" \ |
| 68 | "run loadkernel;" \ |
| 69 | "run kernel_args;" \ |
| 70 | "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \ |
| 71 | "autoboot=" \ |
| 72 | "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \ |
| 73 | "run boot_fit;" \ |
| 74 | "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \ |
| 75 | "run boot_zimg;" \ |
| 76 | "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \ |
| 77 | "run boot_uimg;" \ |
| 78 | "fi;\0" |
| 79 | |
Simon Glass | be16500 | 2014-10-07 22:01:44 -0600 | [diff] [blame] | 80 | #endif /* __CONFIG_EXYNOS4_COMMON_H */ |