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