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 | |
| 9 | #ifndef __CONFIG_H |
| 10 | #define __CONFIG_H |
| 11 | |
| 12 | /* High Level Configuration Options */ |
| 13 | #define CONFIG_SAMSUNG /* in a SAMSUNG core */ |
| 14 | #define CONFIG_S5P /* S5P Family */ |
| 15 | #define CONFIG_EXYNOS4 /* which is in a Exynos4 Family */ |
| 16 | |
| 17 | #include <asm/arch/cpu.h> /* get chip and board defs */ |
| 18 | |
| 19 | #define CONFIG_ARCH_CPU_INIT |
| 20 | #define CONFIG_DISPLAY_CPUINFO |
| 21 | #define CONFIG_DISPLAY_BOARDINFO |
| 22 | #define CONFIG_BOARD_COMMON |
Piotr Wilczek | 0c04b1a | 2014-05-22 08:45:50 +0200 | [diff] [blame] | 23 | #define CONFIG_SYS_GENERIC_BOARD |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 24 | |
| 25 | /* Enable fdt support */ |
| 26 | #define CONFIG_OF_CONTROL |
| 27 | #define CONFIG_OF_SEPARATE |
| 28 | |
| 29 | #define CONFIG_SYS_CACHELINE_SIZE 32 |
| 30 | |
| 31 | /* input clock of PLL: EXYNOS4 boards have 24MHz input clock */ |
| 32 | #define CONFIG_SYS_CLK_FREQ 24000000 |
| 33 | |
| 34 | #define CONFIG_SETUP_MEMORY_TAGS |
| 35 | #define CONFIG_CMDLINE_TAG |
| 36 | #define CONFIG_REVISION_TAG |
| 37 | #define CONFIG_INITRD_TAG |
| 38 | #define CONFIG_CMDLINE_EDITING |
| 39 | |
| 40 | #include <linux/sizes.h> |
| 41 | |
| 42 | /* SD/MMC configuration */ |
| 43 | #define CONFIG_GENERIC_MMC |
| 44 | #define CONFIG_MMC |
| 45 | #define CONFIG_S5P_SDHCI |
| 46 | #define CONFIG_SDHCI |
| 47 | #define CONFIG_MMC_SDMA |
Jaehoon Chung | e33daad | 2014-05-16 13:59:58 +0900 | [diff] [blame] | 48 | #define CONFIG_DWMMC |
| 49 | #define CONFIG_EXYNOS_DWMMC |
| 50 | #define CONFIG_BOUNCE_BUFFER |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 51 | #define CONFIG_MMC_DEFAULT_DEV 0 |
| 52 | |
| 53 | /* PWM */ |
| 54 | #define CONFIG_PWM |
| 55 | |
| 56 | #define CONFIG_BOARD_EARLY_INIT_F |
| 57 | #define CONFIG_SKIP_LOWLEVEL_INIT |
| 58 | |
| 59 | /* allow to overwrite serial and ethaddr */ |
| 60 | #define CONFIG_ENV_OVERWRITE |
| 61 | |
| 62 | /* Command definition*/ |
| 63 | #include <config_cmd_default.h> |
| 64 | |
| 65 | #undef CONFIG_CMD_FPGA |
| 66 | #undef CONFIG_CMD_MISC |
| 67 | #undef CONFIG_CMD_NET |
| 68 | #undef CONFIG_CMD_NFS |
| 69 | #undef CONFIG_CMD_XIMG |
| 70 | #undef CONFIG_CMD_CACHE |
| 71 | #undef CONFIG_CMD_ONENAND |
| 72 | #undef CONFIG_CMD_MTDPARTS |
| 73 | #define CONFIG_CMD_CACHE |
| 74 | #define CONFIG_CMD_MMC |
| 75 | #define CONFIG_CMD_DFU |
| 76 | #define CONFIG_CMD_GPT |
| 77 | #define CONFIG_CMD_PMIC |
| 78 | #define CONFIG_CMD_SETEXPR |
| 79 | |
| 80 | #define CONFIG_BOOTDELAY 3 |
| 81 | #define CONFIG_ZERO_BOOTDELAY_CHECK |
| 82 | |
| 83 | /* FAT */ |
| 84 | #define CONFIG_CMD_FAT |
| 85 | #define CONFIG_FAT_WRITE |
| 86 | |
| 87 | /* EXT4 */ |
| 88 | #define CONFIG_CMD_EXT4 |
| 89 | #define CONFIG_CMD_EXT4_WRITE |
| 90 | |
| 91 | /* USB Composite download gadget - g_dnl */ |
| 92 | #define CONFIG_USBDOWNLOAD_GADGET |
| 93 | |
| 94 | /* TIZEN THOR downloader support */ |
| 95 | #define CONFIG_CMD_THOR_DOWNLOAD |
| 96 | #define CONFIG_THOR_FUNCTION |
| 97 | |
| 98 | #define CONFIG_DFU_FUNCTION |
| 99 | #define CONFIG_DFU_MMC |
| 100 | #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M |
| 101 | #define DFU_DEFAULT_POLL_TIMEOUT 300 |
| 102 | |
| 103 | /* USB Samsung's IDs */ |
| 104 | #define CONFIG_G_DNL_VENDOR_NUM 0x04E8 |
| 105 | #define CONFIG_G_DNL_PRODUCT_NUM 0x6601 |
| 106 | #define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM |
| 107 | #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D |
Lukasz Majewski | 8fc1713 | 2014-07-29 11:10:44 +0200 | [diff] [blame] | 108 | #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525 |
| 109 | #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5 |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 110 | #define CONFIG_G_DNL_MANUFACTURER "Samsung" |
| 111 | |
| 112 | /* Miscellaneous configurable options */ |
| 113 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 114 | #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ |
| 115 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
| 116 | #define CONFIG_SYS_PBSIZE 384 /* Print Buffer Size */ |
| 117 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 118 | /* Boot Argument Buffer Size */ |
| 119 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 120 | |
| 121 | /* FLASH and environment organization */ |
| 122 | #define CONFIG_SYS_NO_FLASH |
| 123 | #undef CONFIG_CMD_IMLS |
| 124 | |
| 125 | #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */ |
| 126 | |
| 127 | #define CONFIG_DOS_PARTITION |
| 128 | #define CONFIG_EFI_PARTITION |
| 129 | #define CONFIG_CMD_PART |
| 130 | #define CONFIG_PARTITION_UUIDS |
| 131 | |
| 132 | #define CONFIG_USB_GADGET |
| 133 | #define CONFIG_USB_GADGET_S3C_UDC_OTG |
| 134 | #define CONFIG_USB_GADGET_DUALSPEED |
| 135 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 |
Piotr Wilczek | 8e5e1e6 | 2014-03-07 14:59:43 +0100 | [diff] [blame] | 136 | |
| 137 | #define CONFIG_CMD_USB_MASS_STORAGE |
| 138 | #define CONFIG_USB_GADGET_MASS_STORAGE |
| 139 | |
| 140 | /* Enable devicetree support */ |
| 141 | #define CONFIG_OF_LIBFDT |
| 142 | |
| 143 | #endif /* __CONFIG_H */ |