1 /* 2 * Copyright 2013 Freescale Semiconductor, Inc. 3 * 4 * Configuration settings for the Freescale Vybrid vf610twr board. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of 9 * the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 19 * MA 02111-1307 USA 20 */ 21 22 #ifndef __CONFIG_H 23 #define __CONFIG_H 24 25 #include <asm/arch/imx-regs.h> 26 #include <config_cmd_default.h> 27 28 #define CONFIG_VF610 29 30 #define CONFIG_DISPLAY_CPUINFO 31 #define CONFIG_DISPLAY_BOARDINFO 32 33 #define CONFIG_MACH_TYPE 4146 34 35 #define CONFIG_SKIP_LOWLEVEL_INIT 36 37 /* Enable passing of ATAGs */ 38 #define CONFIG_CMDLINE_TAG 39 40 #define CONFIG_CMD_FUSE 41 #ifdef CONFIG_CMD_FUSE 42 #define CONFIG_MXC_OCOTP 43 #endif 44 45 /* Size of malloc() pool */ 46 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024) 47 48 #define CONFIG_BOARD_EARLY_INIT_F 49 50 #define CONFIG_FSL_LPUART 51 #define LPUART_BASE UART1_BASE 52 53 /* Allow to overwrite serial and ethaddr */ 54 #define CONFIG_ENV_OVERWRITE 55 #define CONFIG_SYS_UART_PORT (1) 56 #define CONFIG_BAUDRATE 115200 57 58 #undef CONFIG_CMD_IMLS 59 60 #define CONFIG_MMC 61 #define CONFIG_FSL_ESDHC 62 #define CONFIG_SYS_FSL_ESDHC_ADDR 0 63 #define CONFIG_SYS_FSL_ESDHC_NUM 1 64 65 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 66 67 #define CONFIG_CMD_MMC 68 #define CONFIG_GENERIC_MMC 69 #define CONFIG_CMD_FAT 70 #define CONFIG_DOS_PARTITION 71 72 #define CONFIG_CMD_PING 73 #define CONFIG_CMD_DHCP 74 #define CONFIG_CMD_MII 75 #define CONFIG_CMD_NET 76 #define CONFIG_FEC_MXC 77 #define CONFIG_MII 78 #define IMX_FEC_BASE ENET_BASE_ADDR 79 #define CONFIG_FEC_XCV_TYPE RMII 80 #define CONFIG_FEC_MXC_PHYADDR 0 81 #define CONFIG_PHYLIB 82 #define CONFIG_PHY_MICREL 83 84 #define CONFIG_BOOTDELAY 3 85 86 #define CONFIG_SYS_TEXT_BASE 0x3f008000 87 88 /* Miscellaneous configurable options */ 89 #define CONFIG_SYS_LONGHELP /* undef to save memory */ 90 #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ 91 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 92 #define CONFIG_SYS_PROMPT "Vybrid U-Boot > " 93 #undef CONFIG_AUTO_COMPLETE 94 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 95 #define CONFIG_SYS_PBSIZE \ 96 (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) 97 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 98 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 99 100 #define CONFIG_CMD_MEMTEST 101 #define CONFIG_SYS_MEMTEST_START 0x80010000 102 #define CONFIG_SYS_MEMTEST_END 0x87C00000 103 104 #define CONFIG_SYS_LOAD_ADDR 0x80010000 105 106 #define CONFIG_SYS_HZ 1000 107 108 /* 109 * Stack sizes 110 * The stack sizes are set up in start.S using the settings below 111 */ 112 #define CONFIG_STACKSIZE (128 * 1024) /* regular stack */ 113 114 /* Physical memory map */ 115 #define CONFIG_NR_DRAM_BANKS 1 116 #define PHYS_SDRAM (0x80000000) 117 #define PHYS_SDRAM_SIZE (128 * 1024 * 1024) 118 119 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM 120 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR 121 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE 122 123 #define CONFIG_SYS_INIT_SP_OFFSET \ 124 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) 125 #define CONFIG_SYS_INIT_SP_ADDR \ 126 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) 127 128 /* FLASH and environment organization */ 129 #define CONFIG_SYS_NO_FLASH 130 131 #define CONFIG_ENV_SIZE (8 * 1024) 132 #define CONFIG_ENV_IS_IN_MMC 133 134 #define CONFIG_ENV_OFFSET (12 * 64 * 1024) 135 #define CONFIG_SYS_MMC_ENV_DEV 0 136 137 #define CONFIG_OF_LIBFDT 138 #define CONFIG_CMD_BOOTZ 139 140 #endif 141