blob: b5412363610010cc06ae06b7008ea70804fa4de8 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Marek Vasutf9727162013-09-20 16:14:13 +02002/*
3 * Copyright (C) 2013 Marek Vasut <marex@denx.de>
Marek Vasutf9727162013-09-20 16:14:13 +02004 */
5#ifndef __CONFIGS_BG0900_H__
6#define __CONFIGS_BG0900_H__
7
Marek Vasutf9727162013-09-20 16:14:13 +02008/* Memory configuration */
Marek Vasutf9727162013-09-20 16:14:13 +02009#define PHYS_SDRAM_1 0x40000000 /* Base address */
10#define PHYS_SDRAM_1_SIZE 0x10000000 /* Max 256 MB RAM */
11#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
12
13/* Environment */
Marek Vasutf9727162013-09-20 16:14:13 +020014
15/* FEC Ethernet on SoC */
16#ifdef CONFIG_CMD_NET
17#define CONFIG_FEC_MXC
Marek Vasutf9727162013-09-20 16:14:13 +020018#endif
19
Marek Vasutf9727162013-09-20 16:14:13 +020020/* Boot Linux */
Marek Vasutf9727162013-09-20 16:14:13 +020021#define CONFIG_BOOTFILE "uImage"
Marek Vasutf9727162013-09-20 16:14:13 +020022#define CONFIG_BOOTCOMMAND "bootm"
23#define CONFIG_LOADADDR 0x42000000
24#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
25
26/* Extra Environment */
27#define CONFIG_EXTRA_ENV_SETTINGS \
28 "update_spi_firmware_filename=u-boot.sb\0" \
29 "update_spi_firmware_maxsz=0x80000\0" \
30 "update_spi_firmware=" /* Update the SPI flash firmware */ \
31 "if sf probe 2:0 ; then " \
32 "if tftp ${update_spi_firmware_filename} ; then " \
33 "sf erase 0x0 +${filesize} ; " \
34 "sf write ${loadaddr} 0x0 ${filesize} ; " \
35 "fi ; " \
36 "fi\0"
37
38/* The rest of the configuration is shared */
39#include <configs/mxs.h>
40
41#endif /* __CONFIGS_BG0900_H__ */