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