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