blob: 57a698520bde19cb34fcb2c51b44b4f9834858e3 [file] [log] [blame]
Marek Vasutf9727162013-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
9/* System configurations */
10#define CONFIG_MX28 /* i.MX28 SoC */
11
12/* U-Boot Commands */
13#define CONFIG_SYS_NO_FLASH
Marek Vasutf9727162013-09-20 16:14:13 +020014#define CONFIG_DOS_PARTITION
15
Marek Vasutf9727162013-09-20 16:14:13 +020016#define CONFIG_CMD_NAND
17#define CONFIG_CMD_NAND_TRIMFFS
Marek Vasutf9727162013-09-20 16:14:13 +020018
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 0x10000000 /* Max 256 MB RAM */
23#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
24
25/* Environment */
26#define CONFIG_ENV_SIZE (16 * 1024)
27#define CONFIG_ENV_OVERWRITE
28#define CONFIG_ENV_IS_NOWHERE
29
30/* FEC Ethernet on SoC */
31#ifdef CONFIG_CMD_NET
32#define CONFIG_FEC_MXC
Marek Vasutf9727162013-09-20 16:14:13 +020033#endif
34
35/* SPI */
36#ifdef CONFIG_CMD_SPI
37#define CONFIG_DEFAULT_SPI_BUS 2
38#define CONFIG_DEFAULT_SPI_CS 0
39#define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0
40
41/* SPI FLASH */
42#ifdef CONFIG_CMD_SF
Marek Vasutf9727162013-09-20 16:14:13 +020043#define CONFIG_SF_DEFAULT_BUS 2
44#define CONFIG_SF_DEFAULT_CS 0
45#define CONFIG_SF_DEFAULT_SPEED 40000000
46#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
47
48#define CONFIG_ENV_SPI_BUS 2
49#define CONFIG_ENV_SPI_CS 0
50#define CONFIG_ENV_SPI_MAX_HZ 40000000
51#define CONFIG_ENV_SPI_MODE SPI_MODE_0
52#endif
53
54#endif
55
56/* Boot Linux */
Marek Vasutf9727162013-09-20 16:14:13 +020057#define CONFIG_BOOTFILE "uImage"
58#define CONFIG_BOOTARGS "console=ttyAMA0,115200"
59#define CONFIG_BOOTCOMMAND "bootm"
60#define CONFIG_LOADADDR 0x42000000
61#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
62
63/* Extra Environment */
64#define CONFIG_EXTRA_ENV_SETTINGS \
65 "update_spi_firmware_filename=u-boot.sb\0" \
66 "update_spi_firmware_maxsz=0x80000\0" \
67 "update_spi_firmware=" /* Update the SPI flash firmware */ \
68 "if sf probe 2:0 ; then " \
69 "if tftp ${update_spi_firmware_filename} ; then " \
70 "sf erase 0x0 +${filesize} ; " \
71 "sf write ${loadaddr} 0x0 ${filesize} ; " \
72 "fi ; " \
73 "fi\0"
74
75/* The rest of the configuration is shared */
76#include <configs/mxs.h>
77
78#endif /* __CONFIGS_BG0900_H__ */