2 * Copyright (C) 2015, Savoir-faire Linux Inc.
4 * Derived from MX51EVK code by
5 * Guennadi Liakhovetski <lg@denx.de>
6 * Freescale Semiconductor, Inc.
8 * Configuration settings for the TS4800 Board
10 * SPDX-License-Identifier: GPL-2.0+
16 /* High Level Configuration Options */
19 #define CONFIG_SYS_NO_FLASH /* No NOR Flash */
20 #define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is a 2nd stage bootloader */
22 #define CONFIG_HW_WATCHDOG
24 /* text base address used when linking */
25 #define CONFIG_SYS_TEXT_BASE 0x90008000
27 #include <asm/arch/imx-regs.h>
29 /* enable passing of ATAGs */
30 #define CONFIG_CMDLINE_TAG
31 #define CONFIG_SETUP_MEMORY_TAGS
32 #define CONFIG_INITRD_TAG
33 #define CONFIG_REVISION_TAG
36 * Size of malloc() pool
38 #define CONFIG_SYS_MALLOC_LEN (10 * 1024 * 1024)
44 #define CONFIG_MXC_UART
45 #define CONFIG_MXC_UART_BASE UART1_BASE
46 #define CONFIG_MXC_GPIO
51 #define CONFIG_HARD_SPI /* puts SPI: ready */
52 #define CONFIG_MXC_SPI /* driver for the SPI controllers*/
57 #define CONFIG_FSL_ESDHC
58 #define CONFIG_SYS_FSL_ESDHC_ADDR MMC_SDHC1_BASE_ADDR
60 #define CONFIG_GENERIC_MMC
61 #define CONFIG_DOS_PARTITION
68 #define CONFIG_PHY_SMSC
70 #define CONFIG_FEC_MXC
71 #define IMX_FEC_BASE FEC_BASE_ADDR
72 #define CONFIG_ETHPRIME "FEC"
73 #define CONFIG_FEC_MXC_PHYADDR 0
75 /* allow to overwrite serial and ethaddr */
76 #define CONFIG_ENV_OVERWRITE /* disable vendor parameters protection (serial#, ethaddr) */
77 #define CONFIG_CONS_INDEX 1 /* use UART0 : used by serial driver */
78 #define CONFIG_BAUDRATE 115200
80 /***********************************************************
82 ***********************************************************/
84 /* Environment variables */
87 #define CONFIG_LOADADDR 0x91000000 /* loadaddr env var */
89 #define CONFIG_EXTRA_ENV_SETTINGS \
92 "fdt_file=imx51-ts4800.dtb\0" \
93 "fdt_addr=0x90fe0000\0" \
96 "mmcroot=/dev/mmcblk0p3 rootwait rw\0" \
97 "mmcargs=setenv bootargs root=${mmcroot}\0" \
98 "addtty=setenv bootargs ${bootargs} console=ttymxc0,${baudrate}\0" \
100 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
101 "bootscript=echo Running bootscript from mmc ...; " \
103 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image};\0" \
104 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
105 "mmcboot=echo Booting from mmc ...; " \
106 "run mmcargs addtty; " \
107 "if run loadfdt; then " \
108 "bootz ${loadaddr} - ${fdt_addr}; " \
110 "echo ERR: cannot load FDT; " \
114 #define CONFIG_BOOTCOMMAND \
115 "mmc dev ${mmcdev}; if mmc rescan; then " \
116 "if run loadbootscript; then " \
119 "if run loadimage; then " \
126 * Miscellaneous configurable options
128 #define CONFIG_SYS_LONGHELP /* undef to save memory */
129 #define CONFIG_AUTO_COMPLETE
130 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
131 /* Print Buffer Size */
132 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
133 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
134 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
136 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
138 #define CONFIG_CMDLINE_EDITING
140 /*-----------------------------------------------------------------------
141 * Physical Memory Map
143 #define CONFIG_NR_DRAM_BANKS 1
144 #define PHYS_SDRAM_1 CSD0_BASE_ADDR
145 #define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024)
147 #define CONFIG_SYS_SDRAM_BASE (PHYS_SDRAM_1)
148 #define CONFIG_SYS_INIT_RAM_ADDR (IRAM_BASE_ADDR)
149 #define CONFIG_SYS_INIT_RAM_SIZE (IRAM_SIZE)
151 #define CONFIG_BOARD_EARLY_INIT_F
153 #define CONFIG_SYS_INIT_SP_OFFSET \
154 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
155 #define CONFIG_SYS_INIT_SP_ADDR \
156 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
159 #define CONFIG_SYS_DDR_CLKSEL 0
160 #define CONFIG_SYS_CLKTL_CBCDR 0x59E35100
161 #define CONFIG_SYS_MAIN_PWR_ON
163 /*-----------------------------------------------------------------------
164 * Environment organization
167 #define CONFIG_ENV_OFFSET (6 * 64 * 1024)
168 #define CONFIG_ENV_SIZE (8 * 1024)
169 #define CONFIG_ENV_IS_IN_MMC
170 #define CONFIG_SYS_MMC_ENV_DEV 0