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