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