blob: a107e96530ecaabff71fd4f10fcd405c3538c5c6 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Sebastien Bourdelind9e268e2016-11-08 12:18:07 -05002/*
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
Sebastien Bourdelind9e268e2016-11-08 12:18:07 -050012 */
13#ifndef __CONFIGS_TS4600_H__
14#define __CONFIGS_TS4600_H__
15
Sebastien Bourdelind9e268e2016-11-08 12:18:07 -050016/* U-Boot Commands */
Sebastien Bourdelind9e268e2016-11-08 12:18:07 -050017
18/* Memory configuration */
Sebastien Bourdelind9e268e2016-11-08 12:18:07 -050019#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#define CONFIG_ENV_SIZE (8 * 1024)
25
26/* Environment is in MMC */
27#if defined(CONFIG_CMD_MMC) && defined(CONFIG_ENV_IS_IN_MMC)
28#define CONFIG_ENV_OFFSET (256 * 1024)
29#define CONFIG_SYS_MMC_ENV_DEV 0
30#endif
31
32/* Boot Linux */
33#define CONFIG_LOADADDR 0x42000000
34#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
35
36/* Extra Environment */
37#define CONFIG_EXTRA_ENV_SETTINGS \
38 "fdt_addr=0x41000000\0" \
39 "loadkernel=load mmc ${mmcdev}:${mmcpart} ${loadaddr} zImage\0" \
40 "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} imx28-ts4600.dtb\0" \
41 "loadbootscript=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot.ub\0" \
42 "bootscript=echo Running bootscript from mmc...; " \
43 "setenv mmcdev 0; " \
44 "setenv mmcpart 2; " \
45 "run loadbootscript && source ${loadaddr}; \0" \
46 "sdboot=echo Booting from SD card ...; " \
47 "setenv mmcdev 0; " \
48 "setenv mmcpart 2; " \
49 "setenv root /dev/mmcblk0p3; " \
50 "run loadkernel && run loadfdt; \0" \
51 "startbootsequence=run bootscript || run sdboot \0" \
52
53#define CONFIG_BOOTCOMMAND \
54 "mmc rescan; " \
55 "run startbootsequence; " \
56 "setenv cmdline_append console=ttyAMA0,115200; " \
57 "setenv bootargs root=${root} rootwait rw ${cmdline_append}; " \
58 "bootz ${loadaddr} - ${fdt_addr}; "
59
60/* The rest of the configuration is shared */
61#include <configs/mxs.h>
62
63#endif /* __CONFIGS_TS4600_H__ */