blob: 0043050b607c481aedd92d7cfcdb5f65aae1811a [file] [log] [blame]
Marek Vasutb09c8bf2013-09-20 16:14:13 +02001/*
2 * Copyright (C) 2013 Marek Vasut <marex@denx.de>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6#ifndef __CONFIGS_BG0900_H__
7#define __CONFIGS_BG0900_H__
8
Marek Vasutb09c8bf2013-09-20 16:14:13 +02009/* Memory configuration */
10#define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */
11#define PHYS_SDRAM_1 0x40000000 /* Base address */
12#define PHYS_SDRAM_1_SIZE 0x10000000 /* Max 256 MB RAM */
13#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
14
15/* Environment */
16#define CONFIG_ENV_SIZE (16 * 1024)
17#define CONFIG_ENV_OVERWRITE
Marek Vasutb09c8bf2013-09-20 16:14:13 +020018
19/* FEC Ethernet on SoC */
20#ifdef CONFIG_CMD_NET
21#define CONFIG_FEC_MXC
Marek Vasutb09c8bf2013-09-20 16:14:13 +020022#endif
23
24/* SPI */
25#ifdef CONFIG_CMD_SPI
26#define CONFIG_DEFAULT_SPI_BUS 2
Marek Vasutb09c8bf2013-09-20 16:14:13 +020027#define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0
28
29/* SPI FLASH */
30#ifdef CONFIG_CMD_SF
Marek Vasutb09c8bf2013-09-20 16:14:13 +020031#define CONFIG_SF_DEFAULT_BUS 2
32#define CONFIG_SF_DEFAULT_CS 0
33#define CONFIG_SF_DEFAULT_SPEED 40000000
34#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
35
36#define CONFIG_ENV_SPI_BUS 2
37#define CONFIG_ENV_SPI_CS 0
38#define CONFIG_ENV_SPI_MAX_HZ 40000000
39#define CONFIG_ENV_SPI_MODE SPI_MODE_0
40#endif
41
42#endif
43
44/* Boot Linux */
Marek Vasutb09c8bf2013-09-20 16:14:13 +020045#define CONFIG_BOOTFILE "uImage"
Marek Vasutb09c8bf2013-09-20 16:14:13 +020046#define CONFIG_BOOTCOMMAND "bootm"
47#define CONFIG_LOADADDR 0x42000000
48#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
49
50/* Extra Environment */
51#define CONFIG_EXTRA_ENV_SETTINGS \
52 "update_spi_firmware_filename=u-boot.sb\0" \
53 "update_spi_firmware_maxsz=0x80000\0" \
54 "update_spi_firmware=" /* Update the SPI flash firmware */ \
55 "if sf probe 2:0 ; then " \
56 "if tftp ${update_spi_firmware_filename} ; then " \
57 "sf erase 0x0 +${filesize} ; " \
58 "sf write ${loadaddr} 0x0 ${filesize} ; " \
59 "fi ; " \
60 "fi\0"
61
62/* The rest of the configuration is shared */
63#include <configs/mxs.h>
64
65#endif /* __CONFIGS_BG0900_H__ */