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