176d7f574SJason Liu /* 276d7f574SJason Liu * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. 376d7f574SJason Liu * 476d7f574SJason Liu * Configuration settings for the Freescale i.MX6Q Armadillo2 board. 576d7f574SJason Liu * 676d7f574SJason Liu * This program is free software; you can redistribute it and/or 776d7f574SJason Liu * modify it under the terms of the GNU General Public License as 876d7f574SJason Liu * published by the Free Software Foundation; either version 2 of 976d7f574SJason Liu * the License, or (at your option) any later version. 1076d7f574SJason Liu * 1176d7f574SJason Liu * This program is distributed in the hope that it will be useful, 1276d7f574SJason Liu * but WITHOUT ANY WARRANTY; without even the implied warranty of 1376d7f574SJason Liu * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1476d7f574SJason Liu * GNU General Public License for more details. 1576d7f574SJason Liu * 1676d7f574SJason Liu * You should have received a copy of the GNU General Public License 1776d7f574SJason Liu * along with this program; if not, write to the Free Software 1876d7f574SJason Liu * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 1976d7f574SJason Liu * MA 02111-1307 USA 2076d7f574SJason Liu */ 2176d7f574SJason Liu 2276d7f574SJason Liu #ifndef __CONFIG_H 2376d7f574SJason Liu #define __CONFIG_H 2476d7f574SJason Liu 255ea6d7c8STroy Kisky #define CONFIG_MX6 2676d7f574SJason Liu #define CONFIG_MX6Q 27*8f393776SStephen Warren 28*8f393776SStephen Warren #include "mx6_common.h" 29*8f393776SStephen Warren 3076d7f574SJason Liu #define CONFIG_DISPLAY_CPUINFO 3176d7f574SJason Liu #define CONFIG_DISPLAY_BOARDINFO 3276d7f574SJason Liu 3376d7f574SJason Liu #include <asm/arch/imx-regs.h> 3476d7f574SJason Liu 3576d7f574SJason Liu #define CONFIG_CMDLINE_TAG 3676d7f574SJason Liu #define CONFIG_SETUP_MEMORY_TAGS 3776d7f574SJason Liu #define CONFIG_INITRD_TAG 3876d7f574SJason Liu 3976d7f574SJason Liu /* Size of malloc() pool */ 4076d7f574SJason Liu #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024) 4176d7f574SJason Liu 4276d7f574SJason Liu #define CONFIG_BOARD_EARLY_INIT_F 4376d7f574SJason Liu #define CONFIG_MXC_GPIO 4476d7f574SJason Liu 4576d7f574SJason Liu #define CONFIG_MXC_UART 4676d7f574SJason Liu #define CONFIG_MXC_UART_BASE UART4_BASE 4776d7f574SJason Liu 4876d7f574SJason Liu /* MMC Configs */ 4976d7f574SJason Liu #define CONFIG_FSL_ESDHC 5076d7f574SJason Liu #define CONFIG_FSL_USDHC 5176d7f574SJason Liu #define CONFIG_SYS_FSL_ESDHC_ADDR 0 5276d7f574SJason Liu #define CONFIG_SYS_FSL_USDHC_NUM 2 5376d7f574SJason Liu 5476d7f574SJason Liu #define CONFIG_MMC 5576d7f574SJason Liu #define CONFIG_CMD_MMC 5676d7f574SJason Liu #define CONFIG_GENERIC_MMC 57640fb607SStephen Warren #define CONFIG_BOUNCE_BUFFER 5876d7f574SJason Liu #define CONFIG_CMD_FAT 5976d7f574SJason Liu #define CONFIG_DOS_PARTITION 6076d7f574SJason Liu 61473c6359SJason Liu #define CONFIG_CMD_PING 62473c6359SJason Liu #define CONFIG_CMD_DHCP 63473c6359SJason Liu #define CONFIG_CMD_MII 64473c6359SJason Liu #define CONFIG_CMD_NET 65473c6359SJason Liu #define CONFIG_FEC_MXC 66473c6359SJason Liu #define CONFIG_MII 67473c6359SJason Liu #define IMX_FEC_BASE ENET_BASE_ADDR 68473c6359SJason Liu #define CONFIG_FEC_XCV_TYPE RGMII 69473c6359SJason Liu #define CONFIG_FEC_MXC_PHYADDR 0 70473c6359SJason Liu 7176d7f574SJason Liu /* allow to overwrite serial and ethaddr */ 7276d7f574SJason Liu #define CONFIG_ENV_OVERWRITE 7376d7f574SJason Liu #define CONFIG_CONS_INDEX 1 7476d7f574SJason Liu #define CONFIG_BAUDRATE 115200 7576d7f574SJason Liu 7676d7f574SJason Liu /* Command definition */ 7776d7f574SJason Liu #include <config_cmd_default.h> 7876d7f574SJason Liu 7976d7f574SJason Liu #undef CONFIG_CMD_IMLS 8076d7f574SJason Liu 8176d7f574SJason Liu #define CONFIG_BOOTDELAY 3 8276d7f574SJason Liu 8376d7f574SJason Liu #define CONFIG_LOADADDR 0x10800000 8476d7f574SJason Liu #define CONFIG_SYS_TEXT_BASE 0x17800000 8576d7f574SJason Liu 8676d7f574SJason Liu #define CONFIG_EXTRA_ENV_SETTINGS \ 8776d7f574SJason Liu "script=boot.scr\0" \ 8876d7f574SJason Liu "uimage=uImage\0" \ 8976d7f574SJason Liu "console=ttymxc3\0" \ 907e9603e7SDirk Behme "fdt_high=0xffffffff\0" \ 917e9603e7SDirk Behme "initrd_high=0xffffffff\0" \ 9276d7f574SJason Liu "mmcdev=1\0" \ 9376d7f574SJason Liu "mmcpart=2\0" \ 9476d7f574SJason Liu "mmcroot=/dev/mmcblk0p3 rootwait rw\0" \ 9576d7f574SJason Liu "mmcargs=setenv bootargs console=${console},${baudrate} " \ 9676d7f574SJason Liu "root=${mmcroot}\0" \ 9776d7f574SJason Liu "loadbootscript=" \ 9876d7f574SJason Liu "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ 9976d7f574SJason Liu "bootscript=echo Running bootscript from mmc ...; " \ 10076d7f574SJason Liu "source\0" \ 10176d7f574SJason Liu "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \ 10276d7f574SJason Liu "mmcboot=echo Booting from mmc ...; " \ 10376d7f574SJason Liu "run mmcargs; " \ 10476d7f574SJason Liu "bootm\0" \ 10576d7f574SJason Liu "netargs=setenv bootargs console=${console},${baudrate} " \ 10676d7f574SJason Liu "root=/dev/nfs " \ 10776d7f574SJason Liu "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ 10876d7f574SJason Liu "netboot=echo Booting from net ...; " \ 10976d7f574SJason Liu "run netargs; " \ 11076d7f574SJason Liu "dhcp ${uimage}; bootm\0" \ 11176d7f574SJason Liu 11276d7f574SJason Liu #define CONFIG_BOOTCOMMAND \ 11376d7f574SJason Liu "mmc dev ${mmcdev};" \ 11466968110SAndrew Bradford "mmc dev ${mmcdev}; if mmc rescan; then " \ 11576d7f574SJason Liu "if run loadbootscript; then " \ 11676d7f574SJason Liu "run bootscript; " \ 11776d7f574SJason Liu "else " \ 11876d7f574SJason Liu "if run loaduimage; then " \ 11976d7f574SJason Liu "run mmcboot; " \ 12076d7f574SJason Liu "else run netboot; " \ 12176d7f574SJason Liu "fi; " \ 12276d7f574SJason Liu "fi; " \ 12376d7f574SJason Liu "else run netboot; fi" 12476d7f574SJason Liu 12576d7f574SJason Liu #define CONFIG_ARP_TIMEOUT 200UL 12676d7f574SJason Liu 12776d7f574SJason Liu /* Miscellaneous configurable options */ 12876d7f574SJason Liu #define CONFIG_SYS_LONGHELP 12976d7f574SJason Liu #define CONFIG_SYS_HUSH_PARSER 13076d7f574SJason Liu #define CONFIG_SYS_PROMPT "MX6QARM2 U-Boot > " 13176d7f574SJason Liu #define CONFIG_AUTO_COMPLETE 13276d7f574SJason Liu #define CONFIG_SYS_CBSIZE 256 13376d7f574SJason Liu 13476d7f574SJason Liu /* Print Buffer Size */ 13576d7f574SJason Liu #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) 13676d7f574SJason Liu #define CONFIG_SYS_MAXARGS 16 13776d7f574SJason Liu #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 13876d7f574SJason Liu 13976d7f574SJason Liu #define CONFIG_SYS_MEMTEST_START 0x10000000 14076d7f574SJason Liu #define CONFIG_SYS_MEMTEST_END 0x10010000 14176d7f574SJason Liu 14276d7f574SJason Liu #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR 14376d7f574SJason Liu #define CONFIG_SYS_HZ 1000 14476d7f574SJason Liu 14576d7f574SJason Liu #define CONFIG_CMDLINE_EDITING 14676d7f574SJason Liu 14776d7f574SJason Liu /* Physical Memory Map */ 14876d7f574SJason Liu #define CONFIG_NR_DRAM_BANKS 1 14976d7f574SJason Liu #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR 15076d7f574SJason Liu #define PHYS_SDRAM_SIZE (2u * 1024 * 1024 * 1024) 15176d7f574SJason Liu 15276d7f574SJason Liu #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM 15376d7f574SJason Liu #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR 15476d7f574SJason Liu #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE 15576d7f574SJason Liu 15676d7f574SJason Liu #define CONFIG_SYS_INIT_SP_OFFSET \ 15776d7f574SJason Liu (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) 15876d7f574SJason Liu #define CONFIG_SYS_INIT_SP_ADDR \ 15976d7f574SJason Liu (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) 16076d7f574SJason Liu 16176d7f574SJason Liu /* FLASH and environment organization */ 16276d7f574SJason Liu #define CONFIG_SYS_NO_FLASH 16376d7f574SJason Liu 16476d7f574SJason Liu #define CONFIG_ENV_OFFSET (6 * 64 * 1024) 16576d7f574SJason Liu #define CONFIG_ENV_SIZE (8 * 1024) 16676d7f574SJason Liu #define CONFIG_ENV_IS_IN_MMC 16776d7f574SJason Liu #define CONFIG_SYS_MMC_ENV_DEV 1 16876d7f574SJason Liu 16976d7f574SJason Liu #define CONFIG_OF_LIBFDT 170f0e77b35SFabio Estevam #define CONFIG_CMD_BOOTZ 17176d7f574SJason Liu 17276d7f574SJason Liu #endif /* __CONFIG_H */ 173