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_SYS_CACHELINE_SIZE 32 |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 19 | #define CONFIG_REVISION_TAG |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 20 | |
| 21 | /* SD/MMC configuration */ |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 22 | #define CONFIG_MMC_SDMA |
| 23 | #define CONFIG_MMC_DEFAULT_DEV 0 |
| 24 | |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 25 | #undef CONFIG_CMD_ONENAND |
| 26 | #undef CONFIG_CMD_MTDPARTS |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 27 | #define CONFIG_CMD_DFU |
| 28 | #define CONFIG_CMD_GPT |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 29 | |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 30 | /* USB Composite download gadget - g_dnl */ |
Paul Kocialkowski | 01acd6a | 2015-06-12 19:56:58 +0200 | [diff] [blame] | 31 | #define CONFIG_USB_GADGET_DOWNLOAD |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 32 | |
| 33 | /* TIZEN THOR downloader support */ |
| 34 | #define CONFIG_CMD_THOR_DOWNLOAD |
Paul Kocialkowski | 01acd6a | 2015-06-12 19:56:58 +0200 | [diff] [blame] | 35 | #define CONFIG_USB_FUNCTION_THOR |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 36 | |
Paul Kocialkowski | 01acd6a | 2015-06-12 19:56:58 +0200 | [diff] [blame] | 37 | #define CONFIG_USB_FUNCTION_DFU |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 38 | #define CONFIG_DFU_MMC |
| 39 | #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M |
| 40 | #define DFU_DEFAULT_POLL_TIMEOUT 300 |
| 41 | |
| 42 | /* USB Samsung's IDs */ |
| 43 | #define CONFIG_G_DNL_VENDOR_NUM 0x04E8 |
| 44 | #define CONFIG_G_DNL_PRODUCT_NUM 0x6601 |
| 45 | #define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM |
| 46 | #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D |
Lukasz Majewski | 8fc1713 | 2014-07-29 11:10:44 +0200 | [diff] [blame] | 47 | #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525 |
| 48 | #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5 |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 49 | #define CONFIG_G_DNL_MANUFACTURER "Samsung" |
| 50 | |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 51 | #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */ |
| 52 | |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 53 | #define CONFIG_USB_GADGET |
Marek Vasut | e30824f | 2015-08-19 23:27:26 +0200 | [diff] [blame] | 54 | #define CONFIG_USB_GADGET_DWC2_OTG |
| 55 | #define CONFIG_USB_GADGET_DWC2_OTG_PHY |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 56 | #define CONFIG_USB_GADGET_DUALSPEED |
| 57 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 58 | |
| 59 | #define CONFIG_CMD_USB_MASS_STORAGE |
Paul Kocialkowski | 01acd6a | 2015-06-12 19:56:58 +0200 | [diff] [blame] | 60 | #define CONFIG_USB_FUNCTION_MASS_STORAGE |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 61 | |
Ćukasz Majewski | f26cc7d | 2015-04-01 12:34:28 +0200 | [diff] [blame] | 62 | /* Common environment variables */ |
| 63 | #define CONFIG_EXTRA_ENV_ITB \ |
| 64 | "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \ |
| 65 | "${kernelname}\0" \ |
| 66 | "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \ |
| 67 | "${initrdname}\0" \ |
| 68 | "loaddtb=load mmc ${mmcbootdev}:${mmcbootpart} ${fdtaddr} " \ |
| 69 | "${fdtfile}\0" \ |
| 70 | "check_ramdisk=" \ |
| 71 | "if run loadinitrd; then " \ |
| 72 | "setenv initrd_addr ${initrdaddr};" \ |
| 73 | "else " \ |
| 74 | "setenv initrd_addr -;" \ |
| 75 | "fi;\0" \ |
| 76 | "check_dtb=" \ |
| 77 | "if run loaddtb; then " \ |
| 78 | "setenv fdt_addr ${fdtaddr};" \ |
| 79 | "else " \ |
| 80 | "setenv fdt_addr;" \ |
| 81 | "fi;\0" \ |
| 82 | "kernel_args=" \ |
| 83 | "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}" \ |
| 84 | " ${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo};\0" \ |
| 85 | "boot_fit=" \ |
| 86 | "setenv kerneladdr 0x42000000;" \ |
| 87 | "setenv kernelname Image.itb;" \ |
| 88 | "run loadkernel;" \ |
| 89 | "run kernel_args;" \ |
| 90 | "bootm ${kerneladdr}#${board_name}\0" \ |
| 91 | "boot_uimg=" \ |
| 92 | "setenv kerneladdr 0x40007FC0;" \ |
| 93 | "setenv kernelname uImage;" \ |
| 94 | "run check_dtb;" \ |
| 95 | "run check_ramdisk;" \ |
| 96 | "run loadkernel;" \ |
| 97 | "run kernel_args;" \ |
| 98 | "bootm ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \ |
| 99 | "boot_zimg=" \ |
| 100 | "setenv kerneladdr 0x40007FC0;" \ |
| 101 | "setenv kernelname zImage;" \ |
| 102 | "run check_dtb;" \ |
| 103 | "run check_ramdisk;" \ |
| 104 | "run loadkernel;" \ |
| 105 | "run kernel_args;" \ |
| 106 | "bootz ${kerneladdr} ${initrd_addr} ${fdt_addr};\0" \ |
| 107 | "autoboot=" \ |
| 108 | "if test -e mmc ${mmcdev}:${mmcbootpart} Image.itb; then; " \ |
| 109 | "run boot_fit;" \ |
| 110 | "elif test -e mmc ${mmcdev}:${mmcbootpart} zImage; then; " \ |
| 111 | "run boot_zimg;" \ |
| 112 | "elif test -e mmc ${mmcdev}:${mmcbootpart} uImage; then; " \ |
| 113 | "run boot_uimg;" \ |
| 114 | "fi;\0" |
| 115 | |
Simon Glass | 4c7bb1d | 2014-10-07 22:01:44 -0600 | [diff] [blame] | 116 | #endif /* __CONFIG_EXYNOS4_COMMON_H */ |