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