Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Marek Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2013 Marek Vasut <marex@denx.de> |
Marek Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 4 | */ |
| 5 | #ifndef __CONFIGS_BG0900_H__ |
| 6 | #define __CONFIGS_BG0900_H__ |
| 7 | |
Marek Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 8 | /* Memory configuration */ |
Marek Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 9 | #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 Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 14 | #define CONFIG_ENV_OVERWRITE |
Marek Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 15 | |
| 16 | /* FEC Ethernet on SoC */ |
| 17 | #ifdef CONFIG_CMD_NET |
| 18 | #define CONFIG_FEC_MXC |
Marek Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 19 | #endif |
| 20 | |
Marek Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 21 | /* Boot Linux */ |
Marek Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 22 | #define CONFIG_BOOTFILE "uImage" |
Marek Vasut | f972716 | 2013-09-20 16:14:13 +0200 | [diff] [blame] | 23 | #define CONFIG_BOOTCOMMAND "bootm" |
| 24 | #define CONFIG_LOADADDR 0x42000000 |
| 25 | #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR |
| 26 | |
| 27 | /* Extra Environment */ |
| 28 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 29 | "update_spi_firmware_filename=u-boot.sb\0" \ |
| 30 | "update_spi_firmware_maxsz=0x80000\0" \ |
| 31 | "update_spi_firmware=" /* Update the SPI flash firmware */ \ |
| 32 | "if sf probe 2:0 ; then " \ |
| 33 | "if tftp ${update_spi_firmware_filename} ; then " \ |
| 34 | "sf erase 0x0 +${filesize} ; " \ |
| 35 | "sf write ${loadaddr} 0x0 ${filesize} ; " \ |
| 36 | "fi ; " \ |
| 37 | "fi\0" |
| 38 | |
| 39 | /* The rest of the configuration is shared */ |
| 40 | #include <configs/mxs.h> |
| 41 | |
| 42 | #endif /* __CONFIGS_BG0900_H__ */ |