2 * (C) Copyright 2016 Savoir-faire Linux Inc.
4 * Author: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
6 * Derived from MX28EVK code by
7 * Fabio Estevam <fabio.estevam@freescale.com>
8 * Freescale Semiconductor, Inc.
10 * Configuration settings for the TS4600 Board
12 * SPDX-License-Identifier: GPL-2.0+
14 #ifndef __CONFIGS_TS4600_H__
15 #define __CONFIGS_TS4600_H__
17 /* System configurations */
18 #define CONFIG_MX28 /* i.MX28 SoC */
22 /* Memory configuration */
23 #define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */
24 #define PHYS_SDRAM_1 0x40000000 /* Base address */
25 #define PHYS_SDRAM_1_SIZE 0x40000000 /* Max 1 GB RAM */
26 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
29 #define CONFIG_ENV_SIZE (8 * 1024)
31 /* Environment is in MMC */
32 #if defined(CONFIG_CMD_MMC) && defined(CONFIG_ENV_IS_IN_MMC)
33 #define CONFIG_ENV_OFFSET (256 * 1024)
34 #define CONFIG_SYS_MMC_ENV_DEV 0
38 #define CONFIG_LOADADDR 0x42000000
39 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
41 /* Extra Environment */
42 #define CONFIG_EXTRA_ENV_SETTINGS \
43 "fdt_addr=0x41000000\0" \
44 "loadkernel=load mmc ${mmcdev}:${mmcpart} ${loadaddr} zImage\0" \
45 "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} imx28-ts4600.dtb\0" \
46 "loadbootscript=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot.ub\0" \
47 "bootscript=echo Running bootscript from mmc...; " \
49 "setenv mmcpart 2; " \
50 "run loadbootscript && source ${loadaddr}; \0" \
51 "sdboot=echo Booting from SD card ...; " \
53 "setenv mmcpart 2; " \
54 "setenv root /dev/mmcblk0p3; " \
55 "run loadkernel && run loadfdt; \0" \
56 "startbootsequence=run bootscript || run sdboot \0" \
58 #define CONFIG_BOOTCOMMAND \
60 "run startbootsequence; " \
61 "setenv cmdline_append console=ttyAMA0,115200; " \
62 "setenv bootargs root=${root} rootwait rw ${cmdline_append}; " \
63 "bootz ${loadaddr} - ${fdt_addr}; "
65 /* The rest of the configuration is shared */
66 #include <configs/mxs.h>
68 #endif /* __CONFIGS_TS4600_H__ */