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