1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015, Savoir-faire Linux Inc.
5 * Derived from MX51EVK code by
7 * Freescale Semiconductor, Inc.
9 * Configuration settings for the TS4800 Board
15 /* High Level Configuration Options */
17 #define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is a 2nd stage bootloader */
19 #define CONFIG_HW_WATCHDOG
21 #define CONFIG_MACH_TYPE MACH_TYPE_TS48XX
23 /* text base address used when linking */
25 #include <asm/arch/imx-regs.h>
27 /* enable passing of ATAGs */
28 #define CONFIG_CMDLINE_TAG
29 #define CONFIG_SETUP_MEMORY_TAGS
30 #define CONFIG_INITRD_TAG
31 #define CONFIG_REVISION_TAG
34 * Size of malloc() pool
36 #define CONFIG_SYS_MALLOC_LEN (10 * 1024 * 1024)
42 #define CONFIG_MXC_UART_BASE UART1_BASE
47 #define CONFIG_SYS_FSL_ESDHC_ADDR MMC_SDHC1_BASE_ADDR
53 #define CONFIG_FEC_MXC
54 #define IMX_FEC_BASE FEC_BASE_ADDR
55 #define CONFIG_ETHPRIME "FEC"
56 #define CONFIG_FEC_MXC_PHYADDR 0
58 /* allow to overwrite serial and ethaddr */
59 #define CONFIG_ENV_OVERWRITE /* disable vendor parameters protection (serial#, ethaddr) */
61 /***********************************************************
63 ***********************************************************/
65 /* Environment variables */
68 #define CONFIG_LOADADDR 0x91000000 /* loadaddr env var */
70 #define CONFIG_EXTRA_ENV_SETTINGS \
73 "fdt_file=imx51-ts4800.dtb\0" \
74 "fdt_addr=0x90fe0000\0" \
77 "mmcroot=/dev/mmcblk0p3 rootwait rw\0" \
78 "mmcargs=setenv bootargs root=${mmcroot}\0" \
79 "addtty=setenv bootargs ${bootargs} console=ttymxc0,${baudrate}\0" \
81 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
82 "bootscript=echo Running bootscript from mmc ...; " \
84 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image};\0" \
85 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
86 "mmcboot=echo Booting from mmc ...; " \
87 "run mmcargs addtty; " \
88 "if run loadfdt; then " \
89 "bootz ${loadaddr} - ${fdt_addr}; " \
91 "echo ERR: cannot load FDT; " \
95 #define CONFIG_BOOTCOMMAND \
96 "mmc dev ${mmcdev}; if mmc rescan; then " \
97 "if run loadbootscript; then " \
100 "if run loadimage; then " \
107 * Miscellaneous configurable options
110 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
112 /*-----------------------------------------------------------------------
113 * Physical Memory Map
115 #define PHYS_SDRAM_1 CSD0_BASE_ADDR
116 #define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024)
118 #define CONFIG_SYS_SDRAM_BASE (PHYS_SDRAM_1)
119 #define CONFIG_SYS_INIT_RAM_ADDR (IRAM_BASE_ADDR)
120 #define CONFIG_SYS_INIT_RAM_SIZE (IRAM_SIZE)
122 #define CONFIG_SYS_INIT_SP_OFFSET \
123 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
124 #define CONFIG_SYS_INIT_SP_ADDR \
125 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
128 #define CONFIG_SYS_DDR_CLKSEL 0
129 #define CONFIG_SYS_CLKTL_CBCDR 0x59E35100
130 #define CONFIG_SYS_MAIN_PWR_ON
132 /*-----------------------------------------------------------------------
133 * Environment organization
136 #define CONFIG_SYS_MMC_ENV_DEV 0