6aab8a06a96301763cf521e04e5476f2db4f96f1
[platform/kernel/u-boot.git] / include / configs / ts4600.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2016 Savoir-faire Linux Inc.
4  *
5  * Author: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
6  *
7  * Derived from MX28EVK code by
8  *   Fabio Estevam <fabio.estevam@freescale.com>
9  *   Freescale Semiconductor, Inc.
10  *
11  * Configuration settings for the TS4600 Board
12  */
13 #ifndef __CONFIGS_TS4600_H__
14 #define __CONFIGS_TS4600_H__
15
16 /* U-Boot Commands */
17
18 /* Memory configuration */
19 #define PHYS_SDRAM_1                    0x40000000      /* Base address */
20 #define PHYS_SDRAM_1_SIZE               0x40000000      /* Max 1 GB RAM */
21 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM_1
22
23 /* Environment */
24
25 /* Environment is in MMC */
26 #if defined(CONFIG_CMD_MMC) && defined(CONFIG_ENV_IS_IN_MMC)
27 #define CONFIG_SYS_MMC_ENV_DEV          0
28 #endif
29
30 /* Boot Linux */
31 #define CONFIG_LOADADDR         0x42000000
32 #define CONFIG_SYS_LOAD_ADDR    CONFIG_LOADADDR
33
34 /* Extra Environment */
35 #define CONFIG_EXTRA_ENV_SETTINGS \
36         "fdt_addr=0x41000000\0" \
37         "loadkernel=load mmc ${mmcdev}:${mmcpart} ${loadaddr} zImage\0" \
38         "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} imx28-ts4600.dtb\0" \
39         "loadbootscript=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot.ub\0" \
40         "bootscript=echo Running bootscript from mmc...; " \
41                 "setenv mmcdev 0; " \
42                 "setenv mmcpart 2; " \
43                 "run loadbootscript && source ${loadaddr}; \0" \
44         "sdboot=echo Booting from SD card ...; " \
45                 "setenv mmcdev 0; " \
46                 "setenv mmcpart 2; " \
47                 "setenv root /dev/mmcblk0p3; " \
48                 "run loadkernel && run loadfdt; \0" \
49         "startbootsequence=run bootscript || run sdboot \0" \
50
51 #define CONFIG_BOOTCOMMAND \
52         "mmc rescan; " \
53         "run startbootsequence; " \
54         "setenv cmdline_append console=ttyAMA0,115200; " \
55         "setenv bootargs root=${root} rootwait rw ${cmdline_append}; " \
56         "bootz ${loadaddr} - ${fdt_addr}; "
57
58 /* The rest of the configuration is shared */
59 #include <configs/mxs.h>
60
61 #endif /* __CONFIGS_TS4600_H__ */