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 9 #ifndef __CONFIG_EXYNOS4_COMMON_H 10 #define __CONFIG_EXYNOS4_COMMON_H 11 12 #define CONFIG_EXYNOS4 /* Exynos4 Family */ 13 14 #include "exynos-common.h" 15 16 #define CONFIG_BOARD_COMMON 17 18 #define CONFIG_REVISION_TAG 19 20 /* SD/MMC configuration */ 21 #define CONFIG_MMC_DEFAULT_DEV 0 22 23 #undef CONFIG_CMD_ONENAND 24 #undef CONFIG_CMD_MTDPARTS 25 26 /* TIZEN THOR downloader support */ 27 #define CONFIG_CMD_THOR_DOWNLOAD 28 #define CONFIG_USB_FUNCTION_THOR 29 30 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M 31 #define DFU_DEFAULT_POLL_TIMEOUT 300 32 33 /* USB Samsung's IDs */ 34 #define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8 35 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D 36 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525 37 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5 38 39 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */ 40 41 #define CONFIG_USB_GADGET_DWC2_OTG_PHY 42 43 #define CONFIG_USB_FUNCTION_MASS_STORAGE 44 45 /* Common environment variables */ 46 #define CONFIG_EXTRA_ENV_ITB \ 47 "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \ 48 "${kernelname}\0" \ 49 "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \ 50 "${initrdname}\0" \ 51 "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \ 52 "${fdtfile}\0" \ 53 "check_ramdisk=" \ 54 "if run loadinitrd; then " \ 55 "setenv initrd_addr ${initrdaddr};" \ 56 "else " \ 57 "setenv initrd_addr -;" \ 58 "fi;\0" \ 59 "check_dtb=" \ 60 "if run loaddtb; then " \ 61 "setenv fdt_addr ${fdtaddr};" \ 62 "else " \ 63 "setenv fdt_addr;" \ 64 "fi;\0" \ 65 "kernel_args=" \ 66 "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \ 67 " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \ 68 "boot_fit=" \ 69 "setenv kerneladdr 0x42000000;" \ 70 "setenv kernelname Image.itb;" \ 71 "run loadkernel;" \ 72 "run kernel_args;" \ 73 "bootm ${kerneladdr}#${board_name}\0" \ 74 "boot_uimg=" \ 75 "setenv kerneladdr 0x40007FC0;" \ 76 "setenv kernelname uImage;" \ 77 "run check_dtb;" \ 78 "run check_ramdisk;" \ 79 "run loadkernel;" \ 80 "run kernel_args;" \ 81 "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \ 82 "boot_zimg=" \ 83 "setenv kerneladdr 0x40007FC0;" \ 84 "setenv kernelname zImage;" \ 85 "run check_dtb;" \ 86 "run check_ramdisk;" \ 87 "run loadkernel;" \ 88 "run kernel_args;" \ 89 "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \ 90 "autoboot=" \ 91 "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \ 92 "run boot_fit;" \ 93 "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \ 94 "run boot_zimg;" \ 95 "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \ 96 "run boot_uimg;" \ 97 "fi;\0" 98 99 #endif /* __CONFIG_EXYNOS4_COMMON_H */ 100